/* =============================================================
   Iran Justice News — Custom child theme stylesheet
   Design System: Noir Cinema Detective (DB pick: fonts only)
   Palette: derived from competitor IRIS (navy + gold)
   ============================================================= */

:root {
  --bc2-primary: #072f70;
  --bc2-primary-dark: #041a43;
  --bc2-primary-light: #4b71b6;
  --bc2-accent: #b8860b;
  --bc2-accent-soft: #dba640;
  --bc2-text: #0a0a0a;
  --bc2-text-soft: #5a5a5a;
  --bc2-bg: #ffffff;
  --bc2-surface: #f7f6f5;
  --bc2-line: #d9d9d9;
  --bc2-font-headings: 'Abril Fatface', Georgia, 'Times New Roman', serif;
  --bc2-font-body: 'Crimson Text', Georgia, 'Times New Roman', serif;
  --bc2-radius: 6px;
  --bc2-shadow-card: 0 4px 14px rgba(7, 47, 112, 0.08);
  --bc2-shadow-hover: 0 10px 28px rgba(7, 47, 112, 0.18);
}

/* ===== RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.bc2-body {
  margin: 0;
  font-family: var(--bc2-font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--bc2-text);
  background: var(--bc2-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--bc2-font-headings);
  font-weight: 400;
  color: var(--bc2-primary);
  line-height: 1.2;
  letter-spacing: .01em;
  margin: 1.2em 0 .6em;
}
a { color: var(--bc2-primary); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--bc2-accent); }
img { max-width: 100%; height: auto; display: block; }
main, .bc2-main { padding-top: 0 !important; margin-top: 0 !important; }

/* ===== BUTTONS ===== */
.bc2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: var(--bc2-radius);
  border: 1.5px solid var(--bc2-primary);
  font-family: var(--bc2-font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: all .22s ease;
}
.bc2-btn--ghost { background: transparent; color: var(--bc2-primary); }
.bc2-btn--ghost:hover { background: var(--bc2-primary); color: #fff; }
/* CTA animation: magnetic_button */
@keyframes bc2-magnetic-pulse {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(.5px, -.5px); }
  50% { transform: translate(-.5px, .5px); }
  75% { transform: translate(-.5px, -.5px); }
}
.bc2-btn--cta {
  background: var(--bc2-primary);
  color: #fff;
  border-color: var(--bc2-primary);
  position: relative;
  will-change: transform;
}
.bc2-btn--cta:hover {
  background: var(--bc2-accent);
  border-color: var(--bc2-accent);
  color: #fff;
  animation: bc2-magnetic-pulse 1.2s ease-in-out infinite;
  box-shadow: 0 8px 22px rgba(184, 134, 11, .32);
}

/* ===== HEADER (logo-left-menu-center-cta-right) ===== */
.bc2-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #fff;
  border-bottom: 1px solid var(--bc2-line);
  box-shadow: 0 2px 12px rgba(7, 47, 112, .05);
}
.bc2-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.bc2-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--bc2-text);
  flex-shrink: 0;
}
.bc2-brand-logo {
  max-height: 48px;
  width: auto;
  display: block;
}
.bc2-brand-name {
  font-family: var(--bc2-font-headings);
  font-size: 1.35rem;
  color: var(--bc2-primary);
  letter-spacing: .015em;
  /* Casing style B = Title Case, no transform */
}

.bc2-nav-desktop {
  display: none;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .25rem;
}
.bc2-nav-desktop-list {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.bc2-nav-desktop-list li { display: inline-flex; }
.bc2-nav-desktop-list a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--bc2-text);
  text-decoration: none;
  font-family: var(--bc2-font-body);
  font-weight: 600;
  font-size: .98rem;
  padding: .45rem .25rem;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.bc2-nav-desktop-list a:hover {
  color: var(--bc2-primary);
  border-bottom-color: var(--bc2-accent);
}
.bc2-nav-desktop-list svg { flex-shrink: 0; color: currentColor; }

/* CTA in header: only desktop */
.bc2-header-cta-desktop { flex-shrink: 0; }

/* ===== BURGER ===== */
.bc2-burger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 8px !important;
  background: rgba(255, 255, 255, .92) !important;
  border: 1.5px solid rgba(7, 47, 112, .35) !important;
  border-radius: 8px !important;
  color: var(--bc2-primary) !important;
  cursor: pointer !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
  position: relative !important;
}
.bc2-burger-bars {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 22px !important;
  height: 16px !important;
}
.bc2-burger-bars span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ===== MOBILE DRAWER ===== */
.bc2-nav-mobile { display: none; }
.bc2-nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 47, 112, .55);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.bc2-nav-mobile-overlay.is-open { opacity: 1; pointer-events: auto; }

