@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Amiri:wght@400;700&display=swap');

/* =====================================================================
   IHYAUSSUNNAH: Journal of Ulumul Hadith and Living Sunnah
   Pascasarjana UIN Alauddin Makassar
   Theme stylesheet for the OJS 3.3 Default Theme. Written for Ihyaussunnah, 2026.
   Install: Settings > Website > Appearance > Advanced > Journal style sheet
   (upload this file to REPLACE the current stylesheet; do not merge them).

   Palette taken from the header banner (teal, mint and lime gradient with
   the green title band) and from the existing sidebar blocks (bottle green
   and gold).

   Default font: Aptos. Aptos is a Microsoft font that may not be served as
   a web font, so it shows for visitors who have it installed (Windows 11,
   Microsoft 365). Everyone else sees Segoe UI or Inter, a free font with a
   similar clean, open shape, loaded from Google Fonts (allowed by the
   server's Content-Security-Policy). Arabic text uses Amiri.
   ===================================================================== */

/* ---------- 1. Palette ---------- */
:root {
  --ih-green: #1E8C4E;          /* green title band of the banner */
  --ih-green-dark: #165334;     /* sidebar block headers */
  --ih-green-deep: #092617;     /* bottle green: menu, footer */
  --ih-green-soft: #E6F4EC;
  --ih-teal: #19A9BF;           /* cyan at the left of the banner */
  --ih-teal-soft: #E2F5F4;
  --ih-lime: #DCD95E;           /* yellow-green at the right of the banner */
  --ih-gold: #C59B27;           /* gold border of the sidebar blocks */
  --ih-gold-light: #F2D27C;
  --ih-gold-dark: #8A6A12;
  --ih-gold-soft: #FBF5E0;
  --ih-wood: #0E6E7D;           /* hover accent (deep teal) */
  --ih-cream: #FAFCF8;          /* page background */
  --ih-paper: #FFFFFF;
  --ih-ink: #1F2A24;
  --ih-muted: #5F6B64;
  --ih-line: #DCE8E1;
  --ih-line-soft: #EBF2EE;
  --ih-radius: 6px;
  --ih-radius-lg: 12px;
  --ih-shadow: 0 2px 12px rgba(9, 38, 23, 0.08);
  --ih-shadow-hover: 0 8px 22px rgba(9, 38, 23, 0.15);
  --ih-font: "Aptos", "Segoe UI Variable Text", "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ih-font-arabic: "Amiri", "Traditional Arabic", "Noto Naskh Arabic", "Times New Roman", serif;
}

/* ---------- 2. Base: Aptos as the default font ---------- */
html body {
  color: var(--ih-ink);
  background: #E8F1EC !important;
  font-family: var(--ih-font) !important;
  font-size: 16px;
  line-height: 1.65;
}

/* Outer background: pale mint with a fine teal-and-gold dot pattern */
html:root {
  background-color: #E8F1EC !important;
  background-image:
    radial-gradient(rgba(25, 169, 191, 0.16) 1px, transparent 1.5px),
    radial-gradient(rgba(197, 155, 39, 0.16) 1px, transparent 1.5px) !important;
  background-size: 24px 24px, 24px 24px;
  background-position: 0 0, 12px 12px;
}

html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
html body p, html body a, html body li, html body td, html body th, html body label,
html body input, html body select, html body textarea, html body button,
html body blockquote, html body .pkp_structure_page {
  font-family: var(--ih-font) !important;
}

/* Font Awesome icons keep their own font */
html body .fa,
html body [class^="fa-"],
html body [class*=" fa-"] {
  font-family: "FontAwesome" !important;
  font-style: normal;
}

a {
  color: var(--ih-green);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

a:hover,
a:focus {
  color: var(--ih-gold-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ih-gold);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ih-green-dark);
  font-weight: 700;
  line-height: 1.3;
}

img,
iframe,
video {
  max-width: 100%;
}

::selection {
  background: var(--ih-gold-light);
  color: var(--ih-green-deep);
}

/* Page wrapper: one centred 1200px card, so the header image, menu, body and
   footer all share the same left and right edges */
