/* =========================================================
   BHARTIYA SAMAJSHASTRA — COMPLETE OJS CSS
   Banner is embedded inside the HTML.
   Upload this file in:
   Settings > Website > Appearance > Advanced > Journal Style Sheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@500;600;700&family=Noto+Serif+Devanagari:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bs-navy: #102a49;
  --bs-maroon: #531512;
  --bs-maroon-dark: #3b0d0b;
  --bs-rust: #a24d2c;
  --bs-gold: #b58b48;
  --bs-paper: #f5eddf;
  --bs-paper-light: #fbf7ef;
  --bs-paper-deep: #e7d3ad;
  --bs-brown: #4a2a20;
  --bs-text: #493b33;
  --bs-muted: #75655a;
  --bs-line: rgba(74,42,32,.20);
  --bs-serif: "Crimson Pro", Georgia, serif;
  --bs-sans: "Inter", Arial, sans-serif;
  --bs-dev: "Noto Serif Devanagari", Georgia, serif;
}

/* =========================================================
   OJS RESET + FULL WIDTH
   ========================================================= */

html,
body {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow-x: hidden !important;
}

body {
  background: var(--bs-paper-light) !important;
  color: var(--bs-text);
  font-family: var(--bs-sans);
}

.pkp_structure_page,
.pkp_structure_content,
.pkp_structure_body,
.pkp_structure_main,
.page_index_journal,
.additional_content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pkp_structure_main {
  float: none !important;
}

.page_index_journal .additional_content {
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide OJS default journal logo/header and default navigation.
   Our complete custom header is inside the HTML. */
.pkp_site_name_wrapper,
.pkp_site_name,
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper {
  display: none !important;
}

/* Keep logged-in user bar visible but compact */
.pkp_structure_head {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--bs-navy) !important;
  border: 0 !important;
}

.pkp_head_wrapper {
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pkp_navigation_user_wrapper {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  width: 100% !important;
  min-height: 30px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  padding: 0 3vw !important;
  background: var(--bs-navy) !important;
  box-sizing: border-box !important;
}

#navigationUser {
  margin: 0 !important;
  padding: 0 !important;
}

#navigationUser > li > a {
  min-height: 30px !important;
  padding: 5px 8px !important;
  color: rgba(255,255,255,.88) !important;
  font-family: var(--bs-sans) !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}

/* Hide homepage sidebar */
body:has(.bsjmis-site) .pkp_structure_sidebar,
.page_index_journal .pkp_structure_sidebar {
  display: none !important;
}

/* Remove PKP/OJS footer logo */
.pkp_brand_footer,
.pkp_brand_footer img,
.pkp_structure_footer .pkp_brand_footer,
.pkp_structure_footer a[href*="pkp"],
.pkp_structure_footer a[href*="ojs"],
.pkp_structure_footer img[src*="pkp"],
.pkp_structure_footer img[src*="ojs"],
.pkp_footer_content img[alt*="PKP"],
.pkp_footer_content img[alt*="Open Journal Systems"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
}

.pkp_structure_footer {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: var(--bs-maroon-dark) !important;
  border: 0 !important;
}

.pkp_footer_content {
  width: min(100% - 50px, 1360px) !important;
  max-width: 1360px !important;
  margin: 0 auto !important;
  padding: 20px 0 !important;
  color: rgba(255,255,255,.80) !important;
  font-size: 12px !important;
}

/* =========================================================
   GLOBAL CUSTOM HOMEPAGE
   ========================================================= */

.bsjmis-site,
.bsjmis-site * {
  box-sizing: border-box;
}

.bsjmis-site {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--bs-text);
  font-family: var(--bs-sans);
  font-size: 14px;
  line-height: 1.7;
}

.bsjmis-site a {
  text-decoration: none;
}

.bsjmis-shell {
  width: min(100% - 60px, 1360px);
  margin-inline: auto;
}

/* =========================================================
   CUSTOM HEADER + EMBEDDED BANNER
   ========================================================= */

.bsjmis-header {
  width: 100%;
  margin: 0;
  background: #f5efe3;
  border-top: 2px solid var(--bs-navy);
}

.bsjmis-banner {
  width: 100%;
  padding: 9px 24px;
  background:
    linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)),
    #f5efe3;
}

