/* ==========================================================================
   Omnifin Case Studies — Frontend CSS v5
   Single page rules scoped to #omfcs-page (ID selector beats any theme
   class-based rule regardless of source order).
   Shortcode cards now render as <a> anchors; styles updated accordingly.
   ========================================================================== */

:root {
  --omf-indigo:      #3B3DAA;
  --omf-indigo-dk:   #2B2D8A;
  --omf-indigo-deep: #1e2070;
  --omf-white:       #ffffff;
  --omf-bg:          #F0F4F8;
  --omf-text:        #1A1A2E;
  --omf-text-mid:    #3a3a5c;
  --omf-text-dim:    #5a5a7a;
  --omf-tag-bg:      rgba(59,61,170,0.08);
  --omf-tag-color:   #2B2D8A;
}
#omf-cs-section *,.omf-cs-modal *,.omf-cs-single *{box-sizing:border-box;font-family:'Poppins',sans-serif}

/* ═══ SHORTCODE SECTION ═══════════════════════════════════════════ */
#omf-cs-section{background:var(--omf-bg);padding:88px 6% 96px;position:relative;overflow:hidden}
#omf-cs-section::before{content:'';position:absolute;inset:0;background-image:linear-gradient(rgba(59,61,170,0.04) 1px,transparent 1px),linear-gradient(90deg,rgba(59,61,170,0.04) 1px,transparent 1px);background-size:48px 48px;pointer-events:none;z-index:0}
#omf-cs-section .omf-cs__inner{position:relative;z-index:1;max-width:1280px;margin:0 auto}
#omf-cs-section .omf-cs__head{text-align:center;margin-bottom:56px}
#omf-cs-section .omf-cs__eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:16px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--omf-indigo);margin-bottom:14px}
#omf-cs-section .omf-cs__eyebrow-dot{width:6px;height:6px;border-radius:50%;background:var(--omf-indigo);flex-shrink:0}
#omf-cs-section .omf-cs__title{font-size:clamp(26px,3.5vw,42px);font-weight:700;color:var(--omf-text);letter-spacing:-.02em;line-height:1.15;margin:0 0 14px}
#omf-cs-section .omf-cs__subtitle{font-size:16px;font-weight:300;color:var(--omf-text-dim);max-width:560px;margin:0 auto;line-height:1.7}
#omf-cs-section .omf-cs__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-bottom:40px}

