/* ============================================================
 AL-ISLAM Journal of Islamic Studies — OJS 3.3 Default Theme
 V6: Full-width slimmer Arabic header logo; use 1600x378 PNG.
 IMPORTANT: Upload the horizontal image as Appearance > Setup > Logo.
 Keep "Show the homepage image as header background" UNCHECKED.
 This replaces the previous full-height / cover stylesheet.
 ============================================================ */

/* Palette and typography */
body { background: #FAF8F5; color: #2C2930; font-family: "Open Sans", Arial, sans-serif; }
a { color: #75233E; }
a:hover, a:focus { color: #956B2D; }
.pkp_structure_page { background: #FAF8F5; }

/* The masthead itself and its logo area */
.pkp_structure_head {
  background: #75233E !important;
  background-image: none !important;
  border-bottom: 3px solid #C9A76B;
  min-height: 0 !important;
  height: auto !important;
}
.pkp_head_wrapper { min-height: 0 !important; height: auto !important; }
.pkp_site_name_wrapper {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 auto !important;
  background: none !important;
}
.pkp_site_name {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  text-align: center !important;
  line-height: 0 !important;
}
.pkp_site_name .is_img,
.pkp_site_name .is_img a {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
.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 auto !important;
  object-fit: contain;
}
/* Only hide the fallback text WHEN an image logo is actually present.
   We intentionally do NOT hide .is_text, so a missing image will not
   leave the site without a visible name. */

/* Navigation visually distinct beneath the banner */
.pkp_navigation_primary_wrapper {
  background: #601B34 !important;
  border-top: 2px solid #C9A76B;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.pkp_navigation_primary > li > a,
.pkp_navigation_user > li > a,
.pkp_navigation_search_wrapper a {
  color: #FFFFFF !important;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 600;
}
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_search_wrapper a:hover { color: #EACB90 !important; }

/* Academic content */
.pkp_structure_main { background: #FFFFFF; }
.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3 { color: #601B34; font-family: "Lora", Georgia, serif; }
.pkp_structure_sidebar { background: #FFFFFF; }
.pkp_block .title { color: #75233E; }
.pkp_structure_sidebar img { max-width: 100%; height: auto; }
.pkp_structure_footer_wrapper { background: #601B34; color: #FFFFFF; border-top: 3px solid #C9A76B; }
.pkp_structure_footer_wrapper a { color: #F3D9A7; }

/* Small screens: responsive image, mobile menu preserved */
@media (max-width: 767px) {
  .pkp_site_name_wrapper, .pkp_site_name { width: 100% !important; }
  .pkp_site_name .is_img img { width: 100% !important; max-width: 100% !important; }
  .pkp_head_wrapper { min-height: 0 !important; }
}

/* Keep the image edge-to-edge inside the existing OJS header container.
   Compact height is accomplished by the shorter 1600x378 source image,
   NOT by max-height which shrinks its width. */

/* ============================================================
   AL-ISLAM — CONSTANTIA TYPOGRAPHY ADD-ON
   Added after the complete original V6 stylesheet.
   Changes fonts only: no header, navigation layout, or color edits.
   ============================================================ */

/* Default reading font, including journal descriptions and paragraphs. */
body {
  font-family: Constantia, Georgia, "Times New Roman", serif;
}

/* Academic headings and article titles override V6's earlier Lora. */
.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3,
.pkp_structure_main h4,
.pkp_structure_main .page_title,
.pkp_structure_main .title,
.obj_article_summary .title {
  font-family: Constantia, Georgia, "Times New Roman", serif;
}

/* Interface controls remain easy to scan; preserve V6 navigation styling. */
.pkp_navigation_primary a,
.pkp_navigation_user a,
.pkp_navigation_search_wrapper a,
button,
input,
select,
textarea {
  font-family: Arial, Helvetica, sans-serif;
}


/* ============================================================
   AL-ISLAM — CONSTANTIA FOR SIDEBAR AND BUTTONS
   Font-only override. Keep all Burgundy–Gold colors/layout intact.
   ============================================================ */

/* Sidebar text, including custom HTML blocks with inline Arial. */
.pkp_structure_sidebar,
.pkp_structure_sidebar .pkp_block,
.pkp_structure_sidebar .pkp_block .title,
.pkp_structure_sidebar .pkp_block .content,
.pkp_structure_sidebar .pkp_block .content div,
.pkp_structure_sidebar .pkp_block .content p,
.pkp_structure_sidebar .pkp_block .content a,
.pkp_structure_sidebar .pkp_block .content strong,
.pkp_structure_sidebar .pkp_block .content span {
  font-family: Constantia, Georgia, "Times New Roman", serif !important;
}

/* Buttons and article-download controls, without changing their styling. */
button,
input[type="submit"],
input[type="button"],
.cmp_button,
.obj_galley_link,
.pkp_structure_main .cmp_button,
.pkp_structure_sidebar .pkp_block a[style*="background"] {
  font-family: Constantia, Georgia, "Times New Roman", serif !important;
}