.bsjmis-banner img {
  display: block;
  width: min(100%, 1600px);
  max-width: 1600px;
  height: auto;
  max-height: 238px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

/* Custom navigation */
.bsjmis-nav {
  position: relative;
  z-index: 50;
  width: 100%;
  background: var(--bs-maroon);
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 3px solid var(--bs-gold);
  box-shadow: 0 5px 15px rgba(47,17,12,.11);
}

.bsjmis-nav__inner {
  display: flex;
  width: min(100% - 50px, 1360px);
  min-height: 52px;
  align-items: stretch;
  margin: 0 auto;
}

.bsjmis-nav__inner > a,
.bsjmis-dropdown > button {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #fff8ec;
  background: transparent;
  border: 0;
  font-family: var(--bs-sans);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .045em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease;
}

.bsjmis-nav__inner > a:first-child {
  padding-left: 5px;
}

.bsjmis-nav__inner > a:hover,
.bsjmis-nav__inner > a:focus,
.bsjmis-dropdown > button:hover,
.bsjmis-dropdown > button:focus {
  color: #fff;
  background: rgba(255,255,255,.09);
}

.bsjmis-nav__search {
  margin-left: auto;
}

.bsjmis-nav__search span {
  margin-right: 6px;
  font-size: 18px;
}

/* Dropdown */
.bsjmis-dropdown {
  position: relative;
  display: flex;
}

.bsjmis-dropdown button span {
  margin-left: 7px;
  font-size: 13px;
}

.bsjmis-dropdown__menu {
  position: absolute;
  left: 0;
  top: 100%;
  display: none;
  min-width: 225px;
  padding: 7px;
  background: #fffaf0;
  border: 1px solid rgba(74,42,32,.22);
  box-shadow: 0 18px 38px rgba(53,24,18,.18);
}

.bsjmis-dropdown:hover .bsjmis-dropdown__menu,
.bsjmis-dropdown:focus-within .bsjmis-dropdown__menu {
  display: block;
}

.bsjmis-dropdown__menu a {
  display: block;
  padding: 10px 12px;
  color: var(--bs-brown);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.bsjmis-dropdown__menu a:hover {
  color: var(--bs-maroon);
  background: #f0dfc2;
}

/* =========================================================
   HERO
   ========================================================= */

.bsjmis-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 76px;
  background:
    radial-gradient(circle at 10% 22%, rgba(181,139,72,.12), transparent 26%),
    radial-gradient(circle at 90% 72%, rgba(83,21,18,.09), transparent 28%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 39px,
      rgba(74,42,32,.018) 40px
    ),
    linear-gradient(135deg, #fbf6ec, #efdfc4);
  border-bottom: 1px solid var(--bs-line);
}

.bsjmis-hero::after {
  content: "समाज";
  position: absolute;
  right: -20px;
  top: 2%;
  color: rgba(83,21,18,.045);
  font-family: var(--bs-dev);
  font-size: clamp(130px, 20vw, 290px);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.bsjmis-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}

.bsjmis-eyebrow,
.bsjmis-label,
.bsjmis-section-top > div > p,
.bsjmis-call > div > div > p,
.bsjmis-heading p {
  margin: 0 0 9px;
  color: var(--bs-rust);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.bsjmis-hero h1 {
  max-width: 850px;
  margin: 0;
  color: var(--bs-maroon-dark);
  font-family: var(--bs-serif);
  font-size: clamp(49px, 5.8vw, 82px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: .9;
}

.bsjmis-hero h1 small {
  display: block;
  margin-top: 20px;
  color: var(--bs-brown);
  font-family: var(--bs-sans);
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 650;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.bsjmis-hero__text {
  max-width: 760px;
  margin: 23px 0 0;
  color: #5d4c42;
  font-family: var(--bs-serif);
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.5;
}

.bsjmis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 29px;
}

.bsjmis-btn {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .045em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}

.bsjmis-btn:hover {
  transform: translateY(-2px);
}

.bsjmis-btn--primary {
  color: #fff8eb !important;
  background: var(--bs-maroon);
  border-color: var(--bs-maroon);
}

.bsjmis-btn--primary:hover {
  background: var(--bs-maroon-dark);
}

.bsjmis-btn--outline {
  color: var(--bs-maroon) !important;
  background: rgba(255,255,255,.28);
  border-color: rgba(83,21,18,.34);
}

.bsjmis-btn--outline:hover {
  color: #fff8eb !important;
  background: var(--bs-maroon);
}

.bsjmis-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  max-width: 730px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--bs-line);
}

.bsjmis-highlights > div {
  padding: 0 21px;
  border-left: 1px solid var(--bs-line);
}

.bsjmis-highlights > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.bsjmis-highlights strong,
.bsjmis-highlights span {
  display: block;
}

.bsjmis-highlights strong {
  color: var(--bs-maroon);
  font-family: var(--bs-serif);
  font-size: 17px;
  line-height: 1.2;
}

.bsjmis-highlights span {
  margin-top: 3px;
  color: var(--bs-muted);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Quote card */
.bsjmis-quote {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 38px;
  color: #fff5e4;
  text-align: center;
  background:
    linear-gradient(rgba(59,13,11,.92), rgba(59,13,11,.95)),
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 10px,
      rgba(255,255,255,.035) 11px
    );
  border: 8px solid #dbc091;
  outline: 1px solid rgba(59,13,11,.48);
  box-shadow: 20px 24px 0 rgba(83,21,18,.07);
}

.bsjmis-quote::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(219,192,145,.52);
}

.bsjmis-quote__dev {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #f1d8ae;
  font-family: var(--bs-dev);
  font-size: 29px;
  font-weight: 600;
  line-height: 1.4;
}

.bsjmis-quote > p:nth-child(2) {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  font-family: var(--bs-serif);
  font-size: 23px;
  font-style: italic;
  line-height: 1.4;
}

.bsjmis-quote > span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 28px;
  color: rgba(255,245,228,.68);
  font-family: var(--bs-dev);
  font-size: 12px;
  letter-spacing: .08em;
}

/* =========================================================
   ABOUT
   ========================================================= */

.bsjmis-about {
  padding: 88px 0 96px;
  background:
    linear-gradient(90deg, rgba(74,42,32,.035) 1px, transparent 1px),
    linear-gradient(rgba(74,42,32,.025) 1px, transparent 1px),
    var(--bs-paper-light);
  background-size: 34px 34px;
}

.bsjmis-about__grid {
  display: grid;
  grid-template-columns: minmax(290px,.8fr) minmax(0,1.2fr);
  gap: clamp(50px,9vw,145px);
}

.bsjmis-heading {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
}

.bsjmis-heading > span {
  padding-top: 6px;
  color: var(--bs-rust);
  font-family: var(--bs-serif);
  font-size: 20px;
  font-weight: 700;
  border-top: 2px solid var(--bs-rust);
}

.bsjmis-heading h2,
.bsjmis-section-top h2,
.bsjmis-history__content h2,
.bsjmis-call h2 {
  margin: 0;
  color: var(--bs-brown);
  font-family: var(--bs-serif);
  font-size: clamp(36px, 3.9vw, 55px);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.04;
}

.bsjmis-about__content {
  padding-left: 34px;
  border-left: 1px solid var(--bs-line);
}

.bsjmis-about__content p {
  margin: 0 0 17px;
  color: #5b4b42;
  font-size: 14.5px;
  line-height: 1.85;
}

.bsjmis-about__content .bsjmis-lead {
  color: var(--bs-brown);
  font-family: var(--bs-serif);
  font-size: 21px;
  line-height: 1.55;
}

/* =========================================================
   SUBJECTS
   ========================================================= */

.bsjmis-subjects {
  padding: 88px 0 96px;
  color: #fff4e2;
  background:
    linear-gradient(135deg, rgba(255,255,255,.025) 25%, transparent 25%) 0 0 / 28px 28px,
    var(--bs-maroon-dark);
}

.bsjmis-section-top {
  display: grid;
  grid-template-columns: 1fr minmax(280px,.65fr);
  gap: 70px;
  align-items: end;
}

.bsjmis-section-top > div > p {
  color: #d9ba85;
}

.bsjmis-section-top h2 {
  max-width: 740px;
  color: #fff7ea;
}

.bsjmis-section-top > span {
  padding-left: 28px;
  color: rgba(255,244,226,.70);
  font-size: 13.5px;
  border-left: 1px solid rgba(219,192,145,.34);
}

.bsjmis-subject-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin-top: 52px;
  border-top: 1px solid rgba(219,192,145,.23);
  border-left: 1px solid rgba(219,192,145,.23);
}

.bsjmis-subject-grid article {
  min-height: 215px;
  padding: 27px 25px 24px;
  border-right: 1px solid rgba(219,192,145,.23);
  border-bottom: 1px solid rgba(219,192,145,.23);
  transition: background .2s ease;
}

.bsjmis-subject-grid article:hover {
  background: rgba(255,255,255,.05);
}

.bsjmis-subject-grid b {
  display: block;
  margin-bottom: 26px;
  color: #d9ba85;
  font-family: var(--bs-serif);
  font-size: 18px;
  font-style: italic;
}

.bsjmis-subject-grid h3 {
  margin: 0 0 10px;
  color: #fff8eb;
  font-family: var(--bs-serif);
  font-size: 25px;
  line-height: 1.1;
}

.bsjmis-subject-grid p {
  margin: 0;
  color: rgba(255,244,226,.68);
  font-size: 12.5px;
  line-height: 1.72;
}

/* =========================================================
   HISTORY
   ========================================================= */