/* Cards — now rendered as <a> anchors. Kill default link styling. */
#omf-cs-section .omf-cs__card,
.omf-cs-archive .omf-cs__card{
  background:#fff;border-radius:12px;overflow:hidden;
  border:1px solid rgba(59,61,170,0.09);
  box-shadow:0 4px 20px rgba(30,32,112,0.07);
  transition:transform .3s,box-shadow .3s,border-color .3s;
  display:flex;flex-direction:column;
  text-decoration:none !important;
  color:inherit;
  cursor:pointer;
}
#omf-cs-section .omf-cs__card:hover,
.omf-cs-archive .omf-cs__card:hover{transform:translateY(-6px);box-shadow:0 16px 48px rgba(30,32,112,0.14);border-color:rgba(59,61,170,0.22)}
#omf-cs-section .omf-cs__card:focus-visible,
.omf-cs-archive .omf-cs__card:focus-visible{outline:3px solid var(--omf-indigo);outline-offset:3px}
#omf-cs-section .omf-cs__card-img{position:relative;width:100%;height:210px;overflow:hidden;background:var(--omf-bg)}
#omf-cs-section .omf-cs__card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}
#omf-cs-section .omf-cs__card:hover .omf-cs__card-img img{transform:scale(1.05)}
#omf-cs-section .omf-cs__card-img-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(27,29,110,0.35),transparent 60%)}
#omf-cs-section .omf-cs__card-img-placeholder{position:absolute;inset:0;background:linear-gradient(135deg,var(--omf-indigo),var(--omf-indigo-deep))}
#omf-cs-section .omf-cs__card-body{padding:24px 24px 28px;display:flex;flex-direction:column;flex:1}
.omf-cs__tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.omf-cs__tag{display:inline-block;font-size:10px;font-weight:600;letter-spacing:.10em;text-transform:uppercase;color:var(--omf-tag-color);background:var(--omf-tag-bg);padding:4px 10px;border-radius:4px;border:1px solid rgba(59,61,170,0.15)}
#omf-cs-section .omf-cs__card-title{font-size:16px;font-weight:600;color:var(--omf-text);line-height:1.4;margin:0 0 10px}
#omf-cs-section .omf-cs__card-hook{font-size:14px;font-weight:300;color:var(--omf-text-dim);line-height:1.7;flex:1;margin:0 0 20px}
#omf-cs-section .omf-cs__card-cta{font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--omf-indigo);text-transform:uppercase;display:inline-flex;align-items:center;gap:6px;transition:gap .25s}
#omf-cs-section .omf-cs__card:hover .omf-cs__card-cta{gap:10px}
#omf-cs-section .omf-cs__cta-arrow{transition:transform .25s}
#omf-cs-section .omf-cs__card:hover .omf-cs__cta-arrow{transform:translateX(4px)}
#omf-cs-section .omf-cs__empty{text-align:center;font-size:16px;color:var(--omf-text-dim);padding:40px 20px}
#omf-cs-section .omf-cs__loadmore-wrap{text-align:center;margin-top:24px}
#omf-cs-section .omf-cs__loadmore{appearance:none;background:var(--omf-indigo);color:#fff;border:none;border-radius:50px;padding:14px 36px;font-size:14px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;display:inline-flex;align-items:center;gap:10px;transition:background .25s,transform .2s,box-shadow .25s;box-shadow:0 6px 18px rgba(59,61,170,0.22)}
#omf-cs-section .omf-cs__loadmore:hover:not(:disabled){background:var(--omf-indigo-dk);transform:translateY(-2px);box-shadow:0 10px 24px rgba(59,61,170,0.30)}
#omf-cs-section .omf-cs__loadmore:disabled{opacity:.6;cursor:wait}
#omf-cs-section .omf-cs__loadmore-spinner{display:none;width:14px;height:14px;border:2px solid rgba(255,255,255,0.35);border-top-color:#fff;border-radius:50%;animation:omfSpin .8s linear infinite}
#omf-cs-section .omf-cs__loadmore.is-loading .omf-cs__loadmore-spinner{display:inline-block}
@keyframes omfSpin{to{transform:rotate(360deg)}}
#omf-cs-section .screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* ═══ MODAL (legacy — kept for backward compat, not used for new shortcodes) ═══ */
.omf-cs-modal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px}
.omf-cs-modal[hidden]{display:none}
.omf-cs-modal__backdrop{position:absolute;inset:0;background:rgba(14,16,60,0.72);backdrop-filter:blur(4px);cursor:pointer}
.omf-cs-modal__box{position:relative;z-index:1;background:#fff;border-radius:16px;width:100%;max-width:820px;max-height:90vh;overflow-y:auto;overflow-x:hidden;box-shadow:0 32px 80px rgba(14,16,60,0.28);animation:omfModalIn .35s cubic-bezier(0.22,1,0.36,1) both}
@keyframes omfModalIn{0%{opacity:0;transform:translateY(24px) scale(0.97)}100%{opacity:1;transform:translateY(0) scale(1)}}
.omf-cs-modal__box::-webkit-scrollbar{width:5px}.omf-cs-modal__box::-webkit-scrollbar-track{background:#f0f4f8}.omf-cs-modal__box::-webkit-scrollbar-thumb{background:rgba(59,61,170,0.25);border-radius:4px}
.omf-cs-modal__close{position:absolute;top:16px;right:16px;z-index:10;width:36px;height:36px;border:none;border-radius:50%;background:rgba(255,255,255,0.92);color:var(--omf-text);font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 12px rgba(0,0,0,0.12);transition:background .2s,transform .2s}
.omf-cs-modal__close:hover{background:#fff;transform:scale(1.1)}
.omf-cs-modal__hero{position:relative;width:100%;height:260px;overflow:hidden;border-radius:16px 16px 0 0;background:var(--omf-indigo-deep)}
.omf-cs-modal__hero img{width:100%;height:100%;object-fit:cover;display:block}
.omf-cs-modal__hero-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(20,22,80,0.92) 0%,rgba(20,22,80,0.55) 45%,rgba(20,22,80,0.15) 100%)}
.omf-cs-modal__hero-content{position:absolute;bottom:0;left:0;right:0;padding:28px 32px;color:#fff}
.omf-cs-modal__hero-content .omf-cs__tags{margin-bottom:10px}
.omf-cs-modal__hero-content .omf-cs__tag{color:rgba(255,255,255,0.92);background:rgba(255,255,255,0.14);border-color:rgba(255,255,255,0.22)}
.omf-cs-modal__hero-content h2{font-size:clamp(18px,2.5vw,24px);font-weight:700;color:#fff;line-height:1.3;margin:0 0 8px}
.omf-cs-modal__hook{font-size:13px;font-weight:300;color:rgba(255,255,255,0.84);line-height:1.6;margin:0}
.omf-cs-modal__content{padding:32px 32px 36px;display:flex;flex-direction:column;gap:28px}
.omf-cs-modal__body{color:var(--omf-text-mid)}
.omf-cs-modal__body h1,.omf-cs-modal__body h2,.omf-cs-modal__body h3,.omf-cs-modal__body h4{color:var(--omf-indigo);font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin:0 0 14px;padding-bottom:8px;border-bottom:2px solid var(--omf-tag-bg)}
.omf-cs-modal__body h1{font-size:18px}.omf-cs-modal__body h2{font-size:15px}.omf-cs-modal__body h3{font-size:13px}.omf-cs-modal__body h4{font-size:12px}
.omf-cs-modal__body h2:not(:first-child),.omf-cs-modal__body h3:not(:first-child),.omf-cs-modal__body h4:not(:first-child){margin-top:24px}
.omf-cs-modal__body p{font-size:14px;color:var(--omf-text-mid);line-height:1.8;margin:0 0 12px}
.omf-cs-modal__body strong{color:var(--omf-text);font-weight:600}
.omf-cs-modal__body a{color:var(--omf-indigo);text-decoration:none;border-bottom:1px solid rgba(59,61,170,0.3)}
.omf-cs-modal__body ul,.omf-cs-modal__body ol{margin:0 0 12px;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.omf-cs-modal__body ul li,.omf-cs-modal__body ol li{font-size:14px;color:var(--omf-text-mid);line-height:1.7;padding-left:18px;position:relative}
.omf-cs-modal__body ul li::before{content:'';position:absolute;left:0;top:10px;width:6px;height:6px;border-radius:50%;background:var(--omf-indigo);opacity:.55}
.omf-cs-modal__body ol{counter-reset:omfcount}
.omf-cs-modal__body ol li{counter-increment:omfcount;padding-left:28px}
.omf-cs-modal__body ol li::before{content:counter(omfcount)".";position:absolute;left:0;top:0;color:var(--omf-indigo);font-weight:700}
.omf-cs-modal__body img,.omf-cs-modal__body figure img{max-width:100%;height:auto;border-radius:10px;display:block;margin:16px 0}
.omf-cs-modal__body blockquote{margin:18px 0;padding:14px 18px;border-left:3px solid var(--omf-indigo);background:var(--omf-bg);border-radius:0 10px 10px 0;font-style:italic;color:var(--omf-text)}
.omf-cs-modal__highlights h3{font-size:13px;font-weight:700;letter-spacing:.10em;text-transform:uppercase;color:var(--omf-indigo);margin:0 0 14px;padding-bottom:8px;border-bottom:2px solid var(--omf-tag-bg)}
.omf-cs-modal__chips{display:flex;flex-wrap:wrap;gap:8px}
.omf-cs-modal__chips span{display:inline-block;font-size:12px;font-weight:500;color:var(--omf-indigo-dk);background:var(--omf-bg);border:1px solid rgba(59,61,170,0.15);padding:6px 14px;border-radius:20px}
.omf-cs-modal__permalink{margin:0;padding-top:12px;border-top:1px solid var(--omf-tag-bg);text-align:center}
.omf-cs-modal__permalink-link{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--omf-indigo);text-decoration:none}

/* ═══ ARCHIVE ═════════════════════════════════════════════════════ */
.omf-cs-archive{background:var(--omf-bg);padding:72px 6% 96px;min-height:60vh}
.omf-cs-archive__inner{max-width:1280px;margin:0 auto}
.omf-cs-archive__head{text-align:center;margin-bottom:48px}
.omf-cs-archive__head h1{font-size:clamp(28px,3.8vw,44px);font-weight:700;color:var(--omf-text);margin:0 0 14px;letter-spacing:-.02em}
.omf-cs-archive__head p{font-size:16px;color:var(--omf-text-dim);max-width:640px;margin:0 auto;line-height:1.7}
.omf-cs-archive__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-bottom:48px}
.omf-cs-archive .omf-cs__card-img{position:relative;width:100%;height:210px;overflow:hidden}
.omf-cs-archive .omf-cs__card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}
.omf-cs-archive .omf-cs__card:hover .omf-cs__card-img img{transform:scale(1.05)}
.omf-cs-archive .omf-cs__card-img-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(27,29,110,0.35),transparent 60%)}
.omf-cs-archive .omf-cs__card-body{padding:24px 24px 28px;display:flex;flex-direction:column;flex:1}
.omf-cs-archive .omf-cs__card-title{font-size:16px;font-weight:600;color:var(--omf-text);line-height:1.4;margin:0 0 10px}
.omf-cs-archive .omf-cs__card-hook{font-size:14px;font-weight:300;color:var(--omf-text-dim);line-height:1.7;flex:1;margin:0 0 20px}
.omf-cs-archive .omf-cs__card-cta{font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--omf-indigo);text-transform:uppercase;display:inline-flex;align-items:center;gap:6px}
.omf-cs-archive__pagination{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.omf-cs-archive__pagination a,.omf-cs-archive__pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 14px;border-radius:20px;background:#fff;color:var(--omf-indigo);text-decoration:none;border:1px solid rgba(59,61,170,0.15);font-size:14px;font-weight:600;transition:background .2s,color .2s}
.omf-cs-archive__pagination a:hover{background:var(--omf-indigo);color:#fff}
.omf-cs-archive__pagination .current{background:var(--omf-indigo);color:#fff}


/* ═══════════════════════════════════════════════════════════════════
   SINGLE CASE STUDY — EDITORIAL LAYOUT
   ALL rules scoped to #omfcs-page. ID selector wins specificity over any
   theme (Astra, Elementor, etc.) class-based rule regardless of load order.
═══════════════════════════════════════════════════════════════════ */

/* ── Page wrapper ── */
#omfcs-page {
  font-family: 'DM Sans', sans-serif !important;
  background: #f8f8fc !important;
  color: #1c1c2e !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow-x: clip !important;
}
#omfcs-page * { box-sizing: border-box !important; }

/* ── 1. HERO IMAGE ── */
#omfcs-page .omfcs-hero {
  display: block !important;
  position: relative !important;
  width: 100vw !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  height: 520px !important;
  overflow: hidden !important;
  background: #0d0f1a !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
#omfcs-page .omfcs-hero-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  border-radius: 0 !important;
}
#omfcs-page .omfcs-hero-noimg {
  width: 100% !important;
  height: 100% !important;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(99,102,241,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 30%, rgba(59,130,246,0.12) 0%, transparent 70%),
    linear-gradient(135deg, #1a1c4e 0%, #2d2f88 30%, #1e3a6e 60%, #0d2040 100%) !important;
}

/* ── 2. ARTICLE HEADER ── */
#omfcs-page .omfcs-header-wrap {
  background: #ffffff !important;
  border-bottom: 1px solid #eeeef5 !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
#omfcs-page .omfcs-header-inner {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 44px clamp(20px,4%,60px) 40px !important;
}

