/* =====================================================
   JQLSE - Complete Premium OJS Journal Style Sheet
   Journal of Qur’anic Legal Studies and Exegesis
   Theme: Dark Grey, Gold, Academic Elegant
   Purpose: Full OJS styling, homepage banner header, sidebar blocks,
            justified text, tables, buttons, footer, and mobile optimization.
   ===================================================== */


/* =====================================================
   1. GLOBAL TYPOGRAPHY & PAGE BACKGROUND
   ===================================================== */

body {
  font-family: Georgia, Garamond, "Times New Roman", serif;
  background: #f3f3f1;
  color: #263238;
  line-height: 1.75;
}

/* Main text justified */
p,
.pkp_structure_main p,
.additional_content p,
.page_about p,
.page_article p,
.item.abstract,
.item.description,
.obj_article_summary,
.cmp_notification {
  text-align: justify !important;
}

/* Links */
a {
  color: #8a6a20;
  text-decoration: none;
}

a:hover {
  color: #b08d57;
  text-decoration: underline;
}


/* =====================================================
   2. HEADER AREA
   ===================================================== */

.pkp_structure_head {
  background: linear-gradient(135deg, #151515, #2b2b2b, #b08d57);
  border-bottom: 5px solid #d6b56d;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.pkp_head_wrapper {
  padding-top: 18px;
}

.pkp_site_name_wrapper {
  text-align: center;
  padding: 18px 10px;
}

.pkp_site_name,
.pkp_site_name_wrapper {
  background: transparent;
}

.pkp_site_name .is_text {
  color: #ffffff !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 26px;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.pkp_site_name .is_text:hover {
  color: #f7ead0 !important;
  text-decoration: none;
}


/* =====================================================
   3. NAVIGATION MENU
   ===================================================== */

.pkp_navigation_primary_row {
  background: rgba(20,20,20,0.94);
  border-top: 1px solid rgba(214,181,109,0.35);
  border-bottom: 3px solid #d6b56d;
}

.pkp_navigation_primary > li > a,
.pkp_navigation_user > li > a,
.pkp_search {
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_user > li > a:hover,
.pkp_search:hover {
  color: #d6b56d !important;
  text-decoration: none;
}

/* Dropdown */
.pkp_navigation_primary ul {
  background: #2a2a2a;
  border: 1px solid #444;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.pkp_navigation_primary ul a {
  color: #ffffff !important;
}

.pkp_navigation_primary ul a:hover {
  color: #d6b56d !important;
  background: #1e1e1e;
}


/* =====================================================
   4. HOMEPAGE IMAGE AS TOP HEADER BANNER
   ===================================================== */

.homepage_image {
  margin: -24px -24px 28px -24px !important;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  border-bottom: 5px solid #d6b56d;
  background: #1e1e1e;
}

.homepage_image img {
  width: 100% !important;
  height: auto !important;
  max-height: 360px;
  object-fit: cover;
  display: block;
}


/* =====================================================
   5. MAIN CONTENT AREA
   ===================================================== */

.pkp_structure_main {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.10);
  border: 1px solid #e1e1e1;
}

.page_index_journal {
  margin-top: 0;
}

.page_title,
h1.page_title {
  border-bottom: 4px solid #b08d57;
  padding-bottom: 10px;
  color: #2f3437;
  font-weight: 800;
}

h1, h2, h3, h4 {
  color: #2f3437;
  font-weight: 800;
}


/* =====================================================
   6. ADDITIONAL CONTENT / HOMEPAGE JOURNAL PROFILE
   ===================================================== */

.additional_content {
  background: #ffffff;
  border-radius: 18px;
}

.additional_content h3,
.additional_content h4 {
  color: #2f3437 !important;
  font-weight: 800;
}

.additional_content table {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.additional_content table td {
  font-size: 13px;
  line-height: 1.6;
}

.additional_content img {
  border-radius: 10px;
}

.additional_content em {
  color: inherit;
}


/* =====================================================
   7. ARTICLE LIST / ISSUE DISPLAY
   ===================================================== */

.obj_article_summary {
  padding: 18px 0;
  border-bottom: 1px solid #ddd;
}

.obj_article_summary .title a {
  color: #2f3437;
  font-weight: 800;
}

.obj_article_summary .title a:hover {
  color: #b08d57;
}

.obj_issue_toc .cover img,
.obj_issue_summary .cover img {
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}


/* =====================================================
   8. TABLE DESIGN
   ===================================================== */

table {
  width: 100%;
  border-collapse: collapse;
}

table th {
  background: #2f3437;
  color: #ffffff;
  padding: 9px;
}

table td {
  padding: 8px;
  border: 1px solid #dddddd;
}


/* =====================================================
   9. BUTTONS
   ===================================================== */

.cmp_button,
.cmp_form .buttons button,
.page_search .submit button,
.block_make_submission a,
.block_make_submission_link {
  background: linear-gradient(135deg, #2f3437, #b08d57) !important;
  color: #ffffff !important;
  border-radius: 30px;
  border: none;
  font-weight: 800;
  padding: 10px 18px;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.cmp_button:hover,
.cmp_form .buttons button:hover,
.page_search .submit button:hover,
.block_make_submission a:hover,
.block_make_submission_link:hover {
  background: linear-gradient(135deg, #1e1e1e, #d6b56d) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}


/* =====================================================
   10. SIDEBAR BLOCKS
   ===================================================== */

.pkp_structure_sidebar {
  font-family: Georgia, Garamond, "Times New Roman", serif;
}

.pkp_block {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #3f3f3f;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  margin-bottom: 20px;
  background: #2a2a2a;
}

.pkp_block .title {
  background: linear-gradient(135deg, #1e1e1e, #2f2f2f, #b08d57);
  color: #ffffff;
  padding: 12px 14px;
  border-bottom: 3px solid #d6b56d;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.pkp_block .content {
  background: #2a2a2a;
  padding: 12px;
}

/* Make Submission */
.block_make_submission .content {
  background: #2a2a2a;
  padding: 14px;
}

.block_make_submission_link {
  display: block;
  text-align: center;
}


/* =====================================================
   11. CUSTOM SIDEBAR WIDGET REFINEMENT
   ===================================================== */

/* Menu widget links */
#customblock-menu a {
  transition: all 0.2s ease-in-out;
}

#customblock-menu a:hover {
  color: #d6b56d !important;
  padding-left: 6px;
  text-decoration: none;
}

/* Sidebar images */
.pkp_block img {
  max-width: 100%;
  height: auto;
}

/* Bright white cards inside sidebar widgets */
#customblock-indexing .content div[style*="background: #ffffff"],
#customblock-tools .content div[style*="background: #ffffff"],
#customblock-visitor .content div[style*="background: #ffffff"] {
  border: 1px solid #e6e6e6;
}


/* =====================================================
   12. FORMS, SEARCH, AND INPUTS
   ===================================================== */

input,
select,
textarea {
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  padding: 8px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #b08d57;
  box-shadow: 0 0 0 2px rgba(176,141,87,0.18);
}


/* =====================================================
   13. FOOTER
   ===================================================== */

.pkp_structure_footer_wrapper {
  background: #1e1e1e;
  color: #ffffff;
  border-top: 5px solid #d6b56d;
}

.pkp_structure_footer_wrapper a {
  color: #d6b56d;
}

.pkp_structure_footer_wrapper a:hover {
  color: #f7ead0;
}


/* =====================================================
   14. ACCESSIBILITY / SKIP LINKS
   ===================================================== */

.cmp_skip_to_content a {
  background: #1e1e1e;
  color: #ffffff;
  border: 2px solid #d6b56d;
}


/* =====================================================
   15. MOBILE RESPONSIVE OPTIMIZATION
   ===================================================== */

@media (max-width: 768px) {
  .pkp_site_name .is_text {
    font-size: 18px;
    line-height: 1.35;
  }

  .pkp_head_wrapper {
    padding-top: 10px;
  }

  .pkp_site_name_wrapper {
    padding: 12px 8px;
  }

  .pkp_structure_main {
    padding: 16px;
    border-radius: 12px;
  }

  .homepage_image {
    margin: -16px -16px 22px -16px !important;
    border-radius: 0 0 14px 14px;
  }

  .homepage_image img {
    max-height: 220px;
  }

  p,
  .pkp_structure_main p,
  .additional_content p,
  .page_about p,
  .page_article p {
    text-align: justify !important;
  }

  table td,
  table th {
    font-size: 12px;
    padding: 6px;
  }

  .pkp_block {
    border-radius: 12px;
  }
}


/* =====================================================
   16. SMALL SCREEN TABLE SAFETY
   ===================================================== */

@media (max-width: 520px) {
  table {
    font-size: 12px;
  }

  .additional_content table td {
    font-size: 12px;
  }

  .homepage_image img {
    max-height: 180px;
  }
}