.bsjmis-history {
  padding: 98px 0;
  background: var(--bs-paper);
}

.bsjmis-history__grid {
  display: grid;
  grid-template-columns: minmax(320px,.82fr) minmax(0,1.18fr);
  gap: clamp(58px,9vw,135px);
  align-items: center;
}

.bsjmis-manuscript {
  position: relative;
  min-height: 440px;
  padding: 56px 44px;
  background:
    linear-gradient(rgba(250,240,218,.93), rgba(234,212,174,.93)),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 29px,
      rgba(74,42,32,.12) 30px
    );
  border: 1px solid rgba(74,42,32,.28);
  box-shadow: 0 22px 48px rgba(55,27,18,.13);
  transform: rotate(-1deg);
}

.bsjmis-manuscript::before {
  content: "";
  position: absolute;
  inset: 17px;
  border: 1px solid rgba(83,21,18,.22);
}

.bsjmis-stamp {
  position: absolute;
  top: 31px;
  right: 29px;
  padding: 5px 10px;
  color: rgba(83,21,18,.67);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  border: 2px solid rgba(83,21,18,.43);
  transform: rotate(7deg);
}

.bsjmis-manuscript h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 38px;
  color: var(--bs-maroon);
  font-family: var(--bs-dev);
  font-size: 25px;
}

.bsjmis-manuscript i {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 1px;
  margin: 28px 0;
  background: rgba(74,42,32,.17);
}

.bsjmis-manuscript i:nth-of-type(2) {
  width: 82%;
}

.bsjmis-manuscript i:nth-of-type(3) {
  width: 92%;
}

.bsjmis-manuscript i:nth-of-type(4) {
  width: 68%;
}

.bsjmis-manuscript blockquote {
  position: relative;
  z-index: 1;
  margin: 45px 0 0;
  color: var(--bs-brown);
  font-family: var(--bs-serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.4;
}

.bsjmis-history__content > p:not(.bsjmis-label) {
  max-width: 760px;
  margin: 23px 0 0;
  color: #5e4e44;
  font-size: 14.5px;
  line-height: 1.85;
}

.bsjmis-history__list {
  margin-top: 31px;
  border-top: 1px solid var(--bs-line);
}

.bsjmis-history__list > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 23px;
  padding: 17px 0;
  border-bottom: 1px solid var(--bs-line);
}

.bsjmis-history__list strong {
  color: var(--bs-maroon);
  font-family: var(--bs-serif);
  font-size: 18px;
}

.bsjmis-history__list span {
  color: var(--bs-muted);
  font-size: 12.5px;
}

/* =========================================================
   PUBLICATION TYPES
   ========================================================= */

.bsjmis-types {
  padding: 90px 0 98px;
  background: var(--bs-paper-light);
}

.bsjmis-heading--wide {
  max-width: 900px;
}

.bsjmis-type-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 17px;
  margin-top: 52px;
}

.bsjmis-type-grid article {
  min-height: 230px;
  padding: 25px 23px;
  background: linear-gradient(180deg,#fffdf8,#f3e6d0);
  border: 1px solid var(--bs-line);
  transition: transform .2s ease, box-shadow .2s ease;
}

.bsjmis-type-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(55,27,18,.09);
}

.bsjmis-type-grid b {
  display: inline-block;
  color: var(--bs-rust);
  font-family: var(--bs-serif);
  font-size: 16px;
  font-style: italic;
  border-bottom: 1px solid var(--bs-rust);
}

.bsjmis-type-grid h3 {
  margin: 43px 0 10px;
  color: var(--bs-brown);
  font-family: var(--bs-serif);
  font-size: 24px;
  line-height: 1.1;
}

.bsjmis-type-grid p {
  margin: 0;
  color: var(--bs-muted);
  font-size: 12.5px;
  line-height: 1.7;
}

/* =========================================================
   CALL FOR PAPERS
   ========================================================= */

.bsjmis-call {
  padding: 74px 0;
  color: #fff5e4;
  background:
    radial-gradient(circle at 90% 20%, rgba(219,192,145,.14), transparent 25%),
    linear-gradient(110deg,var(--bs-maroon-dark),var(--bs-maroon));
}

.bsjmis-call__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 75px;
  align-items: center;
}

.bsjmis-call p {
  color: #d9ba85 !important;
}

.bsjmis-call h2 {
  max-width: 810px;
  color: #fff8eb;
}

.bsjmis-call div > span {
  display: block;
  max-width: 760px;
  margin-top: 17px;
  color: rgba(255,245,228,.72);
  font-size: 13.5px;
}

.bsjmis-call__buttons {
  min-width: 225px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
}

.bsjmis-btn--light {
  color: var(--bs-maroon-dark) !important;
  background: var(--bs-paper-light);
  border-color: var(--bs-paper-light);
}

.bsjmis-btn--light:hover {
  background: #fff;
}

.bsjmis-text-link {
  color: #f3dbc0 !important;
  font-size: 12px;
  font-weight: 600;
}

/* =========================================================
   DEFAULT OJS INNER PAGES
   ========================================================= */

.page:not(.page_index_journal),
.obj_issue_toc {
  width: min(100% - 60px, 1220px) !important;
  max-width: 1220px !important;
  margin: 45px auto 75px !important;
  font-family: var(--bs-sans) !important;
  font-size: 13.5px !important;
}

.page h1,
.page h2,
.page h3,
.obj_issue_toc h2,
.obj_issue_toc h3 {
  color: var(--bs-brown) !important;
  font-family: var(--bs-serif) !important;
}

.page h1 {
  font-size: clamp(31px,3.7vw,46px) !important;
}

.page h2,
.obj_issue_toc h2 {
  font-size: clamp(25px,2.8vw,36px) !important;
}

.obj_article_summary {
  padding: 22px 0 !important;
  border-bottom: 1px solid var(--bs-line) !important;
}

.obj_article_summary .title a {
  color: var(--bs-maroon) !important;
  font-family: var(--bs-serif) !important;
  font-size: 20px !important;
}

.obj_article_summary .authors,
.obj_article_summary .pages,
.obj_article_summary .published {
  font-size: 12.5px !important;
}

/* OJS buttons */
.cmp_button,
.pkp_button,
.block_make_submission a,
.page_search .submit button,
.cmp_form .buttons button {
  color: #fff8eb !important;
  background: var(--bs-maroon) !important;
  border: 1px solid var(--bs-maroon) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  font-family: var(--bs-sans) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
  .bsjmis-hero__grid {
    grid-template-columns: minmax(0,1fr) 330px;
    gap: 45px;
  }

  .bsjmis-subject-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .bsjmis-type-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 850px) {
  .bsjmis-shell {
    width: min(100% - 36px,1360px);
  }

  .bsjmis-banner {
    padding: 7px 12px;
  }

  .bsjmis-banner img {
    max-height: 190px;
  }

  .bsjmis-nav__inner {
    width: min(100% - 24px,1360px);
  }

  .bsjmis-nav__inner > a,
  .bsjmis-dropdown > button {
    padding: 0 11px;
    font-size: 10.8px;
  }

  .bsjmis-hero__grid,
  .bsjmis-about__grid,
  .bsjmis-history__grid,
  .bsjmis-call__inner {
    grid-template-columns: 1fr;
  }

  .bsjmis-quote {
    max-width: 500px;
    margin: 0 auto;
  }

  .bsjmis-about__content {
    padding-left: 0;
    border-left: 0;
  }

  .bsjmis-section-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bsjmis-section-top > span {
    padding-left: 0;
    border-left: 0;
  }

  .bsjmis-call__buttons {
    min-width: 0;
  }
}