/* Breadcrumb */
#omfcs-page .omfcs-breadcrumb {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #9898b8 !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  list-style: none !important;
  background: none !important;
  border: none !important;
}
#omfcs-page .omfcs-breadcrumb a {
  color: #5b5bdd !important;
  text-decoration: none !important;
  border: none !important;
  background: none !important;
}
#omfcs-page .omfcs-breadcrumb a:hover { color: #3b3daa !important; }
#omfcs-page .omfcs-breadcrumb span { color: #d0d0e8 !important; }
#omfcs-page .omfcs-breadcrumb span:last-child { color: #9898b8 !important; }

/* Tags */
#omfcs-page .omfcs-header-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 0 16px !important;
}
#omfcs-page .omfcs-htag {
  display: inline-block !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #3b3daa !important;
  background: rgba(59,61,170,0.08) !important;
  border: 1px solid rgba(59,61,170,0.18) !important;
  padding: 4px 12px !important;
  border-radius: 4px !important;
}

/* Title */
#omfcs-page .omfcs-title {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-size: clamp(30px, 3.8vw, 48px) !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  color: #0d0f1a !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  max-width: 820px !important;
  border: none !important;
  background: none !important;
  text-transform: none !important;
}

/* Subtitle */
#omfcs-page .omfcs-subtitle {
  font-family: 'DM Sans', sans-serif !important;
  font-size: clamp(15px, 1.5vw, 18px) !important;
  font-weight: 300 !important;
  color: #5a5a7a !important;
  line-height: 1.7 !important;
  max-width: 700px !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  text-transform: none !important;
}

