/* Novin Konkor Design V3.1.22 - Unified Design System */

@font-face {
  font-family: "IRANSansWeb";
  font-display: swap;
  src: url("fonts/IRANSansWeb.woff") format("woff");
}
@font-face {
  font-family: "iranyekanwebregular";
  font-display: swap;
  src: url("fonts/iranyekanwebregular.woff") format("woff");
}

:root {
  /* Surfaces */
  --bg-page: #f1f1f1;
  --bg-card: #ffffff;
  --bg-soft: #e8f7ef;
  --bg-media: #f5f5f5;
  --bg-media-soft: #f0faf4;

  /* Brand */
  --primary: #009a51;
  --primary-light: #00b35f;
  --primary-dark: #007a40;

  --accent: #ffc107;
  --accent-soft: #fff8e1;
  --accent-deep: #ffb300;

  /* Text */
  --text: #121212;
  --text-muted: #5a5a5a;
  --border: #e6e8e6;
  --border-focus: var(--primary);

  /* Section accents (identity, not global fill) */
  --accent-news: var(--primary);
  --accent-hot: var(--accent-deep);
  --tint-tajrobi: #e6f6ee;
  --tint-ensani: #e8f1f6;
  --tint-riazi: #faf4e4;
  --tint-exam-3: #f0ecf5;
  --tint-exam-4: #f8eee6;

  /* Taraz tier colors */
  --c-10000: #007a40;
  --c-9000: #009a51;
  --c-8000: #4db87a;
  --c-7000: #EAB308;
  --c-6000: #EA580C;
  --c-5000: #DC2626;
  /* Taraz number emphasis */
  --c-10000-strong: #006636;
  --c-9000-strong: #007a40;
  --c-8000-strong: #3a9e64;
  --c-7000-strong: #c99400;
  --c-6000-strong: #c44a0a;
  --c-5000-strong: #b91c1c;
  --tint-10000: #e0f5ec;
  --tint-9000: #e6f6ee;
  --tint-8000: #eaf7ef;
  --tint-7000: #fdf6d8;
  --tint-6000: #fdeee4;
  --tint-5000: #fde8e8;

  /* Radius scale */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --radius: var(--radius-lg); /* alias */

  /* Spacing scale (8pt rhythm) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;

  /* Shadow + motion */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 26px rgba(0, 154, 81, 0.12);
  --shadow-accent: 0 3px 12px rgba(255, 193, 7, 0.4);
  --lift: translateY(-2px);
  --transition: 0.22s ease;

  /* Layout */
  --header-h: 72px;
  --max-w: 1140px;
  --footer-bg: #0c2419;
  --font-main: "IRANSansWeb", Tahoma, sans-serif;
}