@media (max-width: 650px) {
  .pkp_navigation_user_wrapper {
    display: none !important;
  }

  .bsjmis-shell {
    width: min(100% - 26px,1360px);
  }

  .bsjmis-banner {
    padding: 5px;
  }

  .bsjmis-banner img {
    max-height: 125px;
  }

  .bsjmis-nav {
    overflow-x: auto;
  }

  .bsjmis-nav__inner {
    width: max-content;
    min-width: 100%;
    min-height: 47px;
    padding: 0 8px;
  }

  .bsjmis-nav__inner > a,
  .bsjmis-dropdown > button {
    min-height: 47px;
    padding: 0 10px;
    font-size: 9.8px;
    white-space: nowrap;
  }

  .bsjmis-dropdown__menu {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    min-width: 0;
  }

  .bsjmis-hero {
    padding: 55px 0 62px;
  }

  .bsjmis-hero h1 {
    font-size: clamp(42px,13vw,60px);
  }

  .bsjmis-actions {
    flex-direction: column;
  }

  .bsjmis-btn {
    width: 100%;
  }

  .bsjmis-highlights {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .bsjmis-highlights > div,
  .bsjmis-highlights > div:first-child {
    padding: 0 0 12px;
    border-left: 0;
    border-bottom: 1px solid var(--bs-line);
  }

  .bsjmis-heading {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .bsjmis-heading h2,
  .bsjmis-section-top h2,
  .bsjmis-history__content h2,
  .bsjmis-call h2 {
    font-size: 34px;
  }

  .bsjmis-subject-grid,
  .bsjmis-type-grid {
    grid-template-columns: 1fr;
  }

  .bsjmis-history__list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .page:not(.page_index_journal),
  .obj_issue_toc {
    width: min(100% - 26px,1220px) !important;
  }
}


/* =========================================================
   HIDE DEFAULT OJS CURRENT ISSUE SECTION FROM HOMEPAGE
   ========================================================= */

.page_index_journal .current_issue,
.page_index_journal section.current_issue,
.page_index_journal .current_issue_title,
.page_index_journal .current_issue .obj_issue_toc,
.page_index_journal .current_issue .heading,
.page_index_journal .current_issue .published,
.page_index_journal .current_issue .read_more,
.page_index_journal .current_issue .more,
.page_index_journal a[href*="/issue/archive"].read_more {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Remove any empty spacing left around the hidden block */
.page_index_journal > .current_issue,
.page_index_journal .current_issue + *,
.page_index_journal .additional_content {
  margin-top: 0 !important;
}

.page_index_journal {
  padding-top: 0 !important;
}


/* =========================================================
   V4 COMPACT TYPOGRAPHY
   Smaller fonts across header, homepage and OJS inner pages
   ========================================================= */

/* Base size */
.bsjmis-site {
  font-size: 12.8px !important;
  line-height: 1.64 !important;
}

/* Header and menu */
#navigationUser > li > a {
  font-size: 9.5px !important;
}

.bsjmis-nav__inner > a,
.bsjmis-dropdown > button {
  font-size: 10.5px !important;
  letter-spacing: .035em !important;
}

.bsjmis-dropdown__menu a {
  font-size: 11px !important;
}

/* Hero */
.bsjmis-eyebrow,
.bsjmis-label,
.bsjmis-section-top > div > p,
.bsjmis-call > div > div > p,
.bsjmis-heading p {
  font-size: 9.5px !important;
}

.bsjmis-hero h1 {
  font-size: clamp(42px, 5vw, 68px) !important;
  line-height: .92 !important;
}

.bsjmis-hero h1 small {
  font-size: clamp(11px, 1vw, 14px) !important;
  letter-spacing: .10em !important;
}

.bsjmis-hero__text {
  font-size: clamp(16px, 1.45vw, 20px) !important;
  line-height: 1.48 !important;
}

.bsjmis-btn {
  min-height: 40px !important;
  padding: 10px 16px !important;
  font-size: 10.5px !important;
}

.bsjmis-highlights strong {
  font-size: 15px !important;
}

.bsjmis-highlights span {
  font-size: 9px !important;
}

/* Quote card */
.bsjmis-quote__dev {
  font-size: 24px !important;
}

.bsjmis-quote > p:nth-child(2) {
  font-size: 19px !important;
}

.bsjmis-quote > span {
  font-size: 10.5px !important;
}

/* Main section headings */
.bsjmis-heading h2,
.bsjmis-section-top h2,
.bsjmis-history__content h2,
.bsjmis-call h2 {
  font-size: clamp(31px, 3.25vw, 46px) !important;
  line-height: 1.06 !important;
}

.bsjmis-heading > span {
  font-size: 17px !important;
}

/* Paragraphs */
.bsjmis-about__content p,
.bsjmis-history__content > p:not(.bsjmis-label) {
  font-size: 13px !important;
  line-height: 1.78 !important;
}

.bsjmis-about__content .bsjmis-lead {
  font-size: 18px !important;
  line-height: 1.52 !important;
}

.bsjmis-section-top > span,
.bsjmis-call div > span {
  font-size: 12px !important;
}

/* Subject cards */
.bsjmis-subject-grid article {
  min-height: 195px !important;
  padding: 23px 22px 21px !important;
}

.bsjmis-subject-grid b {
  margin-bottom: 22px !important;
  font-size: 16px !important;
}

.bsjmis-subject-grid h3 {
  font-size: 22px !important;
}

.bsjmis-subject-grid p {
  font-size: 11.5px !important;
}

/* Manuscript / history */
.bsjmis-manuscript h3 {
  font-size: 22px !important;
}

.bsjmis-manuscript blockquote {
  font-size: 19px !important;
}

.bsjmis-history__list strong {
  font-size: 16px !important;
}

.bsjmis-history__list span {
  font-size: 11.5px !important;
}

/* Publication cards */
.bsjmis-type-grid article {
  min-height: 205px !important;
  padding: 22px 20px !important;
}

.bsjmis-type-grid b {
  font-size: 14px !important;
}

.bsjmis-type-grid h3 {
  margin-top: 36px !important;
  font-size: 21px !important;
}

.bsjmis-type-grid p {
  font-size: 11.5px !important;
}

/* Call for papers */
.bsjmis-text-link {
  font-size: 11px !important;
}

/* OJS inner pages */
.page:not(.page_index_journal),
.obj_issue_toc {
  font-size: 12.5px !important;
  line-height: 1.65 !important;
}

.page h1 {
  font-size: clamp(27px, 3.1vw, 38px) !important;
}

.page h2,
.obj_issue_toc h2 {
  font-size: clamp(22px, 2.4vw, 30px) !important;
}

.page h3,
.obj_issue_toc h3 {
  font-size: 18px !important;
}

.obj_article_summary .title a {
  font-size: 18px !important;
  line-height: 1.35 !important;
}

.obj_article_summary .authors,
.obj_article_summary .pages,
.obj_article_summary .published {
  font-size: 11.5px !important;
}

/* OJS buttons */
.cmp_button,
.pkp_button,
.block_make_submission a,
.page_search .submit button,
.cmp_form .buttons button {
  font-size: 10.5px !important;
}

/* Footer */
.pkp_footer_content {
  font-size: 11px !important;
}

/* Mobile compact typography */
@media (max-width: 650px) {
  .bsjmis-nav__inner > a,
  .bsjmis-dropdown > button {
    font-size: 9px !important;
  }

  .bsjmis-hero h1 {
    font-size: clamp(37px, 11.5vw, 50px) !important;
  }

  .bsjmis-hero h1 small {
    font-size: 10px !important;
  }

  .bsjmis-hero__text {
    font-size: 16px !important;
  }

  .bsjmis-heading h2,
  .bsjmis-section-top h2,
  .bsjmis-history__content h2,
  .bsjmis-call h2 {
    font-size: 29px !important;
  }

  .bsjmis-about__content .bsjmis-lead {
    font-size: 17px !important;
  }

  .bsjmis-subject-grid h3,
  .bsjmis-type-grid h3 {
    font-size: 20px !important;
  }
}


/* =========================================================
   V4 HEADER CORRECTION ONLY
   Keeps the complete V4 design unchanged.
   Fixes the full-width OJS admin/user strip on desktop.
   ========================================================= */

body .pkp_structure_head {
  position: absolute !important;
  top: 9px !important;
  right: 18px !important;
  left: auto !important;
  z-index: 9999 !important;
  display: block !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body .pkp_structure_head .pkp_head_wrapper {
  position: static !important;
  display: block !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  grid-template-columns: none !important;
}

body .pkp_structure_head .pkp_navigation_user_wrapper {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  z-index: 10000 !important;
  display: inline-flex !important;
  visibility: visible !important;
  width: auto !important;
  max-width: max-content !important;
  min-width: 0 !important;
  min-height: 30px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  padding: 0 4px !important;
  background: rgba(16, 42, 73, .94) !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: 3px !important;
  box-shadow: 0 4px 12px rgba(25,18,14,.14) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  float: none !important;
}

body .pkp_structure_head #navigationUser {
  position: relative !important;
  display: flex !important;
  width: auto !important;
  max-width: max-content !important;
  min-width: 0 !important;
  min-height: 30px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  list-style: none !important;
  float: none !important;
}

body .pkp_structure_head #navigationUser > li {
  position: relative !important;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

body .pkp_structure_head #navigationUser > li > a {
  display: flex !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 30px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px 7px !important;
  color: #ffffff !important;
  background: transparent !important;
  font-family: var(--bs-sans) !important;
  font-size: 9.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  text-transform: none !important;
  border: 0 !important;
  opacity: 1 !important;
}

body .pkp_structure_head #navigationUser > li > a:hover,
body .pkp_structure_head #navigationUser > li > a:focus {
  color: #ffffff !important;
  background: rgba(255,255,255,.10) !important;
}