@media (max-width: 1023px) {
  .bc2-nav-mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 88%;
    max-width: 380px;
    background: #ffffff;
    padding: 4.5rem 1.5rem 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(7, 47, 112, .3);
    transition: right .3s ease-in-out;
  }
  .bc2-nav-mobile.is-open { right: 0; }
  .bc2-nav-mobile-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--bc2-primary);
    cursor: pointer;
    padding: .2rem .5rem;
  }
  .bc2-nav-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
  }
  .bc2-nav-mobile-list li {
    border-bottom: 1px solid var(--bc2-line);
  }
  .bc2-nav-mobile-list a {
    display: block;
    padding: 1rem .5rem;
    color: var(--bc2-text);
    text-decoration: none;
    font-family: var(--bc2-font-headings);
    font-size: 1.25rem;
  }
  .bc2-nav-mobile-list a:hover {
    color: var(--bc2-primary);
    background: var(--bc2-surface);
  }
  .bc2-drawer-cta {
    display: block !important;
    margin: 2rem 0 1rem !important;
    text-align: center !important;
  }
  /* desktop CTA hidden in header */
  .bc2-header-cta-desktop {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .bc2-nav-desktop { display: flex; }
  .bc2-burger { display: none !important; }
  .bc2-drawer-cta { display: none !important; }
}

/* ===== HERO (dual-cta-banner) ===== */
.bc2-hero {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bc2-primary-dark) 0%, var(--bc2-primary) 100%);
  color: #fff;
}
.bc2-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.bc2-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  text-align: center;
  padding: 4rem 1.5rem;
}
.bc2-hero-title {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin: 0 0 1rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .75), 0 0 40px rgba(0, 0, 0, .5);
}
.bc2-hero-tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  color: #f5f0e1;
  font-style: italic;
  margin: 0 0 2rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .8), 0 0 30px rgba(0, 0, 0, .55);
}
.bc2-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.bc2-hero .bc2-btn--ghost {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}
.bc2-hero .bc2-btn--ghost:hover { background: #fff; color: var(--bc2-primary); }

/* ===== EDITORIAL BLOCK ===== */
.bc2-editorial-intro {
  background: #fff;
  padding: 4rem 1.5rem;
  border-bottom: 1px solid var(--bc2-line);
}
.bc2-editorial-inner {
  max-width: 880px;
  margin: 0 auto;
}
.bc2-editorial-eyebrow {
  font-family: var(--bc2-font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bc2-accent);
  margin: 0 0 1rem;
  text-align: center;
}
.bc2-editorial-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--bc2-text);
  margin: 0 0 2rem;
  text-align: center;
  font-style: italic;
}
.bc2-editorial-section-title {
  font-size: 1.85rem;
  color: var(--bc2-primary);
  margin-top: 2.5rem;
  border-left: 4px solid var(--bc2-accent);
  padding-left: 1rem;
}
.bc2-editorial-intro p {
  color: var(--bc2-text);
  font-size: 1.08rem;
  margin: 1rem 0;
}
.bc2-editorial-intro p a { color: var(--bc2-primary); font-weight: 600; }
.bc2-editorial-outro {
  margin-top: 2rem !important;
  font-style: italic;
  color: var(--bc2-text-soft) !important;
  text-align: center;
}

/* ===== BY-CATEGORY SECTIONS ===== */
.bc2-by-cat {
  padding: 4rem 1.5rem;
  background: var(--bc2-surface);
}
.bc2-by-cat-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 760px) { .bc2-by-cat-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bc2-by-cat-inner { grid-template-columns: repeat(3, 1fr); } }

.bc2-by-cat-block {
  background: #fff;
  border-radius: var(--bc2-radius);
  overflow: hidden;
  box-shadow: var(--bc2-shadow-card);
  transition: box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.bc2-by-cat-block:hover { box-shadow: var(--bc2-shadow-hover); }
.bc2-by-cat-head { position: relative; }
.bc2-by-cat-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bc2-primary) 0%, var(--bc2-primary-dark) 100%);
}
.bc2-by-cat-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.bc2-by-cat-block:hover .bc2-by-cat-cover img { transform: scale(1.04); }
.bc2-by-cat-cover--fallback {
  background: linear-gradient(135deg, var(--bc2-primary) 0%, var(--bc2-accent) 100%);
}
.bc2-by-cat-title {
  font-family: var(--bc2-font-headings);
  font-size: 1.85rem;
  margin: 0;
  padding: 1.25rem 1.5rem .25rem;
}
.bc2-by-cat-title a {
  color: var(--bc2-primary);
  text-decoration: none;
}
.bc2-by-cat-title a:hover { color: var(--bc2-accent); }
.bc2-by-cat-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem 1.5rem;
}
.bc2-by-cat-post {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bc2-line);
}
.bc2-by-cat-post:last-child { border-bottom: none; padding-bottom: 0; }
.bc2-by-cat-post-thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}
.bc2-by-cat-post-title {
  font-family: var(--bc2-font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .35rem;
  line-height: 1.35;
}
.bc2-by-cat-post-title a {
  color: var(--bc2-text);
  text-decoration: none;
}
.bc2-by-cat-post-title a:hover { color: var(--bc2-primary); }
.bc2-by-cat-post-date {
  font-size: .85rem;
  color: var(--bc2-text-soft);
  font-style: italic;
}
.bc2-by-cat-empty {
  margin: 0;
  text-align: center;
}

/* ===== HOME ABOUT ===== */
.bc2-home-about {
  padding: 4rem 1.5rem;
  background: var(--bc2-primary-dark);
  color: #fff;
  text-align: center;
}
.bc2-home-about-inner { max-width: 720px; margin: 0 auto; }
.bc2-home-about-title {
  color: #fff;
  font-size: 2.2rem;
  margin: 0 0 1rem;
}
.bc2-home-about p {
  color: #f5f0e1;
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}
.bc2-home-about .bc2-btn--ghost {
  color: #fff;
  border-color: var(--bc2-accent);
  background: transparent;
}
.bc2-home-about .bc2-btn--ghost:hover {
  background: var(--bc2-accent);
  border-color: var(--bc2-accent);
  color: #fff;
}

/* ===== CATEGORY PAGE (tldr-detailed layout) ===== */
.bc2-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
}
.bc2-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.bc2-cat-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(4, 26, 67, .82) 100%);
}
.bc2-cat-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 1.5rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
}