/* Meta row */
#omfcs-page .omfcs-meta {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
  padding: 0 !important;
}
#omfcs-page .omfcs-meta > span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #9898b8 !important;
  letter-spacing: 0.04em !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}
#omfcs-page .omfcs-meta svg {
  opacity: 0.7 !important;
  flex-shrink: 0 !important;
  width: 14px !important;
  height: 14px !important;
}
#omfcs-page .omfcs-meta-dot {
  display: inline-block !important;
  width: 1px !important;
  height: 14px !important;
  background: #e0e0f0 !important;
  border-radius: 0 !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── 3. BODY ── */
#omfcs-page .omfcs-body {
  background: #f8f8fc !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
#omfcs-page .omfcs-body-grid {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 48px clamp(20px,4%,60px) 80px !important;
  display: grid !important;
  grid-template-columns: 1fr 300px !important;
  gap: 40px !important;
  align-items: start !important;
}

/* ── ARTICLE CONTENT ── */
#omfcs-page .omfcs-main { min-width: 0 !important; }
#omfcs-page .omfcs-content {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: clamp(32px,4vw,56px) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 32px rgba(59,61,170,0.06) !important;
  color: #3c3c5a !important;
  width: 100% !important;
}

/* Section headings — SERIF */
#omfcs-page .omfcs-content h1,
#omfcs-page .omfcs-content h2 {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-weight: 400 !important;
  color: #0d0f1a !important;
  line-height: 1.3 !important;
  margin: 36px 0 14px !important;
  padding: 0 0 12px !important;
  border-bottom: 2px solid #ededf8 !important;
  letter-spacing: -0.01em !important;
  background: none !important;
  text-transform: none !important;
}
#omfcs-page .omfcs-content h1 { font-size: 28px !important; }
#omfcs-page .omfcs-content h2 { font-size: 22px !important; }
#omfcs-page .omfcs-content h1:first-child,
#omfcs-page .omfcs-content h2:first-child { margin-top: 0 !important; }