/* User dropdown */
body .pkp_structure_head #navigationUser ul {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  right: 0 !important;
  left: auto !important;
  z-index: 10001 !important;
  min-width: 185px !important;
  margin: 0 !important;
  padding: 6px !important;
  background: #fffaf0 !important;
  border: 1px solid rgba(74,42,32,.22) !important;
  border-radius: 2px !important;
  box-shadow: 0 15px 32px rgba(40,20,14,.20) !important;
}

body .pkp_structure_head #navigationUser ul a {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 9px 10px !important;
  color: #4a2a20 !important;
  background: transparent !important;
  font-family: var(--bs-sans) !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

body .pkp_structure_head #navigationUser ul a:hover,
body .pkp_structure_head #navigationUser ul a:focus {
  color: #531512 !important;
  background: #f0dfc2 !important;
}

/* Remove theme-generated strip layers and dividers */
body .pkp_structure_head::before,
body .pkp_structure_head::after,
body .pkp_structure_head .pkp_head_wrapper::before,
body .pkp_structure_head .pkp_head_wrapper::after,
body .pkp_structure_head .pkp_navigation_user_wrapper::before,
body .pkp_structure_head .pkp_navigation_user_wrapper::after {
  display: none !important;
  content: none !important;
}

/* On mobile retain the exact original V4 behaviour */
@media (max-width: 650px) {
  body .pkp_structure_head,
  body .pkp_structure_head .pkp_head_wrapper,
  body .pkp_structure_head .pkp_navigation_user_wrapper,
  body .pkp_structure_head #navigationUser {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}


/* =========================================================
   V4 ADMIN USER NO-BOX FIX
   Removes navy background box, border and shadow.
   ========================================================= */

body .pkp_structure_head .pkp_navigation_user_wrapper {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body .pkp_structure_head #navigationUser > li > a {
  background: transparent !important;
}

body .pkp_structure_head #navigationUser > li > a:hover,
body .pkp_structure_head #navigationUser > li > a:focus {
  background: rgba(16, 42, 73, .08) !important;
  border-radius: 2px !important;
}


/* =========================================================
   V4 FINAL CLEANUP
   Removes:
   - brown box beside admin
   - unwanted vertical divider line
   - any sidebar split on homepage
   - extra header/background layers
   ========================================================= */