/* ===== CONTACT FORM (JotForm wrapper) ===== */
.bc2-contact-form { margin: 2rem 0; }
.bc2-contact-form iframe { display: block; }

/* ===== PERSONA PHOTO (about page) ===== */
.bc2-persona-photo {
  float: right;
  width: 240px;
  max-width: 40%;
  border-radius: 8px;
  margin: 0 0 1.5rem 2rem;
  box-shadow: var(--bc2-shadow-card);
}
@media (max-width: 640px) {
  .bc2-persona-photo { float: none; margin: 0 auto 1.5rem; display: block; max-width: 70%; }
}

/* ===== FOOTER (detective_dark) ===== */
.bc2-footer {
  background: #0a0a0a;
  color: #f5f0e1;
  padding: 4rem 1.5rem 2rem;
  margin-top: 0;
}
.bc2-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 700px) { .bc2-footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bc2-footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.bc2-footer-col { color: #f5f0e1; }
.bc2-footer-title {
  font-family: var(--bc2-font-headings);
  font-size: 1.4rem;
  color: var(--bc2-accent);
  margin: 0 0 1rem;
  letter-spacing: .02em;
}
.bc2-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bc2-footer-links li { margin: 0 0 .55rem; }
.bc2-footer-links a {
  color: #f5f0e1;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px dotted transparent;
  transition: border-color .2s, color .2s;
}
.bc2-footer-links a:hover {
  color: var(--bc2-accent-soft);
  border-bottom-color: var(--bc2-accent-soft);
}
.bc2-footer-brand-pitch {
  color: #d4c8a8;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}
.bc2-footer-brand-cta {
  display: inline-block;
  color: var(--bc2-accent-soft);
  text-decoration: none;
  font-family: var(--bc2-font-headings);
  font-size: 1.05rem;
  border-bottom: 1px solid var(--bc2-accent-soft);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.bc2-footer-brand-cta:hover {
  color: #fff;
  border-bottom-color: #fff;
}
.bc2-footer-copyright {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 240, 225, .15);
  text-align: center;
  color: #b8ac95;
  font-size: .9rem;
}
.bc2-footer-copyright p { margin: 0; }

/* ===== FLOATING CTO (floating_form_button) ===== */
@keyframes bc2-cto-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.bc2-cto-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bc2-accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .95rem 1.4rem;
  font-family: var(--bc2-font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .02em;
  box-shadow: 0 8px 24px rgba(184, 134, 11, .4);
  cursor: pointer;
  z-index: 998;
  animation: bc2-cto-bounce 2.6s ease-in-out infinite;
  text-decoration: none;
  display: none;
}
@media (min-width: 1024px) {
  .bc2-cto-floating { display: inline-flex; align-items: center; gap: .5rem; }
}
.bc2-cto-floating:hover {
  background: var(--bc2-primary);
  animation: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(7, 47, 112, .4);
}

/* ===== CURSOR SPOTLIGHT (mouse effect) ===== */
@media (hover: hover) and (pointer: fine) {
  body.bc2-spot-on::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle 320px at var(--mx, 50%) var(--my, 50%),
                rgba(184, 134, 11, .10), transparent 60%);
    transition: background .12s linear;
    mix-blend-mode: multiply;
  }
}

/* ===== UTILS ===== */
.bc2-container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }


/* Mouse effect : cursor_spotlight_radial */
@media (hover:hover) and (pointer:fine){body.bc2-spot-on{position:relative}body.bc2-spot-on::after{content:'';position:fixed;inset:0;pointer-events:none;z-index:1;background:radial-gradient(circle 320px at var(--mx,50%) var(--my,50%),rgba(184,134,11,.10),transparent 60%);transition:background .12s linear;mix-blend-mode:multiply}}
/* RANKO IJ-CUSTOM 2026-07-10 */

.bc2-hero-title { color: #ffffff !important; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
body .bc2-footer, body .bc2-footer *,
body .bc2-footer h1, body .bc2-footer h2, body .bc2-footer h3, body .bc2-footer h4, body .bc2-footer h5, body .bc2-footer h6,
body .bc2-footer p, body .bc2-footer span, body .bc2-footer li, body .bc2-footer a { color: #000000 !important; }
body .bc2-footer a:hover { color: #333333 !important; }