/* Mirror tokens on root wrapper so layout works even if :root is overridden */
.novin-v3-root {
  --bg-page: #f1f1f1;
  --bg-card: #ffffff;
  --bg-soft: #e8f7ef;
  --bg-media: #f5f5f5;
  --bg-media-soft: #f0faf4;
  --primary: #009a51;
  --primary-light: #00b35f;
  --primary-dark: #007a40;
  --accent: #ffc107;
  --accent-soft: #fff8e1;
  --accent-deep: #ffb300;
  --text: #121212;
  --text-muted: #5a5a5a;
  --border: #e6e8e6;
  --border-focus: #009a51;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --radius: 14px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 26px rgba(0, 154, 81, 0.12);
  --shadow-accent: 0 3px 12px rgba(255, 193, 7, 0.4);
  --lift: translateY(-2px);
  --transition: 0.22s ease;
  --header-h: 72px;
  --max-w: 1140px;
  --footer-bg: #0c2419;
  --font-main: "IRANSansWeb", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Global tags scoped under .novin-v3-root only (keeps Jannah header/nav safe) */
.novin-v3-root {
  font-family: var(--font-main, "IRANSansWeb", Tahoma, sans-serif);
  background: var(--bg-page);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.7;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}
.novin-v3-root h1,
.novin-v3-root h2,
.novin-v3-root h3,
.novin-v3-root h4,
.novin-v3-root h5,
.novin-v3-root h6,
.novin-v3-root strong,
.novin-v3-root b {
  font-family: inherit;
  margin: 0;
  padding: 0;
  line-height: 1.4;
  color: inherit;
}
.novin-v3-root h1,
.novin-v3-root h2,
.novin-v3-root h3,
.novin-v3-root h4,
.novin-v3-root h5,
.novin-v3-root h6 {
  font-weight: 700;
}
.novin-v3-root strong,
.novin-v3-root b {
  font-weight: 700;
}

.novin-v3-root a {
  color: inherit;
  text-decoration: none !important;
  box-shadow: none !important;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}
.novin-v3-root img {
  max-width: 100%;
  display: block;
  height: auto;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
}
.novin-v3-root ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.novin-v3-root li {
  margin: 0;
  padding: 0;
  list-style: none !important;
}
.novin-v3-root button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
.novin-v3-root p {
  margin: 0;
  padding: 0;
}
.novin-v3-root .hero-desc {
  margin-bottom: 18px;
}
.novin-v3-root .section-lead {
  margin: calc(var(--space-2) * -1) 0 var(--space-4);
}
.novin-v3-root .panel-hint {
  margin-bottom: var(--space-3);
}
.novin-v3-root .hidden { display: none !important; }

.novin-v3-root .container {
  width: 100%;
  max-width: 1140px;
  max-width: var(--max-w, 1140px);
  margin: 0 auto;
  padding: 0 var(--space-4);
  overflow-x: hidden;
  float: none !important;
  box-sizing: border-box;
}
.novin-v3-root .container.hero-grid {
  display: grid;
}

/* ========== Header ========== */
.novin-v3-root .site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.novin-v3-root .header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-3);
  min-width: 0;
}
.novin-v3-root .main-nav{
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}
.novin-v3-root .header-actions{
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.novin-v3-root .logo{
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  max-width: min(220px, 42vw);
}
.novin-v3-root .logo-img{
  display: block;
  width: auto;
  height: 44px;
  max-width: 100%;
  object-fit: contain;
  object-position: right center;
}
.novin-v3-root .logo-icon{
  width: 42px; height: 42px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.1rem;
}
.novin-v3-root .logo-text{ display: flex; flex-direction: column; line-height: 1.3; }
.novin-v3-root .logo-text strong{ font-size: 1.05rem; font-weight: 800; }
.novin-v3-root .logo-text span{ font-size: 0.68rem; color: var(--text-muted); }
.novin-v3-root .main-nav a{
  padding: var(--space-2) 10px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem; font-weight: 500; color: var(--text-muted);
}
.novin-v3-root .main-nav a:hover,
.novin-v3-root .main-nav a.active{
  color: var(--primary-dark);
  background: var(--bg-soft);
}
.novin-v3-root .search-btn{
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.85rem;
  background: var(--bg-card);
}
.novin-v3-root .menu-toggle{ display: none; font-size: 1.4rem; padding: 6px 10px; }

.novin-v3-root .mobile-nav{
  display: none; position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.4); z-index: 2000;
}
.novin-v3-root .mobile-nav.open{ display: block; }
.novin-v3-root .mobile-nav-panel{
  background: var(--bg-card);
  width: min(320px, 88vw); height: 100%;
  margin-right: auto;
  padding: var(--space-5) 20px;
  display: flex; flex-direction: column; gap: var(--space-3);
}
.novin-v3-root .mobile-nav-close{ align-self: flex-start; font-size: 1.2rem; margin-bottom: var(--space-2); }
.novin-v3-root .mobile-nav-panel a{
  padding: 10px var(--space-3);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.novin-v3-root .mobile-nav-panel a:hover{ background: var(--bg-soft); }

/* ========== Buttons ========== */
.novin-v3-root .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.novin-v3-root .btn-primary{ background: var(--primary); color: #fff; }
.novin-v3-root .btn-primary:hover{ background: var(--primary-dark); }
.novin-v3-root .btn-outline{
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  background: var(--bg-card);
}
.novin-v3-root .btn-outline:hover{ background: var(--bg-soft); }
.novin-v3-root .btn-accent{
  background: var(--accent);
  color: #1a1a1a;
  box-shadow: var(--shadow-accent);
}
.novin-v3-root .btn-accent:hover{ background: var(--accent-deep); }

.novin-v3-root .btn-under-list{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 9px var(--space-4);
  border-radius: var(--radius-pill);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.4;
  background: var(--primary);
  transition: background var(--transition), color var(--transition);
}
.novin-v3-root .btn-under-list:hover{ background: var(--primary-dark); color: #fff; }
.hot-col .novin-v3-root .btn-under-list{
  background: var(--accent);
  color: var(--text);
}
.hot-col .novin-v3-root .btn-under-list:hover{
  background: var(--accent-deep);
  color: var(--text);
}

.novin-v3-root .btn-mini{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px var(--space-3);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
  transition: background var(--transition), color var(--transition);
}

/* ========== Hero ========== */
.hero{
  padding: 36px 0 var(--space-5);
  background: var(--bg-page);
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}
.hero-badge{
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-accent);
}
.hero h1{
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
  line-height: 1.35;
}
.hero-desc{
  color: var(--text-muted);
  margin-bottom: 18px;
  max-width: 42ch;
  font-size: 0.92rem;
}
.hero-actions{ display: flex; flex-wrap: wrap; gap: 10px; }
.hero-visual{
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-media);
}
.hero-visual img{ width: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ========== Sections ========== */
.section{
  padding: var(--space-7) 0;
  background: var(--bg-page);
}
.section-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: 18px;
}
.section-title{ display: flex; align-items: flex-start; gap: 10px; }
.section-title h2{
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.4;
}
.section-title .muted{
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.88em;
}
.section-sub{
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}
.section-lead{
  color: var(--text-muted);
  margin: calc(var(--space-2) * -1) 0 var(--space-4);
  font-size: 0.92rem;
}
.dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(224, 180, 14, 0.22);
}
.view-all{
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* ========== News + Hot ========== */
.news-hot-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.news-list{
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.news-list a{
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 14px;
  border-radius: var(--radius-lg);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border-right: 3px solid var(--accent-news);
}
.news-list a .news-text{
  flex: 1 1 auto;
  min-width: 0;
  display: inline;
}
.news-list a .news-text .emoji,
.news-list a img.emoji{
  width: 1em !important;
  height: 1em !important;
  max-width: 1em !important;
  max-height: 1em !important;
  display: inline !important;
  vertical-align: -0.15em !important;
  margin: 0 0.05em !important;
  aspect-ratio: auto !important;
  background: transparent !important;
}
.news-list a:hover{ background: var(--bg-soft); }
.news-list-hot a{ border-right-color: var(--accent-hot); }
.news-list-hot a:hover{ background: #fffbf0; }
.news-mark{
  width: 7px;
  height: 7px;
  margin-top: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-news);
}
.hot-mark{ background: var(--accent-hot); }
.news-col .dot{
  background: var(--accent-news);
  box-shadow: 0 0 0 3px rgba(0, 154, 81, 0.18);
  animation: novin-news-dot-blink 1.35s ease-in-out infinite;
}
.hot-col .dot{
  background: var(--accent-hot);
  box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.28);
}
/* Section titles: same family as body — no Tahoma swap */
html body .novin-v3-root .section-title h2,
html body .novin-v3-root .section-title h2 strong,
html body .novin-v3-root .section-title h2 b,
html body.page-template-page-novin-home .novin-v3-root .section-title h2,
html body.page-template-page-novin-home .novin-v3-root .section-title h2 strong,
html body.page-template-page-novin-home .novin-v3-root .section-title h2 b,
html body.page-template-page-novin-static .novin-v3-root .section-title h2,
html body.page-template-page-novin-static .novin-v3-root .section-title h2 strong,
html body.page-template-page-novin-static .novin-v3-root .section-title h2 b {
  font-family: inherit !important;
  font-weight: 700 !important;
}
@keyframes novin-news-dot-blink{
  0%, 100%{
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(0, 154, 81, 0.22);
  }
  50%{
    opacity: 0.35;
    transform: scale(0.85);
    box-shadow: 0 0 0 8px rgba(0, 154, 81, 0);
  }
}
@media (prefers-reduced-motion: reduce){
  .news-col .dot{ animation: none; }
}

/* ========== Rank / Taraz ========== */
.sub-tabs{
  display: flex;
  gap: var(--space-2);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.sub-tab{
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.sub-tab.active{
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent-deep);
  box-shadow: var(--shadow-accent);
}
.sub-tab:not(.active):hover{
  border-color: var(--border-focus);
  color: var(--primary-dark);
}
.sub-panel{ display: none; }
.sub-panel.active{ display: block; }
.panel-hint{
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

a.rank-style-item,
a.rank-card,
a.floor-card,
a.info-card,
a.grade-box{
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.rank-style-item{
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 14px 14px var(--space-3);
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.rank-style-item:hover{
  box-shadow: var(--shadow-hover);
  transform: var(--lift);
}
.rank-style-item img{
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}
.rsi-text{
  flex: 1;
  min-width: 0;
  text-align: center;
}
.rsi-text h4{
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 2px;
}
.rsi-text p{
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Rank cards */
.rank-cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.rank-card{
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.rank-card:hover{
  transform: var(--lift);
  box-shadow: var(--shadow-hover);
}
.rank-card-media{
  width: 100%;
  line-height: 0;
}
.rank-card-media img{
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--bg-media);
  display: block;
}
.rank-card-body{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px var(--space-4);
  text-align: center;
  background: var(--bg-card);
  box-sizing: border-box;
}
.rank-card-body h4{
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
}
.rank-card:hover .rank-card-body h4{ color: var(--primary-dark); }

/* Field chips */
.field-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px var(--space-3);
  margin-inline: 2px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--tint-tajrobi);
  color: var(--text);
  font-size: 1em;
  font-weight: inherit;
  line-height: inherit;
  white-space: nowrap;
  vertical-align: middle;
}
.rank-card-tajrobi .field-chip,
.floor-card[data-group="tajrobi"] .field-chip{
  background: var(--tint-tajrobi);
}
.rank-card-ensani .field-chip,
.floor-card[data-group="ensani"] .field-chip{
  background: var(--tint-ensani);
}
.rank-card-riazi .field-chip,
.floor-card[data-group="riazi"] .field-chip{
  background: var(--tint-riazi);
}

.accent-10000 .novin-v3-root .btn-mini{ background: var(--tint-10000); color: var(--text); }
.accent-9000 .novin-v3-root .btn-mini{ background: var(--tint-9000); color: var(--text); }
.accent-8000 .novin-v3-root .btn-mini{ background: var(--tint-8000); color: var(--text); }
.accent-7000 .novin-v3-root .btn-mini{ background: var(--tint-7000); color: var(--text); }
.accent-6000 .novin-v3-root .btn-mini{ background: var(--tint-6000); color: var(--text); }
.accent-5000 .novin-v3-root .btn-mini{ background: var(--tint-5000); color: var(--text); }

.accent-10000 .taraz-num{ color: var(--c-10000-strong); }
.accent-9000 .taraz-num{ color: var(--c-9000-strong); }
.accent-8000 .taraz-num{ color: var(--c-8000-strong); }
.accent-7000 .taraz-num{ color: var(--c-7000-strong); }
.accent-6000 .taraz-num{ color: var(--c-6000-strong); }
.accent-5000 .taraz-num{ color: var(--c-5000-strong); }

/* ========== Exams ========== */
.exams-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  width: 100%;
  max-width: calc((100% - 24px) / 3 * 2 + 12px);
  margin-inline: auto;
}
.exams-grid .rank-style-item{
  gap: 10px;
  padding: 0 0 0 10px;
  height: 120px;
  min-height: 120px;
  align-items: center;
  background: var(--bg-card);
  border: none;
  box-shadow: var(--shadow);
}
.exams-grid .rank-style-item:nth-child(1) .btn-mini{ background: var(--tint-tajrobi); color: var(--text); }
.exams-grid .rank-style-item:nth-child(2) .btn-mini{ background: var(--tint-ensani); color: var(--text); }
.exams-grid .rank-style-item:nth-child(3) .btn-mini{ background: var(--tint-exam-3); color: var(--text); }
.exams-grid .rank-style-item:nth-child(4) .btn-mini{ background: var(--tint-exam-4); color: var(--text); }
.exams-grid .exam-thumb{
  flex-shrink: 0;
  width: 120px;
  height: 100%;
  align-self: stretch;
  margin-inline-end: 0;
  overflow: hidden;
  background: var(--bg-media);
}
.exams-grid .exam-thumb img{
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
}
.exams-grid .rsi-text{ padding-block: 0; }
.exams-grid .rsi-text h4,
.exams-grid .rsi-text p{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.exams-grid .btn-mini{ margin-inline-end: 2px; }

/* ========== Floor ========== */
.floor-groups{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}
.floor-card{
  display: grid;
  grid-template-columns: minmax(72px, 28%) 1fr;
  align-items: stretch;
  height: 150px;
  min-height: 150px;
  max-width: 100%;
  padding: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.floor-card:hover{
  box-shadow: var(--shadow-hover);
  transform: var(--lift);
}
.floor-body{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  padding: 10px var(--space-3);
  text-align: center;
  background: var(--bg-card);
}
.floor-label{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  min-width: 0;
  text-align: center;
}
.floor-sub{
  width: 100%;
  margin: 0;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.floor-img{
  position: relative;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  overflow: hidden;
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  background: var(--bg-card);
  color: inherit;
}
.floor-img::after{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 22%;
  background: linear-gradient(to right, var(--bg-card) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.floor-img img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.back-link{
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
}
.floor-majors-title{
  margin-bottom: var(--space-3);
  font-size: 1.1rem;
  font-weight: 800;
}
.major-list{
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.major-list a{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px var(--space-4);
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.major-list a span{
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
}
.major-list a:hover{
  background: var(--bg-soft);
  box-shadow: var(--shadow-hover);
  transform: var(--lift);
}

/* ========== Final ========== */
.final-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}
.final-box{
  padding: 22px;
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  font-weight: 700;
  box-shadow: var(--shadow);
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), color var(--transition);
}
.final-box:hover{
  color: var(--primary-dark);
  box-shadow: var(--shadow-hover);
  transform: var(--lift);
}

/* ========== Info ========== */
#info{ background: var(--bg-page); }
.info-wrap{
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.info-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.info-card{
  display: grid;
  grid-template-columns: minmax(72px, 28%) 1fr;
  align-items: stretch;
  min-height: 120px;
  max-width: 100%;
  padding: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.info-card:hover{
  box-shadow: var(--shadow-hover);
  transform: var(--lift);
}
.info-img{
  min-width: 0;
  overflow: hidden;
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  background: var(--bg-media-soft);
}
.info-img img{
  width: 100%;
  height: 100%;
  min-height: 120px;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.info-body{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-1);
  min-width: 0;
  padding: 10px var(--space-3);
  text-align: center;
  background: var(--bg-card);
}
.info-card h3{
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
}
.info-subs{
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.info-subs li{
  display: block;
  text-align: center;
}

.card-icon{
  width: 42%;
  max-width: 120px;
  min-width: 72px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: none;
  box-shadow: var(--shadow-sm);
  background: var(--bg-media-soft);
  display: block;
}

/* ========== Grades ========== */
.section-grades{
  background: var(--bg-page);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.grade-tabs{
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.grade-tab{
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.grade-tab.active{
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.grade-tab:not(.active):hover{
  border-color: var(--border-focus);
  color: var(--primary-dark);
}
.grade-panel{ display: none; }
.grade-panel.active{ display: block; }
.grade-boxes{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.grade-box{
  padding: 22px;
  text-align: center;
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), color var(--transition);
}
.grade-box:hover{
  color: var(--primary-dark);
  box-shadow: var(--shadow-hover);
  transform: var(--lift);
}
.grade-actions{
  margin-top: var(--space-2);
  padding: 20px;
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.grade-actions h3{ margin-bottom: 14px; font-weight: 800; }
.action-btns{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.action-btn{
  padding: 14px var(--space-3);
  text-align: center;
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.action-btn:hover{
  background: var(--bg-soft);
  color: var(--primary-dark);
  box-shadow: var(--shadow-hover);
  transform: var(--lift);
}

/* ========== Posts ========== */
.posts-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}
.post-card{
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover{
  box-shadow: var(--shadow-hover);
  transform: var(--lift);
}
.post-thumb{
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-media);
}
.post-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-media);
}
.post-body{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
  padding: 12px 14px 16px;
  box-sizing: border-box;
}
.tag{
  display: inline-block;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--bg-soft);
  padding: 2px var(--space-2);
  border-radius: var(--radius-xs);
  margin: 0 0 8px;
  line-height: 1.4;
}
.post-body h3{
  margin: 0;
  width: 100%;
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 700;
  min-height: calc(1.55em * 3);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* ========== Social ========== */
.social-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  max-width: 680px;
  margin-inline: auto;
}
.social-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-3) var(--space-2);
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.social-card:hover{
  transform: var(--lift);
  box-shadow: var(--shadow-hover);
}
.social-png{
  width: 40px;
  height: 40px;
  object-fit: contain;
  border: none;
  border-radius: 0;
  background: transparent;
}
.social-card strong{
  font-size: 0.86rem;
  font-weight: 700;
}
.join-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 5px var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  border: 1.5px solid #ccc;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.join-telegram{ border-color: #2AABEE; color: #1a8fc4; }
.join-bale{ border-color: #00A884; color: #008f70; }
.join-eitaa{ border-color: #F36C21; color: #d45a14; }
.join-rubika{ border-color: #7B2D8E; color: #6a247a; }

/* ========== Footer ========== */
.novin-v3-root .site-footer{
  background: var(--footer-bg);
  color: #e8f5ee;
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-3);
}
.novin-v3-root .site-footer .novin-v3-root .logo{
  max-width: min(240px, 80%);
}
.novin-v3-root .site-footer .novin-v3-root .logo--footer{
  display: inline-flex;
  align-items: center;
  max-width: min(240px, 80%);
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.novin-v3-root .site-footer .novin-v3-root .logo-img{
  height: 52px;
  filter: none;
}
.site-footer .logo-text strong,
.novin-v3-root .site-footer .novin-v3-root .logo-text span{ color: #fff; }
.novin-v3-root .site-footer .novin-v3-root .logo-icon{ background: var(--primary); }
.novin-v3-root .footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.novin-v3-root .footer-brand p{
  margin-top: 0;
  font-size: 0.88rem;
  color: #cfe8da;
  opacity: 1;
  text-shadow: none;
}
.novin-v3-root .footer-col{
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.novin-v3-root .footer-col h4{
  margin-bottom: var(--space-1);
  color: #ffffff;
  font-weight: 800;
  text-shadow: none;
}
.novin-v3-root .footer-col a{
  color: #cfe8da;
  opacity: 1;
  font-size: 0.9rem;
  text-shadow: none;
}
.novin-v3-root .footer-col a:hover{
  color: var(--accent);
}
.novin-v3-root .footer-bottom{
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-4);
  font-size: 0.82rem;
  color: #a8cbb8;
  opacity: 1;
}

/* ========== Desktop gutters ========== */
@media (min-width: 768px) {
.novin-v3-root .container{
    padding-left: var(--space-7);
    padding-right: var(--space-7);
  }
.info-card{
    grid-template-columns: 120px minmax(0, 1fr);
  }
.info-img{
    width: 120px;
    min-width: 120px;
    max-width: 120px;
  }
.floor-card{
    grid-template-columns: 140px minmax(0, 1fr);
  }
.floor-img{
    width: 140px;
    min-width: 140px;
    max-width: 140px;
  }
}
@media (min-width: 1200px) {
.novin-v3-root .container{
    padding-left: 56px;
    padding-right: 56px;
  }
}

/* ========== Mobile ========== */
@media (max-width: 767.98px) {
.novin-v3-root .main-nav{ display: none; }
.novin-v3-root .menu-toggle{ display: block; }
.novin-v3-root .search-btn span{ display: none; }
.novin-v3-root .logo{
    max-width: min(180px, 58vw);
  }
.novin-v3-root .logo-img{
    height: 38px;
  }
.hero-grid{ grid-template-columns: 1fr; }
.hero-visual{ order: -1; max-width: 100%; }
.news-hot-grid{ grid-template-columns: 1fr; gap: 28px; }

  .posts-grid,
  .rank-style-grid,
  .rank-cards,
  .info-grid,
  .floor-groups,
  .grade-boxes,
  .action-btns,
.final-grid{
    grid-template-columns: 1fr;
  }

.social-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 300px;
    gap: var(--space-2);
  }
.social-card{ padding: 10px var(--space-2); }
.social-png{ width: 36px; height: 36px; }

.floor-card{
    grid-template-columns: minmax(80px, 30%) 1fr;
    height: 100px;
    min-height: 100px;
  }
.floor-label{ font-size: 0.98rem; }
.info-card{ grid-template-columns: minmax(80px, 30%) 1fr; min-height: 100px; }
.info-card h3{ font-size: 0.98rem; }
.exams-grid{
    max-width: 100%;
    grid-template-columns: 1fr;
  }
.exams-grid .rank-style-item{
    height: 100px;
    min-height: 100px;
  }
.exams-grid .exam-thumb{ width: 100px; }
.novin-v3-root .footer-grid{ grid-template-columns: 1fr; }
.section{ padding: var(--space-6) 0; }
.card-icon{
    width: 38%;
    max-width: 110px;
  }
}

/* ========== Archive / Category (اخبار کنکور) - V3 ========== */
.archive-page{
  padding: var(--space-5) 0 var(--space-7);
}
.archive-breadcrumb{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.archive-breadcrumb a{
  color: var(--primary);
  font-weight: 600;
}
.archive-breadcrumb a:hover{ color: var(--primary-dark); }
.bc-sep{ opacity: 0.45; }

.archive-page-head{
  margin-bottom: var(--space-5);
}
.archive-page-head h1{
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.4;
}

.archive-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-4);
  align-items: start;
}

.archive-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.archive-post{
  display: grid;
  grid-template-columns: minmax(240px, 32%) minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: none;
  overflow: hidden;
  min-width: 0;
  border-bottom: none;
  transition: box-shadow var(--transition);
}
.archive-post:last-child{
  border-bottom: none;
}
.archive-post:hover{
  transform: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  background: var(--bg-card);
}

.archive-thumb{
  display: block;
  width: 100%;
  min-width: 0;
  margin-block: 8px;
  margin-inline-start: 8px;
  margin-inline-end: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-media);
  align-self: center;
}
.archive-thumb img{
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  display: block;
}

.archive-body{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 12px 15.4px 14px;
  min-width: 0;
}
.archive-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.archive-author{
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.7rem;
}
.archive-title{
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 14px;
}
.archive-title a:hover{ color: var(--primary-dark); }
.archive-excerpt{
  font-size: 0.8rem;
  color: #666;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-pagination{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.page-num,
.page-next,
.novin-v3-root .navigation.pagination .page-numbers,
.novin-v3-root .archive-pagination .page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none !important;
  box-shadow: none !important;
}
.page-num:hover,
.page-next:hover,
.novin-v3-root .navigation.pagination .page-numbers:hover,
.novin-v3-root .archive-pagination .page-numbers:hover{
  border-color: var(--border-focus);
  color: var(--primary-dark);
}
.page-num.current,
.novin-v3-root .navigation.pagination .page-numbers.current,
.novin-v3-root .archive-pagination .page-numbers.current{
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.novin-v3-root .navigation.pagination .nav-links{
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.archive-sidebar{
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.side-widget{
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 14px;
}
.side-widget-head{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.side-widget-head .dot{
  margin-top: 0;
}
.side-widget-head h3{
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
}

.side-list{
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.side-item{
  display: block;
  padding: 10px var(--space-3);
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.55;
  background: var(--bg-page);
  transition: background var(--transition), color var(--transition);
}
.side-item:hover{
  background: var(--bg-soft);
  color: var(--primary-dark);
}

.side-list-thumbs{
  gap: 0;
}
.side-list-thumbs > li{
  padding-block: 10px;
  border-bottom: 1px dashed #d0d0d0;
}
.side-list-thumbs > li:first-child{
  padding-top: 0;
}
.side-list-thumbs > li:last-child{
  border-bottom: none;
  padding-bottom: 0;
}
.side-item-thumb{
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0;
  background: transparent;
}
.side-item-thumb > img{
  width: 96px;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  background: var(--bg-media);
}
/* WP/Jannah converts emoji in titles to <img.emoji> — keep them inline-small */
.side-item-thumb .emoji,
.side-item-body img.emoji,
.side-item img.emoji,
.novin-v3-root .archive-sidebar img.emoji {
  width: 1em !important;
  height: 1em !important;
  max-width: 1em !important;
  max-height: 1em !important;
  margin: 0 0.1em !important;
  padding: 0 !important;
  display: inline !important;
  vertical-align: -0.15em !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 0 !important;
}
/* Legacy single-span titles */
.side-item-thumb > span:not(.side-item-body){
  flex: 1;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: normal;
}
/* Title + trailing meta (icon/badge) — prevents left-column wrap mess */
.side-item-body{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}
.side-item-title{
  display: block;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}
.side-item-meta{
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-muted);
}
.side-item-thumb:hover{
  background: transparent;
  color: var(--primary-dark);
}
.side-item-thumb:hover .side-item-meta{
  color: var(--primary-dark);
}

.side-cats{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-cats li{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f1f1 !important;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.side-cats li > a{
  flex: 1;
  min-width: 0;
  color: #121212 !important;
}
.side-cats li:hover{
  background: #e8e8e8 !important;
}
.side-cats li.current{
  background: #ffc107 !important;
}
.side-cats li.current > a,
.side-cats li.current:hover > a{
  color: #121212 !important;
}
.side-cats .side-cat-count,
.side-cats li > span{
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ffffff !important;
  color: #5a5a5a !important;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  border: 0 !important;
  box-shadow: none !important;
}
.side-cats li.current .side-cat-count,
.side-cats li.current > span{
  background: #ffffff !important;
  color: #121212 !important;
}
.side-cats li.current:hover{
  background: #ffc107 !important;
}

@media (max-width: 991.98px) {
.archive-layout{
    grid-template-columns: 1fr;
  }
.archive-sidebar{
    order: 2;
  }
}

@media (max-width: 767.98px) {
.archive-post{
    grid-template-columns: 1fr;
    row-gap: 0;
  }
.archive-thumb{
    width: auto;
    margin: 8px 8px 0;
    align-self: stretch;
  }
.archive-thumb img{
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }
.archive-body{ padding: 12px 15.4px 14px; }
.archive-title{ font-size: 0.98rem; }
}

/* ========== Single post - V3 chrome (editor body colors untouched) ========== */
.single-page{
  padding: var(--space-5) 0 var(--space-7);
}
.single-main{
  min-width: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-5);
  overflow: hidden;
}
.single-header{ margin-bottom: var(--space-4); }
.single-cat{
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
}
.single-title{
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: var(--space-3);
  color: var(--text);
}
.single-meta{ margin-bottom: 0; }
.single-featured{
  margin: 0 0 var(--space-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-media);
}
.single-featured img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Entry content: layout/spacing only - do NOT reset editor colors/tables */
.entry-content{
  font-size: 0.95rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
  overflow-x: auto;
}
.entry-content > *:first-child{ margin-top: 0; }
.entry-content p{ margin: 0 0 1em; }
.entry-content h2{
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 1.6em 0 0.7em;
}
.entry-content h3{
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 1.3em 0 0.55em;
}
.entry-content ul,
.entry-content ol{
  margin: 0 0 1em;
  padding-right: 1.25em;
  list-style: disc;
}
.entry-content li{ margin-bottom: 0.35em; }
.entry-content img{
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.entry-content table{
  width: 100% !important;
  max-width: 100%;
  margin: 1em 0;
  border-collapse: collapse;
}
.entry-content .highlight-bg{
  margin: 1em 0;
}

/* TOC chrome only - list links keep readable V3 accents for nav, not editor text */
#ez-toc-container{
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin: 0 0 var(--space-5);
}
#ez-toc-container .ez-toc-title{
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0 0 var(--space-3);
  color: var(--text);
}
#ez-toc-container .ez-toc-title-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
#ez-toc-container nav ul{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#ez-toc-container nav.is-collapsed{ display: none; }
#ez-toc-container .ez-toc-link{
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
#ez-toc-container .ez-toc-link:hover{
  background: var(--bg-soft);
  color: var(--primary-dark);
}
.ez-toc-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.related-section{
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.related-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.related-card{
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.related-card:hover{
  transform: var(--lift);
  box-shadow: var(--shadow-hover);
}
.related-thumb img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-media);
}
.related-card h3{
  padding: 12px 14px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
}

@media (max-width: 767.98px) {
.single-main{ padding: var(--space-4); }
.related-grid{ grid-template-columns: 1fr; }
.entry-content h2{ font-size: 1.12rem; }
}

/* ========== Live-site typography (archive + single only; homepage sizes untouched) ========== */
body.page-archive,
body.page-single {
  --max-w: 1166px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.615;
}

body.page-archive .archive-breadcrumb,
body.page-single .archive-breadcrumb {
  font-size: 12px;
}
body.page-archive .archive-page-head h1 {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.4;
}
body.page-archive .archive-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 14px;
}
body.page-archive .archive-excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  -webkit-line-clamp: 1;
}
body.page-archive .archive-meta {
  font-size: 12px;
  margin-bottom: 12px;
}
body.page-archive .archive-author {
  font-size: 11px;
}
body.page-archive .side-widget-head h3,
body.page-single .side-widget-head h3 {
  font-size: 0.875rem;
  font-weight: 700;
}
body.page-archive .side-item,
body.page-single .side-item {
  font-size: 0.8125rem;
  font-weight: 700;
}
body.page-archive .side-item-thumb > span:not(.side-item-body),
body.page-single .side-item-thumb > span:not(.side-item-body),
body.page-archive .side-item-body,
body.page-single .side-item-body {
  font-size: 0.8125rem;
  font-weight: 700;
}
body.page-archive .side-item-thumb > img,
body.page-single .side-item-thumb > img,
.novin-v3-root .side-item-thumb > img {
  width: 96px !important;
  max-width: 96px !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: var(--bg-media, #f5f5f5) !important;
}
body.page-archive .archive-sidebar img.emoji,
body.page-single .archive-sidebar img.emoji,
.novin-v3-root .archive-sidebar img.emoji,
.novin-v3-root .side-item-body img.emoji {
  width: 1em !important;
  height: 1em !important;
  max-width: 1em !important;
  max-height: 1em !important;
  aspect-ratio: auto !important;
  display: inline !important;
  vertical-align: -0.15em !important;
  background: transparent !important;
}
body.page-archive .side-cats li,
body.page-single .side-cats li {
  font-size: 0.8125rem;
  font-weight: 700;
}
body.page-archive .page-num,
body.page-archive .page-next {
  font-size: 13px;
}

body.page-single .single-cat {
  font-size: 13px;
  font-weight: 600;
}
body.page-single .single-title {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
}
body.page-single .single-meta {
  font-size: 12px;
  line-height: 24px;
}
body.page-single .entry-content {
  font-size: 13px;
  line-height: 1.8;
}
body.page-single .entry-content h2 {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.4;
}
body.page-single .entry-content h3 {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.4;
}
body.page-single .related-section .section-title h2 {
  font-size: 23px;
  font-weight: 600;
}
body.page-single .related-card h3 {
  font-size: 17px;
  font-weight: 600;
}
body.page-single #ez-toc-container .ez-toc-title {
  font-size: 17px;
  font-weight: 600;
}
body.page-single #ez-toc-container .ez-toc-link {
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 767.98px) {
  body.page-archive .archive-page-head h1 {
    font-size: 23px;
  }
  body.page-single .entry-content h2 {
    font-size: 23px;
  }
  body.page-single .entry-content h3 {
    font-size: 17px;
  }
}

/* ========== WordPress / Jannah isolation (V3.1.4) ==========
   Neutralize Jannah .entry-content rules that break V3 grids/cards.
*/
/* One typeface for the whole V3 surface (body + headings + strong) */
html body .novin-v3-root,
html body .novin-v3-root h1,
html body .novin-v3-root h2,
html body .novin-v3-root h3,
html body .novin-v3-root h4,
html body .novin-v3-root h5,
html body .novin-v3-root h6,
html body .novin-v3-root strong,
html body .novin-v3-root b,
html body .novin-v3-root a,
html body .novin-v3-root button,
html body .novin-v3-root input,
html body .novin-v3-root textarea,
html body .novin-v3-root select,
html body .novin-v3-root .section-title h2,
html body .novin-v3-root .section-title h2 strong,
html body .novin-v3-root .post-body h3,
html body .novin-v3-root .post-body h3 strong,
html body .novin-v3-root .news-list a {
  font-family: "IRANSansWeb", Tahoma, sans-serif !important;
}

body.page-template-page-novin-static,
body.page-template-page-novin-home,
body:has(.novin-v3-root) {
  background: var(--bg-page, #f1f1f1) !important;
}

/* Override site-wide Customizer rules that break V3 */
body.page-template-page-novin-static .novin-v3-root h1,
body.page-template-page-novin-static .novin-v3-root h2,
body.page-template-page-novin-static .novin-v3-root h3,
body:has(.novin-v3-root) .novin-v3-root h1,
body:has(.novin-v3-root) .novin-v3-root h2,
body:has(.novin-v3-root) .novin-v3-root h3 {
  text-align: inherit !important;
  color: inherit;
}
html body.page-template-page-novin-static .novin-v3-root .container,
html body:has(.novin-v3-root) .novin-v3-root .container {
  width: 100% !important;
  max-width: 1140px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.page-template-page-novin-static #sidebar,
body.page-template-page-novin-static aside.sidebar,
body.page-template-page-novin-static .sidebar,
body.page-template-page-novin-static .tie-col.sidebar,
body.page-template-page-novin-home #sidebar,
body.page-template-page-novin-home aside.sidebar,
body.page-template-page-novin-home .sidebar,
body.page-template-page-novin-home .tie-col.sidebar,
body:has(.novin-v3-root) #sidebar,
body:has(.novin-v3-root) aside.sidebar,
body:has(.novin-v3-root) .sidebar,
body:has(.novin-v3-root) .tie-col.sidebar {
  display: none !important;
}
body.page-template-page-novin-static #content,
body.page-template-page-novin-static .main-content,
body.page-template-page-novin-static .content,
body.page-template-page-novin-static .tie-row.has-sidebar,
body.page-template-page-novin-home #content,
body.page-template-page-novin-home .main-content,
body.page-template-page-novin-home .content,
body.page-template-page-novin-home .tie-row.has-sidebar,
body:has(.novin-v3-root) #content,
body:has(.novin-v3-root) .main-content,
body:has(.novin-v3-root) .content,
body:has(.novin-v3-root) .tie-row.has-sidebar,
body:has(.novin-v3-root) .tie-col.main-content {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
body.page-template-page-novin-static .entry-header,
body.page-template-page-novin-static .entry-header-outer,
body.page-template-page-novin-static h1.page-title,
body.page-template-page-novin-home .entry-header,
body.page-template-page-novin-home .entry-header-outer,
body.page-template-page-novin-home h1.page-title,
body:has(.novin-v3-root) .entry-header,
body:has(.novin-v3-root) .entry-header-outer,
body:has(.novin-v3-root) h1.page-title {
  display: none !important;
}

.entry .novin-v3-root,
.entry-content .novin-v3-root,
#the-post .novin-v3-root,
.novin-v3-static-wrap .novin-v3-root {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: var(--bg-page, #f1f1f1) !important;
  box-shadow: none !important;
  float: none !important;
  clear: both !important;
  overflow-x: hidden !important;
}

.entry-content .novin-v3-root .container {
  width: 100% !important;
  max-width: 1140px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  box-sizing: border-box !important;
}
.entry-content .novin-v3-root .container.hero-grid {
  display: grid !important;
}

/* Reset Jannah child rules */
.entry-content .novin-v3-root p,
.entry-content .novin-v3-root ul,
.entry-content .novin-v3-root ol,
.entry-content .novin-v3-root li,
.entry-content .novin-v3-root h1,
.entry-content .novin-v3-root h2,
.entry-content .novin-v3-root h3,
.entry-content .novin-v3-root h4 {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  max-width: none;
  float: none;
  clear: none;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}
.entry-content .novin-v3-root ul,
.entry-content .novin-v3-root ol {
  list-style: none !important;
}
.entry-content .novin-v3-root a {
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.entry-content .novin-v3-root img {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  float: none !important;
}

.entry-content .novin-v3-root .hero-desc { margin-bottom: 18px !important; }
.entry-content .novin-v3-root .section-lead { margin: calc(var(--space-2) * -1) 0 var(--space-4) !important; }
.entry-content .novin-v3-root .panel-hint { margin-bottom: var(--space-3) !important; }
.entry-content .novin-v3-root .section-header { margin-bottom: 18px !important; }
.entry-content .novin-v3-root .post-body h3,
.entry-content .novin-v3-root .news-list a,
.entry-content .novin-v3-root .section-title h2 {
  margin: 0 !important;
}

/* Classic Editor junk: empty p and ALL br inside layout grids (br becomes fake columns) */
.novin-v3-root > p:empty,
.entry-content .novin-v3-root > p:empty,
.novin-v3-root > p:has(> br:only-child),
.novin-v3-root .posts-grid > p:empty,
.novin-v3-root .news-hot-grid > p:empty,
.novin-v3-root .rank-style-grid > p:empty,
.novin-v3-root .rank-cards > p:empty,
.novin-v3-root .social-grid > p:empty,
.novin-v3-root .info-grid > p:empty,
.novin-v3-root .info-wrap > p:empty,
.novin-v3-root .final-grid > p,
.novin-v3-root .hero-grid > p,
.novin-v3-root .exams-grid > p:empty,
.novin-v3-root .grade-boxes > p,
.novin-v3-root .action-btns > p,
.novin-v3-root .container > p:empty,
.novin-v3-root .final-grid > br,
.novin-v3-root .grade-boxes > br,
.novin-v3-root .grade-tabs > br,
.novin-v3-root .sub-tabs > br,
.novin-v3-root .social-grid > br,
.novin-v3-root .hero-actions > br,
.novin-v3-root .action-btns > br,
.novin-v3-root .exams-grid > br,
.novin-v3-root .rank-style-grid > br,
.novin-v3-root .floor-groups > br,
.novin-v3-root .social-card br {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  content: none !important;
}

/* WP wraps btn-mini / images in <p> — keep layout, kill margin */
.novin-v3-root .rank-style-item > p,
.novin-v3-root .exams-grid .rank-style-item > p {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
}
.novin-v3-root .post-body > p {
  display: none !important;
}

.novin-v3-root.page-archive,
.novin-v3-root .archive-page,
.novin-v3-root.page-single,
.novin-v3-root .single-page {
  background: var(--bg-page, #f1f1f1);
}

/* ========== WP layout harden (V3.1.6) ========== */
.novin-v3-root .card-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block !important;
  text-indent: -9999px;
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.novin-v3-root .post-card,
.novin-v3-root .rank-style-item,
.novin-v3-root .rank-card,
.novin-v3-root .info-card,
.novin-v3-root .social-card,
.novin-v3-root .floor-card {
  position: relative;
}

.novin-v3-root .posts-grid,
.novin-v3-root .news-hot-grid,
.novin-v3-root .rank-style-grid,
.novin-v3-root .rank-cards,
.novin-v3-root .social-grid,
.novin-v3-root .info-grid,
.novin-v3-root .info-wrap.info-grid,
.novin-v3-root .final-grid,
.novin-v3-root .hero-grid,
.novin-v3-root .floor-groups,
.novin-v3-root .exams-grid,
.novin-v3-root .grade-boxes,
.novin-v3-root .action-btns {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.novin-v3-root .posts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px !important; }
.novin-v3-root .news-hot-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; align-items: start !important; }
.novin-v3-root .rank-style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; }
.novin-v3-root .rank-cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 16px !important; }
.novin-v3-root .info-grid,
.novin-v3-root .info-wrap.info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 16px !important; }
.novin-v3-root .final-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px !important; }
.novin-v3-root .floor-groups { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 16px !important; align-items: stretch !important; }
.novin-v3-root .exams-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; }
.novin-v3-root .social-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px !important; }
.novin-v3-root .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important; align-items: center !important; gap: 28px !important; }
.novin-v3-root .grade-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; }
.novin-v3-root .action-btns { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; }
.novin-v3-root .final-grid > .final-box {
  min-width: 0 !important;
  width: 100% !important;
}
.novin-v3-root .grade-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.novin-v3-root .sub-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.novin-v3-root .sub-panel { display: none !important; }
.novin-v3-root .sub-panel.active { display: block !important; }
.novin-v3-root .grade-panel { display: none !important; }
.novin-v3-root .grade-panel.active { display: block !important; }
.novin-v3-root .sub-tab,
.novin-v3-root .grade-tab {
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 2 !important;
}
.novin-v3-root .hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

/*
 * Floor recovery: Classic Editor strips <button class="floor-card"> and leaves
 * .floor-img + <p>.floor-body as siblings. Pair them into 3 visual cards.
 */
.novin-v3-root .floor-groups:not(:has(> .floor-card)) {
  grid-template-columns: repeat(3, 140px minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}
.novin-v3-root .floor-groups:not(:has(> .floor-card)) > .floor-img {
  height: 150px !important;
  min-height: 150px !important;
  position: relative !important;
  overflow: hidden !important;
  background: var(--bg-card, #fff) !important;
  border-radius: 0 14px 14px 0 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06) !important;
}
.novin-v3-root .floor-groups:not(:has(> .floor-card)) > .floor-img img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.novin-v3-root .floor-groups:not(:has(> .floor-card)) > p {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 150px !important;
  min-height: 150px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  background: var(--bg-card, #fff) !important;
  border-radius: 14px 0 0 14px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06) !important;
}
.novin-v3-root .floor-groups:not(:has(> .floor-card)) .floor-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  text-align: center !important;
}
@media (max-width: 991.98px) {
  .novin-v3-root .floor-groups:not(:has(> .floor-card)) {
    grid-template-columns: 120px minmax(0, 1fr) !important;
  }
}
@media (max-width: 767.98px) {
  .novin-v3-root .floor-groups:not(:has(> .floor-card)) {
    grid-template-columns: minmax(80px, 30%) minmax(0, 1fr) !important;
  }
  .novin-v3-root .floor-groups:not(:has(> .floor-card)) > .floor-img,
  .novin-v3-root .floor-groups:not(:has(> .floor-card)) > p {
    height: auto !important;
    min-height: 110px !important;
  }
}

.novin-v3-root .news-col,
.novin-v3-root .hot-col {
  min-width: 0 !important;
  width: 100% !important;
  float: none !important;
}
.novin-v3-root .news-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.novin-v3-root .news-list li {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}
.novin-v3-root .news-list a {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.novin-v3-root .news-list a .news-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
.novin-v3-root .news-list a .news-text .emoji,
.novin-v3-root .news-list a img.emoji {
  width: 1em !important;
  height: 1em !important;
  max-width: 1em !important;
  max-height: 1em !important;
  display: inline !important;
  vertical-align: -0.15em !important;
  aspect-ratio: auto !important;
  background: transparent !important;
}

.novin-v3-root .post-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  width: 100% !important;
  height: auto !important;
  float: none !important;
  overflow: hidden !important;
}
.novin-v3-root .post-thumb {
  flex: 0 0 auto !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  overflow: hidden !important;
}
.novin-v3-root .post-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block !important;
}
.novin-v3-root .post-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 12px 14px 16px !important;
  box-sizing: border-box !important;
  float: none !important;
  overflow: visible !important;
}
.novin-v3-root .post-body .tag {
  display: inline-block !important;
  flex-shrink: 0 !important;
  margin: 0 0 8px !important;
}
.novin-v3-root .post-body h3 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
  margin: 0 !important;
  min-height: calc(1.55em * 3) !important;
  width: 100% !important;
  font-family: inherit !important;
  font-weight: 700 !important;
}
.novin-v3-root .post-body h3 strong,
.novin-v3-root .post-body h3 b {
  font-weight: 700 !important;
  font-family: inherit !important;
}
.novin-v3-root .rank-style-item,
.novin-v3-root .exams-grid .rank-style-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  width: 100% !important;
  float: none !important;
  box-sizing: border-box !important;
}
.novin-v3-root .info-card {
  display: grid !important;
  grid-template-columns: 120px minmax(0, 1fr) !important;
  align-items: stretch !important;
  min-width: 0 !important;
  width: 100% !important;
  min-height: 120px !important;
  overflow: hidden !important;
  float: none !important;
}
.novin-v3-root .info-img {
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
  overflow: hidden !important;
}
.novin-v3-root .info-img img {
  width: 100% !important;
  height: 100% !important;
  min-height: 120px !important;
  object-fit: cover !important;
}
.novin-v3-root .info-body {
  min-width: 0 !important;
  overflow: hidden !important;
}
.novin-v3-root .floor-card {
  display: grid !important;
  grid-template-columns: 140px minmax(0, 1fr) !important;
  align-items: stretch !important;
  width: 100% !important;
  height: 150px !important;
  min-height: 150px !important;
  max-height: none !important;
  overflow: hidden !important;
  float: none !important;
}
.novin-v3-root .floor-img {
  position: relative !important;
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
  height: 100% !important;
  overflow: hidden !important;
  background: var(--bg-card, #fff) !important;
}
.novin-v3-root .floor-img img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.novin-v3-root .grade-box,
.novin-v3-root .action-btn,
.novin-v3-root .final-box {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  box-sizing: border-box !important;
}
/* Match final-exam cards: white surface on gray page (beats theme button gray) */
.novin-v3-root .grade-box {
  background: #ffffff !important;
  background: var(--bg-card, #fff) !important;
  color: var(--text, #121212) !important;
  border: none !important;
  border-radius: var(--radius-lg, 14px) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06) !important;
  padding: 22px !important;
  font-weight: 700 !important;
}
.novin-v3-root .grade-box:hover {
  color: var(--primary-dark, #007a40) !important;
  box-shadow: 0 8px 26px rgba(0, 154, 81, 0.12) !important;
}
.novin-v3-root .rank-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  float: none !important;
}
.novin-v3-root .social-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  float: none !important;
}

.novin-v3-root .post-thumb,
.novin-v3-root .post-body,
.novin-v3-root .rsi-text,
.novin-v3-root .info-img,
.novin-v3-root .info-body,
.novin-v3-root .floor-img,
.novin-v3-root .floor-body,
.novin-v3-root .exam-thumb,
.novin-v3-root .rank-card-media,
.novin-v3-root .rank-card-body {
  float: none !important;
  position: relative;
  z-index: 1;
}

.entry-content .novin-v3-root .post-card,
.entry-content .novin-v3-root .rank-style-item,
.entry-content .novin-v3-root .info-card,
.entry-content .novin-v3-root .floor-card,
.entry-content .novin-v3-root .social-card,
.entry-content .novin-v3-root .rank-card,
.entry-content .novin-v3-root .final-box,
.entry-content .novin-v3-root .grade-box {
  margin: 0 !important;
  max-width: none !important;
}

@media (max-width: 991.98px) {
  .novin-v3-root .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .novin-v3-root .final-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .novin-v3-root .floor-groups { grid-template-columns: 1fr !important; }
  .novin-v3-root .info-grid,
  .novin-v3-root .info-wrap.info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 767.98px) {
  .novin-v3-root .posts-grid,
  .novin-v3-root .news-hot-grid,
  .novin-v3-root .rank-style-grid,
  .novin-v3-root .rank-cards,
  .novin-v3-root .info-grid,
  .novin-v3-root .info-wrap.info-grid,
  .novin-v3-root .final-grid,
  .novin-v3-root .floor-groups,
  .novin-v3-root .exams-grid,
  .novin-v3-root .grade-boxes,
  .novin-v3-root .action-btns,
  .novin-v3-root .hero-grid {
    grid-template-columns: 1fr !important;
  }
  .novin-v3-root .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .novin-v3-root .info-card,
  .novin-v3-root .floor-card {
    grid-template-columns: minmax(80px, 30%) minmax(0, 1fr) !important;
  }
  .novin-v3-root .info-img,
  .novin-v3-root .floor-img {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .novin-v3-root .floor-card {
    height: auto !important;
    min-height: 110px !important;
    max-height: none !important;
  }
}

/* ========== Info pages: About / Contact (V3.1.21) ========== */
.novin-info-page{
  padding: var(--space-5) 0 var(--space-7);
}
.novin-info-card{
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 36px) clamp(18px, 3vw, 40px);
}
.novin-info-card .info-title{
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 800;
  line-height: 1.45;
}
.novin-info-card .info-rule{
  display: block;
  width: min(220px, 42%);
  height: 3px;
  margin: 0 0 22px auto;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
}
.novin-info-card .info-rule-wide{
  width: min(520px, 90%);
}
.novin-info-card p{
  margin: 0 0 1em;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.9;
}
.novin-info-card p:last-child{ margin-bottom: 0; }
.novin-info-card a{
  color: var(--primary-dark) !important;
  font-weight: 700;
  text-decoration: none !important;
}
.novin-info-card a:hover{
  color: var(--primary) !important;
  text-decoration: underline !important;
}
.novin-info-card h2{
  margin: 28px 0 12px;
  color: var(--primary-dark);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.45;
}
.novin-info-card .info-checklist{
  list-style: none !important;
  margin: 14px 0 8px !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.novin-info-card .info-checklist li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text);
}
.novin-info-card .info-checklist li::before{
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.2 11.3 2.9 8l1.1-1.1 2.2 2.2 5-5L12.3 5z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
body.page-template-page-novin-info {
  background: var(--bg-page, #f1f1f1) !important;
}

/* ========== 404 page (V3.1.25) ========== */
.novin-v3-root .novin-404-page,
.novin-404-page{
  padding: var(--space-6) 0 var(--space-8);
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.novin-v3-root .novin-404-card,
.novin-404-card{
  --novin-404-content-w: min(420px, 88vw);
  max-width: 760px;
  margin: 0 auto;
  text-align: center !important;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px) 36px;
}
.novin-v3-root .novin-404-mascot,
.novin-404-mascot{
  width: var(--novin-404-content-w);
  height: auto;
  margin: 0 auto 28px;
  display: block;
  border: 0;
  outline: 0;
  box-shadow: none;
  filter: none;
  background: transparent;
  animation: novin-404-bob 2.8s ease-in-out infinite;
}
@keyframes novin-404-bob{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}
.novin-v3-root .novin-404-title,
.novin-404-title,
.novin-v3-root h1.novin-404-title{
  display: block;
  width: var(--novin-404-content-w);
  max-width: 100%;
  margin: 0 auto 14px !important;
  padding: 0 !important;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.5;
  text-align: center !important;
}
.novin-v3-root .novin-404-desc,
.novin-404-desc,
.novin-v3-root p.novin-404-desc{
  display: block;
  width: var(--novin-404-content-w);
  max-width: 100%;
  margin: 0 auto 28px !important;
  padding: 0 !important;
  color: var(--text-muted);
  font-size: 17px;
  font-weight: normal;
  line-height: 1.8;
  text-align: center !important;
  text-wrap: balance;
}
.novin-v3-root .novin-404-actions,
.novin-404-actions{
  display: flex !important;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: center !important;
  align-items: center;
  margin: 0 auto 28px !important;
  width: 100%;
  max-width: 100%;
}
.novin-v3-root .novin-404-actions .btn,
.novin-404-actions .btn{
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  padding-inline: 18px;
}
@media (max-width: 640px){
  .novin-v3-root .novin-404-actions,
  .novin-404-actions{
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: stretch;
  }
  .novin-v3-root .novin-404-actions .btn,
  .novin-404-actions .btn{
    flex: 0 0 auto;
    width: 100%;
    white-space: normal;
  }
}
.novin-v3-root .novin-404-search,
.novin-404-search{
  display: flex;
  gap: 8px;
  width: var(--novin-404-content-w);
  max-width: 100%;
  margin: 0 auto;
  direction: rtl;
}
.novin-404-search input[type="search"]{
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  font-family: inherit;
  font-size: 0.92rem;
}
.novin-404-search input[type="search"]:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 154, 81, 0.15);
}
.novin-404-search button{
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.novin-404-search button:hover{
  background: var(--primary-dark);
}
.novin-404-hint{
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
body.page-template-404,
body.error404{
  background: var(--bg-page, #f1f1f1) !important;
}

/* ========== Contact landing (V3.1.26) ========== */
/* Hero card: same fluid scale behavior as homepage */
.novin-v3-root .novin-landing-contact .landing-hero,
.novin-landing-contact .landing-hero{
  padding-top: var(--space-6);
  padding-bottom: var(--space-5);
}
.novin-v3-root .novin-landing-contact .landing-hero .container.hero-grid,
.novin-landing-contact .landing-hero .container.hero-grid{
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
  align-items: center !important;
  gap: 28px !important;
  width: 100% !important;
  max-width: 1140px !important;
  box-sizing: border-box !important;
}
.novin-v3-root .novin-landing-contact .landing-hero .hero-content,
.novin-landing-contact .landing-hero .hero-content,
.novin-v3-root .novin-landing-contact .landing-hero .hero-visual,
.novin-landing-contact .landing-hero .hero-visual{
  min-width: 0 !important;
  max-width: 100% !important;
}
.novin-v3-root .novin-landing-contact .landing-hero .hero-visual,
.novin-landing-contact .landing-hero .hero-visual{
  width: 100% !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e8e7ec;
  line-height: 0;
}
.novin-v3-root .novin-landing-contact .landing-hero .hero-visual img,
.novin-landing-contact .landing-hero .hero-visual img{
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1.03);
  transform-origin: center center;
}
.novin-v3-root .novin-landing-contact .landing-hero h1,
.novin-landing-contact .landing-hero h1{
  font-size: clamp(1.85rem, 3.5vw, 2.55rem) !important;
  line-height: 1.35 !important;
}
.novin-v3-static-wrap .novin-v3-root .container{
  width: 100% !important;
  max-width: 1140px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
@media (max-width: 767.98px){
  .novin-v3-root .novin-landing-contact .landing-hero .container.hero-grid,
  .novin-landing-contact .landing-hero .container.hero-grid{
    grid-template-columns: 1fr !important;
  }
  .novin-v3-root .novin-landing-contact .landing-hero .hero-visual,
  .novin-landing-contact .landing-hero .hero-visual{
    order: -1;
    max-width: 100% !important;
  }
  .novin-landing-contact .section-lead{
    margin-bottom: 14px;
  }
  .landing-contact-card{
    padding: 18px 16px 16px;
  }
  .landing-contact-phone{
    font-size: 1.25rem;
    word-break: break-all;
  }
  .landing-contact-link{
    word-break: break-all;
  }
}
.landing-contact-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}
.landing-contact-card{
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 20px 20px;
  min-width: 0;
}
.landing-contact-card-accent{
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(0, 154, 81, 0.18);
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.landing-contact-label{
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: var(--shadow-accent);
}
.landing-contact-card h3{
  margin: 2px 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text);
}
.landing-contact-card > p{
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}
.landing-contact-link{
  display: inline-flex;
  width: fit-content;
  align-self: center;
  margin: 4px auto 0;
  text-align: center;
  justify-content: center;
  color: var(--primary-dark) !important;
  font-weight: 800;
  font-size: 0.95rem;
  direction: ltr;
  unicode-bidi: isolate;
}
.landing-contact-link:hover{ color: var(--primary) !important; }
.landing-contact-phone{
  display: inline-flex;
  width: fit-content;
  align-self: center;
  margin: 8px auto 2px;
  text-align: center;
  justify-content: center;
  color: var(--primary-dark) !important;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  direction: ltr;
  unicode-bidi: isolate;
}
.landing-contact-note{
  margin-top: auto !important;
  padding-top: 10px;
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
}
.landing-contact-pills{
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
.landing-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  color: var(--text) !important;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.landing-pill:hover{
  background: var(--bg-soft);
  color: var(--primary-dark) !important;
  transform: var(--lift);
}
.landing-address-box{
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  max-width: 760px;
}
.landing-address-text{
  margin: 12px 0 8px;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
}
.landing-address-warn{
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}
@media (max-width: 991.98px){
  .landing-contact-grid{ grid-template-columns: 1fr; }
}
.novin-v3-root .landing-contact-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
}
@media (max-width: 991.98px){
  .novin-v3-root .landing-contact-grid{ grid-template-columns: 1fr !important; }
}