/* --- force single full-width layout --- */
.pkp_structure_content,
.pkp_structure_body,
.pkp_structure_main,
.page_index_journal {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.pkp_structure_sidebar,
.pkp_structure_sidebar.left,
.pkp_structure_sidebar.right,
.page_index_journal .pkp_structure_sidebar,
body .pkp_structure_sidebar {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

.pkp_structure_main {
  border-left: 0 !important;
  border-right: 0 !important;
  background: transparent !important;
}

/* --- remove any full header strip/background --- */
body .pkp_structure_head,
body .pkp_structure_head .pkp_head_wrapper,
body .pkp_structure_head .pkp_navigation_user_wrapper,
body .pkp_structure_head #navigationUser,
body .pkp_structure_head #navigationUser > li {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* --- keep only small user text/button appearance --- */
body .pkp_structure_head .pkp_navigation_user_wrapper {
  width: auto !important;
  max-width: max-content !important;
  padding: 0 !important;
}

body .pkp_structure_head #navigationUser > li > a {
  background: transparent !important;
  color: #102a49 !important;
  text-shadow: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

body .pkp_structure_head #navigationUser > li > a:hover,
body .pkp_structure_head #navigationUser > li > a:focus {
  background: rgba(16, 42, 73, 0.08) !important;
  color: #102a49 !important;
  border-radius: 2px !important;
}

/* --- remove any vertical divider/separator globally near header/banner/nav --- */
.bsjmis-header,
.bsjmis-banner,
.bsjmis-banner img,
.bsjmis-nav,
.bsjmis-nav__inner,
.bsjmis-nav__inner > a,
.bsjmis-dropdown,
.bsjmis-dropdown > button,
.bsjmis-dropdown__menu,
.bsjmis-nav__search,
.bsjmis-mobile-account,
.pkp_structure_head,
.pkp_head_wrapper,
.pkp_navigation_user_wrapper,
#navigationUser,
#navigationUser > li,
#navigationUser > li > a,
.pkp_structure_page,
.pkp_structure_content,
.pkp_structure_body,
.pkp_structure_main {
  border-left: 0 !important;
  border-right: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* pseudo-elements often create separator lines */
.bsjmis-header::before,
.bsjmis-header::after,
.bsjmis-banner::before,
.bsjmis-banner::after,
.bsjmis-nav::before,
.bsjmis-nav::after,
.bsjmis-nav__inner::before,
.bsjmis-nav__inner::after,
.bsjmis-nav__inner > a::before,
.bsjmis-nav__inner > a::after,
.bsjmis-dropdown::before,
.bsjmis-dropdown::after,
.bsjmis-dropdown > button::before,
.bsjmis-dropdown > button::after,
.bsjmis-nav__search::before,
.bsjmis-nav__search::after,
.bsjmis-mobile-account::before,
.bsjmis-mobile-account::after,
.pkp_structure_head::before,
.pkp_structure_head::after,
.pkp_head_wrapper::before,
.pkp_head_wrapper::after,
.pkp_navigation_user_wrapper::before,
.pkp_navigation_user_wrapper::after,
#navigationUser::before,
#navigationUser::after,
#navigationUser > li::before,
#navigationUser > li::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* also remove separator line between nav items if any theme adds it */
.bsjmis-nav__inner > * {
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
}

/* --- ensure banner area stays clean --- */
.bsjmis-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.bsjmis-banner {
  position: relative !important;
  z-index: 1 !important;
  overflow: hidden !important;
}

.bsjmis-banner img {
  display: block !important;
  width: min(100%, 1600px) !important;
  max-width: 1600px !important;
  height: auto !important;
  border: 0 !important;
}

/* --- mobile: keep original V4 mobile clean state --- */
@media (max-width: 650px) {
  body .pkp_structure_head,
  body .pkp_structure_head .pkp_head_wrapper,
  body .pkp_structure_head .pkp_navigation_user_wrapper,
  body .pkp_structure_head #navigationUser {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .pkp_structure_sidebar,
  .page_index_journal .pkp_structure_sidebar,
  body .pkp_structure_sidebar {
    display: none !important;
  }
}


/* =========================================================
   V4 FINAL — REMOVE DOWN ARROWS + ADMIN COLOUR
   ========================================================= */

/* Remove visible arrow spans from custom For Authors / About menu */
.bsjmis-dropdown > button > span {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove any arrow/caret generated by the custom navigation */
.bsjmis-dropdown > button::before,
.bsjmis-dropdown > button::after,
.bsjmis-dropdown::before,
.bsjmis-dropdown::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
}

/* Remove OJS admin/user dropdown arrow */
body .pkp_structure_head #navigationUser > li > a::before,
body .pkp_structure_head #navigationUser > li > a::after,
body .pkp_structure_head #navigationUser .dropdown-toggle::before,
body .pkp_structure_head #navigationUser .dropdown-toggle::after,
body .pkp_structure_head #navigationUser .has_submenu > a::before,
body .pkp_structure_head #navigationUser .has_submenu > a::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

/* Hide common OJS caret/icon elements beside username */
body .pkp_structure_head #navigationUser .caret,
body .pkp_structure_head #navigationUser .dropdown-caret,
body .pkp_structure_head #navigationUser .fa-caret-down,
body .pkp_structure_head #navigationUser .fa-chevron-down,
body .pkp_structure_head #navigationUser svg,
body .pkp_structure_head #navigationUser i[aria-hidden="true"] {
  display: none !important;
  visibility: hidden !important;
}

/* Change admin username colour to journal maroon */
body .pkp_structure_head #navigationUser > li > a,
body .pkp_structure_head #navigationUser > li > a:visited {
  color: #6f1d1b !important;
  background: transparent !important;
  text-shadow: none !important;
}

/* Keep hover subtle */
body .pkp_structure_head #navigationUser > li > a:hover,
body .pkp_structure_head #navigationUser > li > a:focus {
  color: #42110f !important;
  background: rgba(111, 29, 27, .07) !important;
}

/* Style notification/task count */
body .pkp_structure_head #navigationUser .task_count,
body .pkp_structure_head #navigationUser .notification_count,
body .pkp_structure_head #navigationUser .badge {
  display: inline-flex !important;
  min-width: 22px !important;
  height: 22px !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 6px !important;
  padding: 0 6px !important;
  color: #42110f !important;
  background: #dec394 !important;
  border: 0 !important;
  border-radius: 50px !important;
  box-shadow: none !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}


/* =========================================================
   V4 PERMANENT VERTICAL-LINE FIX
   Removes vertical lines from backgrounds, borders,
   grid dividers, sidebars and pseudo-elements.
   Keep this block at the absolute END of the stylesheet.
   ========================================================= */