html body .pkp_structure_page {
  width: calc(100% - 40px) !important;
  max-width: 1200px !important;
  margin: 24px auto 32px !important;
  background: var(--ih-cream) !important;
  border-radius: var(--ih-radius-lg);
  box-shadow: 0 6px 28px rgba(11, 38, 27, 0.16);
  overflow: hidden;
}

/* ---------- 3. Header: image fills the full width of the page card ---------- */
html body .pkp_structure_head {
  position: relative;
  padding: 0 !important;
  background: var(--ih-green-deep) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

html body .pkp_head_wrapper,
html body .has_site_logo .pkp_head_wrapper {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .pkp_site_name_wrapper {
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .pkp_site_name {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

html body .pkp_site_name .is_img {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}

html body .pkp_site_name .is_img img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
}

html body .pkp_site_name .is_text {
  display: block;
  padding: 28px 24px;
  color: #FFFFFF !important;
  font-size: 28px;
  text-transform: none;
}

/* Welcome line: a slim bottle-green strip above the banner, which also holds
   the Register / Login buttons */
@media (min-width: 768px) {
  html body .pkp_structure_head::before {
    content: "Welcome to the official portal of Ihyaussunnah: Journal of Ulumul Hadith and Living Sunnah";
    display: block;
    padding: 9px 190px 9px 28px;
    color: var(--ih-gold-light);
    background: var(--ih-green-deep);
    border-bottom: 1px solid rgba(242, 210, 124, 0.30);
    font-family: var(--ih-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .07em;
    line-height: 1.3;
    text-transform: uppercase;
  }
}

/* ---------- 4. Main menu ---------- */
html body .pkp_navigation_primary_row {
  background:
    linear-gradient(90deg, var(--ih-teal) 0%, #7FD1A4 50%, var(--ih-lime) 100%) top / 100% 3px no-repeat,
    linear-gradient(90deg, var(--ih-green-deep) 0%, var(--ih-green-dark) 100%) !important;
  padding-top: 3px;
  border-top: 0;
  border-bottom: 3px solid var(--ih-gold);
}

html body .pkp_navigation_primary_wrapper {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 28px !important;
  background: transparent;
  border-top: 0;
}

/* First menu item lines up with the left edge of the body text */
@media (min-width: 992px) {
  html body .pkp_navigation_primary > li:first-child > a {
    margin-left: -18px;
  }
}

html body .pkp_navigation_primary > li > a {
  margin: 0;
  padding: 13px 18px;
  color: var(--ih-cream) !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 0;
}

html body .pkp_navigation_primary > li > a:hover,
html body .pkp_navigation_primary > li > a:focus {
  color: var(--ih-green-deep) !important;
  background: var(--ih-gold);
}

html body .pkp_navigation_primary .dropdown-menu,
html body .pkp_nav_list ul {
  background: var(--ih-paper);
  border-top: 3px solid var(--ih-gold);
  border-radius: 0 0 var(--ih-radius) var(--ih-radius);
  box-shadow: var(--ih-shadow-hover);
}

html body .pkp_navigation_primary .dropdown-menu a,
html body .pkp_nav_list ul a {
  color: var(--ih-green-dark) !important;
  border-left: 3px solid transparent;
  text-transform: none;
  letter-spacing: 0;
}

html body .pkp_navigation_primary .dropdown-menu a:hover,
html body .pkp_navigation_primary .dropdown-menu a:focus,
html body .pkp_nav_list ul a:hover,
html body .pkp_nav_list ul a:focus {
  color: var(--ih-green-deep) !important;
  background: var(--ih-gold-soft);
  border-left-color: var(--ih-gold);
}

/* Search link */
html body .pkp_navigation_search_wrapper a,
html body .pkp_navigation_search_wrapper a:hover,
html body .pkp_navigation_search_wrapper a:focus {
  color: var(--ih-gold-light) !important;
  font-weight: 600;
  border-bottom: 0;
}

/* User menu (Register / Login) floats over the top right of the header image */
@media (min-width: 992px) {
  html body .pkp_navigation_user_wrapper {
    position: absolute;
    top: 3px;
    right: 16px !important;
    left: auto !important;
    width: auto !important;
    max-width: none !important;
    padding: 0;
    transform: none !important;
    z-index: 5;
  }

  html body .pkp_navigation_user.pkp_navigation_user {
    width: auto !important;
    padding: 0 !important;
  }
}

html body .pkp_navigation_user > li > a,
html body .pkp_navigation_user > li > a:visited {
  margin: 0 0 0 8px;
  padding: 3px 14px;
  color: #FFFFFF !important;
  background: rgba(11, 38, 27, 0.82) !important;
  border: 1px solid var(--ih-gold);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

html body .pkp_navigation_user > li > a:hover,
html body .pkp_navigation_user > li > a:focus {
  color: var(--ih-green-deep) !important;
  background: var(--ih-gold) !important;
}

html body .pkp_navigation_user ul {
  background: var(--ih-green-deep) !important;
}

html body .pkp_navigation_user .task_count {
  color: var(--ih-green-deep);
  background: var(--ih-gold-light);
}

/* Mobile menu button */
html body .pkp_site_nav_toggle {
  color: var(--ih-green-deep);
  background: var(--ih-gold);
  border-radius: var(--ih-radius);
}

html body .pkp_site_nav_menu {
  background: var(--ih-green-dark);
}

/* ---------- 5. Content area with an active sidebar ---------- */
html body .pkp_structure_content {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 32px 28px 56px !important;
  background: transparent !important;
}

html body .pkp_structure_content:before,
html body .pkp_structure_content:after {
  display: none !important;
}

html body .pkp_structure_main {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

html body .pkp_structure_main:before,
html body .pkp_structure_main:after {
  display: none !important;
}

/* Sidebar always shown on wide screens */
html body .pkp_structure_content.has_sidebar > .pkp_structure_sidebar {
  display: block !important;
}

@media (min-width: 992px) {
  html body .pkp_structure_content.has_sidebar {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 32px;
  }

  html body .pkp_structure_content.has_sidebar > .pkp_structure_main {
    order: 1;
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    float: none !important;
  }

  html body .pkp_structure_content.has_sidebar > .pkp_structure_sidebar {
    order: 2;
    flex: 0 0 300px;
    width: 300px !important;
    float: none !important;
  }
}

@media (max-width: 991.98px) {
  html body .pkp_structure_content.has_sidebar > .pkp_structure_sidebar {
    width: 100% !important;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 3px solid var(--ih-gold);
  }
}

html body .pkp_structure_main p,
html body .pkp_structure_main li {
  line-height: 1.8;
}

html body .pkp_structure_main .page h1,
html body .pkp_structure_main > .page > h1 {
  margin-top: 0;
  padding-bottom: 8px;
  color: var(--ih-green-dark);
  font-size: 26px;
  border-bottom: 2px solid var(--ih-gold);
}

html body .pkp_structure_main h2 {
  font-size: 21px;
}

html body .cmp_breadcrumbs {
  color: var(--ih-muted);
  font-size: 14px;
}

html body .cmp_breadcrumbs a {
  color: var(--ih-green);
}

html body .cmp_breadcrumbs .current {
  color: var(--ih-green-dark);
  font-weight: 600;
}

.homepage_image img[src$="/"] {
  display: none !important;
}

/* ---------- 5a. MAIN CARD: About the Journal ---------- */
html body.pkp_page_index .homepage_about {
  position: relative;
  margin: 0 0 32px !important;
  padding: 0 0 8px !important;
  background: linear-gradient(150deg, #FFFFFF 0%, var(--ih-cream) 55%, var(--ih-gold-soft) 100%);
  border: 1px solid var(--ih-line);
  border-radius: var(--ih-radius-lg);
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.95),
    inset -2px -2px 0 rgba(30, 91, 63, 0.06),
    8px 10px 22px rgba(11, 38, 27, 0.13),
    -3px -3px 10px rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

html body.pkp_page_index .homepage_about > h2 {
  position: relative;
  margin: 0 0 16px !important;
  padding: 13px 20px 11px 62px !important;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, var(--ih-green-deep) 0%, var(--ih-green) 60%, #2E7A55 100%);
  border: 0 !important;
  border-bottom: 3px solid var(--ih-gold) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  font-size: 19px !important;
  letter-spacing: .02em;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35);
}

/* Gold medallion with the letter ح (ḥāʾ, for ḥadīth) */
html body.pkp_page_index .homepage_about > h2::before {
  content: "\062D";
  position: absolute;
  top: 50%;
  left: 18px;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  color: var(--ih-green-deep);
  background: radial-gradient(circle at 35% 30%, #FFF4CF 0%, var(--ih-gold) 62%, var(--ih-gold-dark) 100%);
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), inset 0 -1px 2px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.35);
  font-family: "Amiri", "Traditional Arabic", "Noto Naskh Arabic", "Times New Roman", serif !important;
  font-size: 19px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

html body.pkp_page_index .homepage_about > p {
  margin-left: 24px !important;
  margin-right: 24px !important;
  text-align: justify;
}

html body.pkp_page_index .homepage_about > h2 + p {
  margin-top: 0;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--ih-line-soft);
  border-left: 4px solid var(--ih-gold);
  border-radius: var(--ih-radius);
}

html body.pkp_page_index .homepage_about > table {
  width: calc(100% - 48px);
  margin: 0 24px 12px;
  border-collapse: collapse;
}

html body.pkp_page_index .homepage_about > table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--ih-line);
  vertical-align: top;
}

html body.pkp_page_index .homepage_about > table td:first-child {
  width: 34%;
  color: var(--ih-green-dark);
  font-weight: 700;
}

/* ---------- 5b. Announcements ---------- */
html body .cmp_announcements.cmp_announcements {
  margin: 0 0 32px !important;
  padding: 0;
  border: 0 !important;
}

html body .cmp_announcements.cmp_announcements:after {
  content: "";
  display: table;
  clear: both;
}

html body.pkp_page_index .cmp_announcements > .obj_announcement_summary,
html body .cmp_announcements .obj_announcement_summary {
  float: none !important;
  width: auto !important;
  margin: 0 0 12px;
  padding: 18px 22px !important;
  background: var(--ih-paper);
  border: 1px solid var(--ih-line-soft);
  border-left: 4px solid var(--ih-green);
  border-radius: var(--ih-radius);
  box-shadow: 0 1px 4px rgba(11, 38, 27, 0.05);
}

html body.pkp_page_index .cmp_announcements > .obj_announcement_summary:before {
  display: none !important;
}

html body.pkp_page_index .cmp_announcements .more {
  float: none !important;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
}

html body.pkp_page_index .cmp_announcements .more:before {
  display: none !important;
}

html body.pkp_page_index .cmp_announcements .more:not(:has(*)) {
  display: none !important;
}

html body .obj_announcement_summary h2,
html body .obj_announcement_summary h3,
html body .obj_announcement_summary h4 {
  margin: 0 0 4px;
  font-size: 19px;
  line-height: 1.4;
}

html body .obj_announcement_summary h2 a,
html body .obj_announcement_summary h3 a,
html body .obj_announcement_summary h4 a {
  color: var(--ih-green-dark);
}

html body .obj_announcement_summary .date {
  color: var(--ih-gold-dark);
  font-size: 14px;
  font-style: italic;
}

html body .obj_announcement_summary .date:before {
  color: var(--ih-gold);
}

html body .obj_announcement_summary .summary {
  font-size: 15px;
}

html body .obj_announcement_summary .read_more {
  display: inline-block;
  margin: 8px 0 0 8px;
  padding: 2px 30px 2px 14px !important;
  color: #FFFFFF !important;
  background: var(--ih-green-dark);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.9;
}

html body .obj_announcement_summary .read_more:after {
  top: 0 !important;
  width: 26px !important;
  height: 100% !important;
  line-height: inherit !important;
}

html body .obj_announcement_summary .read_more:hover,
html body .obj_announcement_summary .read_more:focus {
  color: var(--ih-green-deep) !important;
  background: var(--ih-gold);
}

/* ---------- 5c. Current issue and extra homepage content ---------- */
html body.pkp_page_index .current_issue > h2 {
  display: block;
  margin: 0 0 16px;
  padding: 9px 16px;
  color: #FFFFFF;
  background: var(--ih-green);
  border-bottom: 3px solid var(--ih-gold);
  border-radius: var(--ih-radius) var(--ih-radius) 0 0;
  font-size: 17px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

html body.pkp_page_index .current_issue_title {
  color: var(--ih-green-dark);
  font-weight: 700;
}

html body.pkp_page_index .additional_content {
  margin: 24px 0 0 !important;
  padding: 18px 20px;
  background: var(--ih-paper);
  border: 1px solid var(--ih-line-soft);
  border-left: 4px solid var(--ih-gold);
  border-radius: var(--ih-radius);
}

html body.pkp_page_index .additional_content:not(:has(*)) {
  display: none;
}

/* ---------- 6. Issue table of contents and article summaries ---------- */
html body .obj_issue_toc .cover img,
html body .obj_issue_summary .cover img,
html body .homepage_image img {
  border-radius: var(--ih-radius);
  box-shadow: var(--ih-shadow);
}

html body .obj_issue_toc .heading .published {
  color: var(--ih-muted);
  font-size: 14px;
}

html body .obj_issue_toc .sections .section > h2,
html body .obj_issue_toc .sections .section > h3 {
  display: inline-block;
  position: relative;
  left: 0;
  margin: 0 0 12px;
  padding: 4px 14px;
  color: #FFFFFF;
  background: var(--ih-green-dark);
  border-left: 4px solid var(--ih-gold);
  border-radius: var(--ih-radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

html body .obj_issue_toc .section:before {
  display: none;
}

html body .cmp_article_list > li {
  margin-bottom: 14px;
}

html body .obj_article_summary {
  position: relative;
  padding: 16px 18px;
  background: var(--ih-paper);
  border: 1px solid var(--ih-line-soft);
  border-left: 4px solid var(--ih-gold);
  border-radius: var(--ih-radius);
  box-shadow: 0 1px 4px rgba(11, 38, 27, 0.05);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

html body .obj_article_summary:hover {
  border-left-color: var(--ih-green);
  box-shadow: var(--ih-shadow-hover);
  transform: translateY(-2px);
}

html body .obj_article_summary > .title,
html body .obj_article_summary h3.title,
html body .obj_article_summary h4.title {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.45;
}

html body .obj_article_summary .title a {
  color: var(--ih-green-dark);
  font-weight: 700;
}

html body .obj_article_summary .title a:hover,
html body .obj_article_summary .title a:focus {
  color: var(--ih-wood);
}

html body .obj_article_summary .meta {
  color: var(--ih-muted);
  font-size: 14px;
}

html body .obj_article_summary .authors {
  font-style: italic;
}

html body .obj_article_summary .pages {
  color: var(--ih-gold-dark);
  font-weight: 600;
}

/* PDF / galley buttons */
html body .obj_galley_link,
html body .obj_galley_link.pdf {
  color: #FFFFFF;
  background: var(--ih-green);
  border: 1px solid var(--ih-green);
  border-radius: 999px;
  font-weight: 600;
}

html body .obj_galley_link:hover,
html body .obj_galley_link:focus {
  color: var(--ih-green);
  background: #FFFFFF;
  border-color: var(--ih-green);
}

html body .obj_galley_link.restricted {
  color: var(--ih-gold-dark);
  background: var(--ih-gold-soft);
  border-color: var(--ih-gold);
}

/* "Read more" and "View All Issues" */
html body .current_issue a.read_more,
html body .page_issue_archive a.read_more,
html body.pkp_page_index .current_issue .read_more {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 34px 5px 18px;
  color: #FFFFFF !important;
  background: var(--ih-green-dark);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

html body .current_issue a.read_more:hover,
html body .current_issue a.read_more:focus {
  color: var(--ih-green-deep) !important;
  background: var(--ih-gold);
}

/* Archive */
html body .issues_archive > li {
  padding: 14px 0;
  border-bottom: 1px dashed var(--ih-line);
}

html body .obj_issue_summary h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

html body .obj_issue_summary .title {
  color: var(--ih-green-dark);
  font-size: 16px;
  font-weight: 700;
}

html body .obj_issue_summary .series {
  margin-top: 2px;
  color: var(--ih-gold-dark);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- 7. Article page ---------- */
html body .obj_article_details .page_title,
html body .obj_article_details > h1 {
  color: var(--ih-green-dark);
  line-height: 1.35;
}

html body .obj_article_details .row,
html body .obj_article_details .main_entry,
html body .obj_article_details .entry_details .item {
  border-color: var(--ih-line-soft);
}

html body .obj_article_details .item .label,
html body .obj_article_details .entry_details .item .label,
html body .obj_article_details .main_entry .item .label {
  margin-bottom: 6px;
  padding-bottom: 4px;
  color: var(--ih-green-dark);
  border-bottom: 1px solid var(--ih-gold);
  font-size: 16px;
  font-weight: 700;
}

html body .obj_article_details .entry_details {
  background: #FFFDF8;
}

html body .obj_article_details .item.abstract p,
html body .obj_article_details .item.references p {
  text-align: justify;
}

/* Arabic text (dir="rtl") */
html body .obj_article_details [dir="rtl"],
html body .obj_article_summary [dir="rtl"] {
  font-family: "Amiri", "Traditional Arabic", "Noto Naskh Arabic", "Times New Roman", serif !important;
  font-size: 1.12em;
  line-height: 1.9;
  text-align: right;
}

html body .obj_article_details .authors .name {
  font-weight: 700;
}

html body .obj_article_details .authors .affiliation {
  color: var(--ih-muted);
  font-size: 14px;
}

html body .obj_article_details .item.doi a,
html body .obj_article_details .item.keywords .value {
  color: var(--ih-green);
}

/* Arabic text (hadith matn, Qur'anic verses): Amiri, right to left */
html body [dir="rtl"],
html body [dir="rtl"] *,
html body :lang(ar),
html body .arabic {
  font-family: var(--ih-font-arabic) !important;
}

html body [dir="rtl"],
html body .arabic {
  font-size: 1.15em;
  line-height: 2;
  text-align: right;
}

/* ---------- 8. Forms and buttons ---------- */
html body .pkp_button,
html body .cmp_button,
html body button.submit,
html body input[type="submit"] {
  color: #FFFFFF;
  background: var(--ih-green-dark);
  border: 1px solid var(--ih-green-dark);
  border-radius: var(--ih-radius);
  box-shadow: none;
  font-weight: 600;
}

html body .pkp_button:hover,
html body .pkp_button:focus,
html body .cmp_button:hover,
html body .cmp_button:focus,
html body button.submit:hover,
html body input[type="submit"]:hover {
  color: var(--ih-green-deep);
  background: var(--ih-gold);
  border-color: var(--ih-gold);
}

html body .pkp_button_link,
html body .cmp_button_wire {
  color: var(--ih-green-dark);
  border-color: var(--ih-green-dark);
}

html body input[type="text"],
html body input[type="email"],
html body input[type="password"],
html body input[type="search"],
html body select,
html body textarea {
  border: 1px solid var(--ih-line);
  border-radius: var(--ih-radius);
}

html body input[type="text"]:focus,
html body input[type="email"]:focus,
html body input[type="password"]:focus,
html body input[type="search"]:focus,
html body select:focus,
html body textarea:focus {
  border-color: var(--ih-gold);
  box-shadow: 0 0 0 3px rgba(201, 161, 59, 0.25);
  outline: 0;
}

html body .cmp_notification {
  background: var(--ih-gold-soft);
  border-left: 4px solid var(--ih-gold);
}

/* ---------- 9. Sidebar ---------- */
html body .pkp_structure_sidebar {
  background: transparent;
  border: 0;
}

html body .pkp_structure_sidebar .pkp_block {
  margin: 0 0 22px;
  padding: 0;
  font-size: 15px;
}

/* Built-in block titles (Information, Language, Latest publications, ...) */
html body .pkp_structure_sidebar .pkp_block .title {
  display: block;
  margin: 0;
  padding: 10px 14px;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--ih-green-deep) 0%, var(--ih-green) 100%);
  border-bottom: 3px solid var(--ih-gold);
  border-radius: var(--ih-radius) var(--ih-radius) 0 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

html body .pkp_structure_sidebar .pkp_block .title.pkp_screen_reader {
  display: none;
}

html body .pkp_structure_sidebar .pkp_block .title:not(.pkp_screen_reader) + .content {
  padding: 10px 14px;
  background: var(--ih-paper);
  border: 1px solid var(--ih-line);
  border-top: 0;
  border-radius: 0 0 var(--ih-radius) var(--ih-radius);
}

html body .pkp_structure_sidebar .pkp_block .content ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--ih-line-soft);
}

html body .pkp_structure_sidebar .pkp_block .content ul li:last-child {
  border-bottom: 0;
}

html body .pkp_structure_sidebar .pkp_block .content a {
  color: var(--ih-green-dark);
}

html body .pkp_structure_sidebar .pkp_block .content a:hover {
  color: var(--ih-wood);
}

html body .pkp_structure_sidebar .pkp_block img {
  max-width: 100%;
  height: auto;
}

/* The sidebar blocks set their own font inline (Segoe UI / Arial);
   they switch to Aptos as well */
html body .pkp_structure_sidebar [style*="font-family"],
html body .pkp_footer_content [style*="font-family"] {
  font-family: var(--ih-font) !important;
}

html body .pkp_structure_sidebar .sidebar-block {
  margin-bottom: 0 !important;
}

/* Menu items: rows with and without links */
html body .pkp_structure_sidebar .jeds_menu_item,
html body .pkp_structure_sidebar .menu_item {
  margin: 0 !important;
  border-bottom: 1px solid var(--ih-line-soft) !important;
}

html body .pkp_structure_sidebar .jeds_menu_item:last-child,
html body .pkp_structure_sidebar .menu_item:last-child {
  border-bottom: 0 !important;
}

html body .pkp_structure_sidebar .jeds_menu_item:not(:has(a)),
html body .pkp_structure_sidebar .menu_item:not(:has(a)) {
  padding: 8px 14px;
  color: var(--ih-green-dark);
  background: var(--ih-paper);
  border-left: 3px solid var(--ih-line) !important;
  font-size: 14px;
  line-height: 1.4;
}

html body .pkp_structure_sidebar .jeds_menu_item a,
html body .pkp_structure_sidebar .menu_item a {
  display: block;
  padding: 8px 14px;
  color: var(--ih-green-dark);
  background: var(--ih-paper);
  border-left: 3px solid var(--ih-gold);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

html body .pkp_structure_sidebar .jeds_menu_item a:hover,
html body .pkp_structure_sidebar .jeds_menu_item a:focus,
html body .pkp_structure_sidebar .menu_item a:hover,
html body .pkp_structure_sidebar .menu_item a:focus {
  color: #FFFFFF;
  background: var(--ih-green);
  border-left-color: var(--ih-gold-light);
}

html body .pkp_structure_sidebar .menu_item em.fa,
html body .pkp_structure_sidebar .menu_item .fa {
  width: 18px;
  margin-right: 6px;
  color: var(--ih-gold-dark);
  text-align: center;
}

html body .pkp_structure_sidebar .menu_item a:hover .fa {
  color: var(--ih-gold-light);
}

/* "Make a Submission" button */
html body .block_make_submission .content a,
html body .block_make_submission a.block_make_submission_link {
  display: block;
  padding: 13px 16px;
  color: var(--ih-green-deep) !important;
  background: linear-gradient(180deg, var(--ih-gold-light) 0%, var(--ih-gold) 100%);
  border: 0;
  border-bottom: 3px solid var(--ih-gold-dark);
  border-radius: var(--ih-radius);
  box-shadow: var(--ih-shadow);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}

html body .block_make_submission .content a:hover,
html body .block_make_submission .content a:focus {
  color: #FFFFFF !important;
  background: var(--ih-green);
  border-bottom-color: var(--ih-gold);
  box-shadow: var(--ih-shadow-hover);
  transform: translateY(-2px);
}

/* ---------- 10. Footer ---------- */
/* The Ihyaussunnah footer HTML is a dark green box with inline styles;
   the wrapper takes the same colour so the box runs edge to edge */
body .pkp_structure_footer_wrapper {
  background: var(--ih-green-deep);
  border-top: 0;
  color: #E6EFEA;
}

body .pkp_structure_footer_wrapper::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--ih-teal) 0%, #7FD1A4 50%, var(--ih-lime) 100%);
}

body .pkp_structure_footer {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
}

body .pkp_footer_content {
  padding: 0 !important;
}

body .pkp_footer_content > .footer[style] {
  margin: 0;
  padding: 30px 28px 20px !important;
  background: linear-gradient(180deg, #0F3B2E 0%, var(--ih-green-deep) 100%) !important;
  border-radius: 0 !important;
}

/* The theme gives every .row an empty :before/:after box; inside the
   flex row of the footer that box pushed the first column inwards */
body .pkp_footer_content .footer .row:before,
body .pkp_footer_content .footer .row:after {
  display: none !important;
}

body .pkp_footer_content .footer h4[style] {
  border-bottom-color: var(--ih-gold) !important;
}

body .pkp_footer_content .footer a:hover,
body .pkp_footer_content .footer a:focus {
  color: var(--ih-gold-light) !important;
}

/* Hide the "Platform & workflow by OJS/PKP" logo */
body .pkp_brand_footer {
  display: none !important;
}


/* ---------- 11. Editorial team and static pages ---------- */
.editor-section {
  max-width: 1000px;
  margin: 24px auto;
  padding: 20px;
  background: var(--ih-paper);
  border-radius: var(--ih-radius-lg);
  box-shadow: var(--ih-shadow);
}

.section-title {
  margin-bottom: 24px;
  padding-bottom: 8px;
  color: var(--ih-green-dark);
  border-bottom: 2px solid var(--ih-gold);
  font-size: 24px;
  font-weight: 700;
}

.editor-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--ih-paper);
  border: 1px solid var(--ih-line-soft);
  border-left: 4px solid var(--ih-gold);
  border-radius: var(--ih-radius-lg);
}

.editor-photo img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 3px solid var(--ih-gold);
  border-radius: 50%;
}

.editor-info {
  flex: 1;
  min-width: 250px;
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1024px) {
  html body .pkp_structure_page {
    width: calc(100% - 24px) !important;
    margin: 12px auto 20px !important;
  }
}

@media (max-width: 991.98px) {
  html body .pkp_head_wrapper,
  html body .pkp_site_name_wrapper {
    height: auto !important;
  }

  html body .pkp_site_nav_toggle {
    top: 8px;
    left: 8px;
    z-index: 6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }

  html body .pkp_navigation_primary > li > a {
    color: var(--ih-cream) !important;
  }

  html body .pkp_navigation_user > li > a {
    margin: 6px 0;
  }
}

@media (max-width: 576px) {
  html body {
    font-size: 15px;
  }

  html body .pkp_structure_page {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0;
  }

  body .pkp_footer_content > .footer[style] {
    padding: 24px 14px 16px !important;
  }

  html body footer.footer .container {
    padding: 24px 14px 10px !important;
  }

  html body .pkp_structure_content {
    padding: 20px 14px 40px !important;
  }

  html body.pkp_page_index .homepage_about > p {
    margin-left: 14px !important;
    margin-right: 14px !important;
  }

  html body .obj_article_summary:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}

@media print {
  html body .pkp_structure_sidebar,
  html body .pkp_navigation_primary_wrapper {
    display: none !important;
  }
}