/* h3 eyebrow */
#omfcs-page .omfcs-content h3 {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  color: #3b3daa !important;
  margin: 28px 0 12px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  line-height: 1.3 !important;
}
#omfcs-page .omfcs-content h3:first-child { margin-top: 0 !important; }
#omfcs-page .omfcs-content h4,
#omfcs-page .omfcs-content h5,
#omfcs-page .omfcs-content h6 {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #0d0f1a !important;
  margin: 24px 0 10px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

/* Paragraphs */
#omfcs-page .omfcs-content p {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 16px !important;
  color: #3c3c5a !important;
  line-height: 1.85 !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  background: none !important;
  font-weight: 400 !important;
}
#omfcs-page .omfcs-content p:first-of-type {
  font-size: 17px !important;
  color: #1c1c2e !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
}

#omfcs-page .omfcs-content strong,
#omfcs-page .omfcs-content b { color: #0d0f1a !important; font-weight: 600 !important; }
#omfcs-page .omfcs-content em { color: #5a5a7a !important; font-style: italic !important; }

#omfcs-page .omfcs-content a {
  color: #3b3daa !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(59,61,170,0.28) !important;
}
#omfcs-page .omfcs-content a:hover {
  color: #2b2d8a !important;
  border-bottom-color: rgba(59,61,170,0.6) !important;
}

/* Lists */
#omfcs-page .omfcs-content ul,
#omfcs-page .omfcs-content ol {
  margin: 0 0 18px !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