/* 1. Remove vertical-pattern background images */
.bsjmis-hero {
  background:
    radial-gradient(circle at 10% 22%, rgba(181,139,72,.12), transparent 26%),
    radial-gradient(circle at 90% 72%, rgba(83,21,18,.09), transparent 28%),
    linear-gradient(135deg, #fbf6ec, #efdfc4) !important;
  background-size: auto !important;
}

.bsjmis-about {
  background: #fbf7ef !important;
  background-image: none !important;
  background-size: auto !important;
}

.bsjmis-subjects {
  background: #3b0d0b !important;
  background-image: none !important;
}

.bsjmis-history {
  background: #f5eddf !important;
  background-image: none !important;
}

.bsjmis-types {
  background: #fbf7ef !important;
  background-image: none !important;
}

.bsjmis-call {
  background: linear-gradient(110deg, #3b0d0b, #531512) !important;
  background-image: linear-gradient(110deg, #3b0d0b, #531512) !important;
}

/* 2. Remove all section-level vertical borders */
.bsjmis-header,
.bsjmis-banner,
.bsjmis-nav,
.bsjmis-nav__inner,
.bsjmis-hero,
.bsjmis-hero__grid,
.bsjmis-about,
.bsjmis-about__grid,
.bsjmis-about__content,
.bsjmis-subjects,
.bsjmis-section-top,
.bsjmis-section-top > span,
.bsjmis-subject-grid,
.bsjmis-subject-grid article,
.bsjmis-history,
.bsjmis-history__grid,
.bsjmis-history__content,
.bsjmis-history__list,
.bsjmis-history__list > div,
.bsjmis-types,
.bsjmis-type-grid,
.bsjmis-type-grid article,
.bsjmis-call,
.bsjmis-call__inner,
.bsjmis-highlights,
.bsjmis-highlights > div {
  border-left: 0 !important;
  border-right: 0 !important;
  outline-left: 0 !important;
  outline-right: 0 !important;
}

/* Keep only intended horizontal separators */
.bsjmis-subject-grid {
  border-top: 1px solid rgba(219,192,145,.23) !important;
  border-bottom: 0 !important;
}

.bsjmis-subject-grid article {
  border-top: 0 !important;
  border-bottom: 1px solid rgba(219,192,145,.23) !important;
}

.bsjmis-highlights > div {
  border-bottom: 0 !important;
}

.bsjmis-history__list > div {
  border-bottom: 1px solid var(--bs-line) !important;
}

/* 3. Remove any sidebar/grid split permanently */
.pkp_structure_sidebar,
.pkp_structure_sidebar.left,
.pkp_structure_sidebar.right,
.page_index_journal .pkp_structure_sidebar,
body .pkp_structure_sidebar {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.pkp_structure_page,
.pkp_structure_content,
.pkp_structure_body,
.pkp_structure_main,
.page_index_journal,
.additional_content {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  grid-template-columns: 1fr !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
}

/* 4. Remove pseudo-element divider lines */
.bsjmis-site::before,
.bsjmis-site::after,
.bsjmis-header::before,
.bsjmis-header::after,
.bsjmis-banner::before,
.bsjmis-banner::after,
.bsjmis-nav::before,
.bsjmis-nav::after,
.bsjmis-nav__inner::before,
.bsjmis-nav__inner::after,
.bsjmis-hero__grid::before,
.bsjmis-hero__grid::after,
.bsjmis-about::before,
.bsjmis-about::after,
.bsjmis-about__grid::before,
.bsjmis-about__grid::after,
.bsjmis-about__content::before,
.bsjmis-about__content::after,
.bsjmis-subjects::before,
.bsjmis-subjects::after,
.bsjmis-section-top::before,
.bsjmis-section-top::after,
.bsjmis-subject-grid::before,
.bsjmis-subject-grid::after,
.bsjmis-history::before,
.bsjmis-history::after,
.bsjmis-history__grid::before,
.bsjmis-history__grid::after,
.bsjmis-types::before,
.bsjmis-types::after,
.bsjmis-call__inner::before,
.bsjmis-call__inner::after,
.pkp_structure_page::before,
.pkp_structure_page::after,
.pkp_structure_content::before,
.pkp_structure_content::after,
.pkp_structure_body::before,
.pkp_structure_body::after,
.pkp_structure_main::before,
.pkp_structure_main::after {
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
}

/* Do not remove decorative text pseudo-elements */
.bsjmis-hero::after {
  display: block !important;
  content: "समाज" !important;
  border: 0 !important;
}

/* 5. Remove stray one-pixel lines created by OJS/theme layout */
.pkp_structure_content > *,
.pkp_structure_main > *,
.page_index_journal > *,
.additional_content > *,
.bsjmis-site > * {
  outline: 0 !important;
  box-shadow: none !important;
}

.pkp_structure_content,
.pkp_structure_main,
.page_index_journal,
.additional_content,
.bsjmis-site {
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* 6. Mobile/tablet hard override */
@media (max-width: 900px) {
  .bsjmis-about__content,
  .bsjmis-section-top > span,
  .bsjmis-highlights > div,
  .bsjmis-subject-grid,
  .bsjmis-subject-grid article,
  .bsjmis-history__list > div {
    border-left: 0 !important;
    border-right: 0 !important;
  }

  .bsjmis-about,
  .bsjmis-hero,
  .bsjmis-subjects,
  .bsjmis-history,
  .bsjmis-types,
  .bsjmis-call {
    background-size: auto !important;
  }
}

@media (max-width: 650px) {
  .bsjmis-about {
    background: #fbf7ef !important;
  }

  .bsjmis-hero {
    background:
      radial-gradient(circle at 10% 22%, rgba(181,139,72,.10), transparent 26%),
      linear-gradient(135deg, #fbf6ec, #efdfc4) !important;
  }

  .bsjmis-subjects {
    background: #3b0d0b !important;
  }
}


/* =========================================================
   EXACT MANUSCRIPT THEME VERTICAL-LINE FIX
   The Manuscript theme creates the line with:
   .pkp_structure_sidebar:before { border-left: ... }
   This block disables that exact pseudo-element permanently.
   Keep this block at the absolute end of the CSS.
   ========================================================= */

html body .pkp_structure_page .pkp_structure_content .pkp_structure_sidebar::before,
html body .pkp_structure_page .pkp_structure_content .pkp_structure_sidebar:before,
html body .pkp_structure_page .pkp_structure_content .pkp_structure_sidebar::after,
html body .pkp_structure_page .pkp_structure_content .pkp_structure_sidebar:after,
html body .pkp_structure_sidebar::before,
html body .pkp_structure_sidebar:before,
html body .pkp_structure_sidebar::after,
html body .pkp_structure_sidebar:after {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Kill the sidebar container itself on the custom homepage */
html body:has(.bsjmis-site) .pkp_structure_sidebar,
html body .page_index_journal ~ .pkp_structure_sidebar,
html body .page_index_journal .pkp_structure_sidebar,
html body .pkp_structure_content > .pkp_structure_sidebar {
  display: none !important;
  visibility: hidden !important;
  position: static !important;
  float: none !important;
  flex: 0 0 0 !important;
  grid-column: auto !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

/* Remove remaining Manuscript/default-theme structural pseudo-borders */
html body .pkp_structure_main::before,
html body .pkp_structure_main:before,
html body .pkp_structure_main::after,
html body .pkp_structure_main:after,
html body .pkp_structure_content::before,
html body .pkp_structure_content:before,
html body .pkp_structure_content::after,
html body .pkp_structure_content:after,
html body .pkp_structure_body::before,
html body .pkp_structure_body:before,
html body .pkp_structure_body::after,
html body .pkp_structure_body:after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  width: 0 !important;
  box-shadow: none !important;
}

/* Ensure the remaining content uses one full-width column */
html body .pkp_structure_content,
html body .pkp_structure_body {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
  gap: 0 !important;
}

html body .pkp_structure_main {
  display: block !important;
  float: none !important;
  clear: both !important;
  flex: none !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}


/* =========================================================
   FINAL ADMIN DROPDOWN FIX
   Brown rectangle was the nested user dropdown being painted
   beside the username. It is now hidden by default and shown
   only below the username on hover/focus.
   ========================================================= */

@media (min-width: 651px) {

  /* Clean, compact account container */
  html body .pkp_structure_head,
  html body .pkp_structure_head .pkp_head_wrapper,
  html body .pkp_structure_head .pkp_navigation_user_wrapper,
  html body .pkp_structure_head #navigationUser,
  html body .pkp_structure_head #navigationUser > li,
  html body .pkp_structure_head #navigationUser > li > a {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html body .pkp_structure_head {
    position: absolute !important;
    top: 8px !important;
    right: 18px !important;
    left: auto !important;
    z-index: 9999 !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html body .pkp_structure_head .pkp_head_wrapper {
    position: static !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html body .pkp_structure_head .pkp_navigation_user_wrapper {
    position: relative !important;
    inset: auto !important;
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: max-content !important;
    min-height: 28px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  html body .pkp_structure_head #navigationUser {
    position: relative !important;
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: max-content !important;
    min-height: 28px !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    overflow: visible !important;
  }

  html body .pkp_structure_head #navigationUser > li {
    position: relative !important;
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  /* Username remains visible */
  html body .pkp_structure_head #navigationUser > li > a,
  html body .pkp_structure_head #navigationUser > li > a:visited {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 28px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 3px 5px !important;
    color: #6f1d1b !important;
    font-family: var(--bs-sans) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  html body .pkp_structure_head #navigationUser > li > a:hover,
  html body .pkp_structure_head #navigationUser > li > a:focus {
    color: #42110f !important;
    background: rgba(245, 239, 227, .82) !important;
  }

  /* Gold task-count circle */
  html body .pkp_structure_head #navigationUser .task_count,
  html body .pkp_structure_head #navigationUser .notification_count,
  html body .pkp_structure_head #navigationUser .badge {
    display: inline-flex !important;
    position: static !important;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 0 6px !important;
    padding: 0 !important;
    color: #42110f !important;
    background: #dec394 !important;
    background-color: #dec394 !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 24px !important;
  }

  /* Remove all visible carets/arrows */
  html body .pkp_structure_head #navigationUser [aria-haspopup]::after,
  html body .pkp_structure_head #navigationUser [aria-haspopup]:after,
  html body .pkp_structure_head #navigationUser .caret,
  html body .pkp_structure_head #navigationUser .dropdown-caret,
  html body .pkp_structure_head #navigationUser .fa-caret-down,
  html body .pkp_structure_head #navigationUser .fa-chevron-down,
  html body .pkp_structure_head #navigationUser svg,
  html body .pkp_structure_head #navigationUser i[aria-hidden="true"] {
    display: none !important;
    visibility: hidden !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  /*
   * CRITICAL FIX:
   * Keep the nested account dropdown completely hidden while closed.
   * The previous CSS positioned it beside the username, producing the
   * empty brown rectangle.
   */
  html body .pkp_structure_head #navigationUser > li > ul,
  html body .pkp_structure_head #navigationUser ul.dropdown-menu,
  html body .pkp_structure_head #navigationUser .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 5px) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 10001 !important;
    display: none !important;
    visibility: hidden !important;
    width: 190px !important;
    min-width: 190px !important;
    max-width: 230px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6px !important;
    color: #4a2a20 !important;
    background: #fffaf0 !important;
    background-color: #fffaf0 !important;
    background-image: none !important;
    border: 1px solid rgba(74, 42, 32, .18) !important;
    border-radius: 2px !important;
    box-shadow: 0 14px 30px rgba(40, 20, 14, .18) !important;
    opacity: 0 !important;
    overflow: visible !important;
    pointer-events: none !important;
    transform: none !important;
  }

  /* Show dropdown only when genuinely opened */
  html body .pkp_structure_head #navigationUser > li:hover > ul,
  html body .pkp_structure_head #navigationUser > li:focus-within > ul,
  html body .pkp_structure_head #navigationUser > li.is_open > ul,
  html body .pkp_structure_head #navigationUser ul.dropdown-menu.show,
  html body .pkp_structure_head #navigationUser .dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    left: auto !important;
    right: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  html body .pkp_structure_head #navigationUser > li > ul li,
  html body .pkp_structure_head #navigationUser .dropdown-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  html body .pkp_structure_head #navigationUser > li > ul a,
  html body .pkp_structure_head #navigationUser .dropdown-menu a {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 9px 10px !important;
    color: #4a2a20 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-family: var(--bs-sans) !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    white-space: normal !important;
  }

  html body .pkp_structure_head #navigationUser > li > ul a:hover,
  html body .pkp_structure_head #navigationUser > li > ul a:focus,
  html body .pkp_structure_head #navigationUser .dropdown-menu a:hover,
  html body .pkp_structure_head #navigationUser .dropdown-menu a:focus {
    color: #6f1d1b !important;
    background: #f0dfc2 !important;
  }

  /* Remove pseudo-layers around the closed account control */
  html body .pkp_structure_head::before,
  html body .pkp_structure_head::after,
  html body .pkp_structure_head .pkp_head_wrapper::before,
  html body .pkp_structure_head .pkp_head_wrapper::after,
  html body .pkp_structure_head .pkp_navigation_user_wrapper::before,
  html body .pkp_structure_head .pkp_navigation_user_wrapper::after,
  html body .pkp_structure_head #navigationUser::before,
  html body .pkp_structure_head #navigationUser::after,
  html body .pkp_structure_head #navigationUser > li::before,
  html body .pkp_structure_head #navigationUser > li::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }
}

/* =========================================================
   RE-LOCK EXACT MANUSCRIPT VERTICAL-LINE FIX
   ========================================================= */

html body .pkp_structure_page .pkp_structure_content .pkp_structure_sidebar::before,
html body .pkp_structure_page .pkp_structure_content .pkp_structure_sidebar:before,
html body .pkp_structure_page .pkp_structure_content .pkp_structure_sidebar::after,
html body .pkp_structure_page .pkp_structure_content .pkp_structure_sidebar:after,
html body .pkp_structure_sidebar::before,
html body .pkp_structure_sidebar:before,
html body .pkp_structure_sidebar::after,
html body .pkp_structure_sidebar:after {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  position: static !important;
  inset: auto !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html body .pkp_structure_sidebar {
  display: none !important;
  visibility: hidden !important;
  position: static !important;
  float: none !important;
  flex: 0 0 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

html body .pkp_structure_content,
html body .pkp_structure_body {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
  gap: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

html body .pkp_structure_main {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
}


/* =========================================================
   ADMIN USERNAME CREAM COLOUR
   ========================================================= */

html body .pkp_structure_head #navigationUser > li > a,
html body .pkp_structure_head #navigationUser > li > a:visited {
  color: #f4e4c4 !important;
  text-shadow: 0 1px 1px rgba(45, 18, 13, .22) !important;
}

html body .pkp_structure_head #navigationUser > li > a:hover,
html body .pkp_structure_head #navigationUser > li > a:focus {
  color: #fff8e9 !important;
}