#omfcs-page .omfcs-content ul li,
#omfcs-page .omfcs-content ol li {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  color: #3c3c5a !important;
  line-height: 1.7 !important;
  padding-left: 20px !important;
  position: relative !important;
  background: none !important;
}
#omfcs-page .omfcs-content ul li::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important; top: 10px !important;
  width: 6px !important; height: 6px !important;
  border-radius: 50% !important;
  background: #3b3daa !important;
  opacity: 0.5 !important;
}
#omfcs-page .omfcs-content ol { counter-reset: omfcs-ol !important; }
#omfcs-page .omfcs-content ol li {
  counter-increment: omfcs-ol !important;
  padding-left: 28px !important;
}
#omfcs-page .omfcs-content ol li::before {
  content: counter(omfcs-ol)"." !important;
  position: absolute !important;
  left: 0 !important; top: 0 !important;
  color: #3b3daa !important;
  font-weight: 700 !important;
  background: none !important;
  width: auto !important; height: auto !important;
  border-radius: 0 !important;
  opacity: 1 !important;
}

/* Blockquote */
#omfcs-page .omfcs-content blockquote {
  margin: 28px 0 !important;
  padding: 20px 24px !important;
  border-left: 3px solid #3b3daa !important;
  background: #f5f5fd !important;
  border-radius: 0 10px 10px 0 !important;
  font-style: italic !important;
  color: #1c1c2e !important;
  font-size: 15.5px !important;
  line-height: 1.7 !important;
}
#omfcs-page .omfcs-content blockquote p {
  margin: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
}

/* Images */
#omfcs-page .omfcs-content img,
#omfcs-page .omfcs-content figure img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 10px !important;
  display: block !important;
  margin: 22px 0 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.09) !important;
}
#omfcs-page .omfcs-content figure { margin: 22px 0 !important; }
#omfcs-page .omfcs-content figcaption {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  color: #9898b8 !important;
  font-style: italic !important;
  text-align: center !important;
  margin-top: 8px !important;
}

#omfcs-page .omfcs-divider {
  height: 1px !important;
  background: #ededf8 !important;
  margin: 32px 0 !important;
  border: none !important;
}

/* Highlights */
#omfcs-page .omfcs-highlights {
  margin-top: 36px !important;
  padding: 28px 32px !important;
  background: linear-gradient(135deg, #f5f5fd 0%, #eeeeff 100%) !important;
  border: 1px solid rgba(99,102,241,0.15) !important;
  border-radius: 12px !important;
}
#omfcs-page .omfcs-hl-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #3b3daa !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  line-height: 1.5 !important;
  background: none !important;
  border: none !important;
}
#omfcs-page .omfcs-hl-label::after {
  content: '' !important;
  flex: 1 !important;
  height: 1px !important;
  background: rgba(99,102,241,0.2) !important;
}
#omfcs-page .omfcs-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
#omfcs-page .omfcs-chip {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #3b3daa !important;
  background: #fff !important;
  border: 1px solid rgba(59,61,170,0.20) !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  box-shadow: 0 1px 4px rgba(59,61,170,0.08) !important;
}

/* Back button */
#omfcs-page .omfcs-backbtn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 36px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #3b3daa !important;
  text-decoration: none !important;
  border: 1.5px solid rgba(59,61,170,0.25) !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  transition: background .2s, color .2s, border-color .2s !important;
  background: transparent !important;
}
#omfcs-page .omfcs-backbtn:hover {
  background: #3b3daa !important;
  color: #fff !important;
  border-color: #3b3daa !important;
}
#omfcs-page .omfcs-backbtn svg { flex-shrink: 0 !important; transition: transform .2s !important; }
#omfcs-page .omfcs-backbtn:hover svg { transform: translateX(-3px) !important; }

/* ── SIDEBAR ── */
#omfcs-page .omfcs-sidebar {
  position: sticky !important;
  top: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}
#omfcs-page .omfcs-scard {
  background: #ffffff !important;
  border-radius: 14px !important;
  padding: 22px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(59,61,170,0.05) !important;
  border: 1px solid rgba(99,102,241,0.08) !important;
}
#omfcs-page .omfcs-sh {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #6366f1 !important;
  margin: 0 0 14px !important;
  padding: 0 0 10px !important;
  border-bottom: 2px solid #ededf8 !important;
  background: none !important;
}

#omfcs-page .omfcs-stag {
  display: flex !important;
  align-items: center !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #3b3daa !important;
  background: rgba(59,61,170,0.06) !important;
  border: 1px solid rgba(59,61,170,0.12) !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  margin-bottom: 8px !important;
  letter-spacing: 0.04em !important;
  transition: all .2s !important;
}
#omfcs-page .omfcs-stag::before {
  content: '#' !important;
  margin-right: 4px !important;
  opacity: 0.5 !important;
  font-size: 11px !important;
}
#omfcs-page .omfcs-stag:last-child { margin-bottom: 0 !important; }
#omfcs-page .omfcs-stag:hover {
  background: #3b3daa !important;
  color: #fff !important;
  border-color: #3b3daa !important;
}

/* Related */
#omfcs-page .omfcs-rel {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid #f0f0f8 !important;
  text-decoration: none !important;
  transition: opacity .2s !important;
}
#omfcs-page .omfcs-rel:first-of-type { padding-top: 0 !important; }
#omfcs-page .omfcs-rel:last-of-type { border-bottom: none !important; padding-bottom: 0 !important; }
#omfcs-page .omfcs-rel:hover { opacity: 0.68 !important; }
#omfcs-page .omfcs-rel-img {
  width: 64px !important;
  height: 64px !important;
  flex-shrink: 0 !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #3b3daa, #1e2070) !important;
  background-size: cover !important;
  background-position: center !important;
  overflow: hidden !important;
}
#omfcs-page .omfcs-rel-ph {
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(135deg, #2d2f88 0%, #1a1c6e 50%, #0d1040 100%) !important;
}
#omfcs-page .omfcs-rel-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
}
#omfcs-page .omfcs-rel-cat {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #6366f1 !important;
}
#omfcs-page .omfcs-rel-title {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1c1c2e !important;
  line-height: 1.4 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Highlights list in sidebar */
#omfcs-page .omfcs-shl {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
#omfcs-page .omfcs-shl li {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  color: #4a4a6a !important;
  line-height: 1.5 !important;
  padding-left: 16px !important;
  position: relative !important;
  background: none !important;
}
#omfcs-page .omfcs-shl li::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important; top: 7px !important;
  width: 6px !important; height: 6px !important;
  border-radius: 50% !important;
  background: #6366f1 !important;
  opacity: 0.6 !important;
}

/* ═══ RESPONSIVE ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  #omf-cs-section { padding: 72px 5% 80px; }
  #omf-cs-section .omf-cs__grid, .omf-cs-archive__grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
}
@media (max-width: 960px) {
  #omfcs-page .omfcs-body-grid {
    grid-template-columns: 1fr !important;
  }
  #omfcs-page .omfcs-sidebar {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(2,1fr) !important;
    gap: 16px !important;
  }
}
@media (max-width: 767px) {
  #omf-cs-section { padding: 56px 20px 64px; }
  #omf-cs-section .omf-cs__grid, .omf-cs-archive__grid { grid-template-columns: 1fr; gap: 18px; }
  .omf-cs-modal { padding: 0; align-items: flex-end; }
  .omf-cs-modal__box { border-radius: 20px 20px 0 0; max-height: 92vh; max-width: 100%; }
  .omf-cs-modal__hero { height: 200px; border-radius: 20px 20px 0 0; }
  .omf-cs-modal__content { padding: 24px 20px 32px; }
  .omf-cs-archive { padding: 48px 20px 64px; }
}
@media (max-width: 600px) {
  #omfcs-page .omfcs-hero { height: 260px !important; }
  #omfcs-page .omfcs-sidebar {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #omfcs-page .omfcs-content { padding: 24px 18px !important; }
  #omfcs-page .omfcs-header-inner { padding: 32px 18px 28px !important; }
  #omfcs-page .omfcs-body-grid { padding: 28px 12px 48px !important; }
}
@media (prefers-reduced-motion: reduce) {
  #omf-cs-section .omf-cs__card, #omf-cs-section .omf-cs__card-img img,
  #omf-cs-section .omf-cs__loadmore, .omf-cs-modal__box { animation: none !important; transition: none !important; }
}
