/* ===== WARAQAT: JURNAL ILMU-ILMU KEISLAMAN
   OJS 3.4 HOMEPAGE STYLING
   Brand: STAI As-Sunnah (Green + Gold + Dark Gray)
   Typography: Garamond (Latin) + Sakkal Majalla (Arabic)
===== */

/* ===== GLOBAL */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Garamond', 'Georgia', serif;
  color: #333;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

/* ===== HEADER / NAVIGATION */
.pkp_structure_head {
  background: #595959;
  color: #fff;
  padding: 0;
  border-bottom: 4px solid #2d5016;
}

.pkp_site_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.pkp_site_name {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.pkp_site_name .is_img img {
  display: inline-block;
  max-height: 80px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pkp_site_name h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: #fff;
  letter-spacing: 0.5px;
}

.pkp_site_name p {
  font-size: 13px;
  color: #ddd;
  margin: 4px 0 0 0;
  font-style: italic;
}

/* Navigation menu */
.pkp_navigation {
  display: flex;
  gap: 2px;
}

.pkp_navigation a,
.pkp_navigation button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.pkp_navigation a:hover,
.pkp_navigation button:hover {
  background: rgba(45, 80, 22, 0.8);
  color: #fff;
}

.pkp_navigation a.active {
  background: #2d5016;
  border-bottom: 3px solid #c4a857;
  padding-bottom: 9px;
}

/* ===== HERO SECTION */
.pkp_site_header_wrapper {
  background: linear-gradient(135deg, #f5f3f0 0%, #fff9f5 100%);
  padding: 60px 40px;
  text-align: center;
  border-top: 6px solid #2d5016;
}

.pkp_site_header_wrapper h2 {
  font-size: 32px;
  color: #2d5016;
  margin: 0 0 12px 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.pkp_site_header_wrapper p {
  font-size: 16px;
  color: #666;
  margin: 0 0 24px 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== MAIN CONTENT */
.pkp_structure_main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.pkp_structure_content {
  flex: 1;
}

/* ===== ISSUE SECTION / CURRENT ISSUE */
.pkp_journal_current_issue {
  background: #fff;
  border-left: 6px solid #c4a857;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pkp_journal_current_issue h3 {
  font-size: 20px;
  color: #2d5016;
  margin: 0 0 20px 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pkp_issue_heading {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.pkp_issue_published {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
  font-style: italic;
}

/* ===== ARTICLES LIST */
.pkp_article_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pkp_article_list .article {
  padding: 20px 0;
  border-bottom: 1px solid #e8ebef;
  margin-bottom: 20px;
}

.pkp_article_list .article:last-child {
  border-bottom: none;
}

.article h4 {
  font-size: 17px;
  font-weight: 600;
  color: #253b1b;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.article h4 a {
  color: #253b1b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article h4 a:hover {
  color: #c4a857;
  text-decoration: underline;
}

.article .authors {
  font-size: 14px;
  color: #666;
  margin: 8px 0;
  font-style: italic;
}

.article .abstract {
  font-size: 14px;
  color: #555;
  text-align: justify;
  margin: 12px 0;
  line-height: 1.7;
}

.article .meta {
  font-size: 12px;
  color: #999;
  margin-top: 12px;
}

.article .meta span {
  margin-right: 20px;
}

.article .meta a {
  color: #c4a857;
  text-decoration: none;
  font-weight: 600;
}

.article .meta a:hover {
  text-decoration: underline;
}

/* ===== PAGINATION */
.pkp_pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 40px 0;
  list-style: none;
  padding: 0;
}

.pkp_pagination a,
.pkp_pagination span {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  transition: all 0.3s ease;
}

.pkp_pagination a:hover {
  background: #2d5016;
  color: #fff;
  border-color: #2d5016;
}

.pkp_pagination span.current {
  background: #2d5016;
  color: #fff;
  border-color: #2d5016;
  font-weight: 600;
}

/* ===== SIDEBAR */
.pkp_structure_sidebar {
  width: 300px;
}

.sidebar {
  background: #fff;
  border-left: 4px solid #c4a857;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.sidebar h4 {
  font-size: 16px;
  color: #2d5016;
  margin: 0 0 16px 0;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar ul li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar a {
  color: #333;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.sidebar a:hover {
  color: #c4a857;
  font-weight: 600;
}

.sidebar form,
.sidebar .search {
  margin: 16px 0 0 0;
}

/* ===== FOOTER */
.pkp_structure_footer_wrapper {
  background: #e8ebef;
  border-top: 4px solid #2d5016;
  padding: 40px;
  margin-top: 60px;
}

.pkp_footer_content {
  float: left;
  width: 50%;
  padding-bottom: 10px;
  max-width: 100%;
}

.pkp_footer_content h4 {
  font-size: 14px;
  color: #333;
  font-weight: 700;
  margin: 0 0 12px 0;
  text-transform: uppercase;
}

.pkp_footer_content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pkp_footer_content a {
  color: #555;
  text-decoration: none;
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.pkp_footer_content a:hover {
  color: #2d5016;
  font-weight: 600;
}

.pkp_brand_footer {
  float: right;
  width: 30%;
  padding-bottom: 10px;
  padding-top: 0;
  text-align: right;
}

.pkp_brand_footer p {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* Clear floats */
.pkp_structure_footer_wrapper::after {
  content: "";
  display: table;
  clear: both;
}

/* ===== ARABIC TEXT SUPPORT */
.article-title-ar,
.author-name-ar,
.abstract-ar,
h2[lang="ar"],
h3[lang="ar"],
h4[lang="ar"],
p[lang="ar"],
div[lang="ar"],
span[lang="ar"] {
  font-family: 'Sakkal Majalla', 'Arial', sans-serif;
  direction: rtl;
  text-align: justify;
  line-height: 1.8;
  font-size: 16px;
  word-spacing: 2px;
}

.article h4.bilingual {
  margin-bottom: 4px;
}

.article h4.bilingual + h4.bilingual {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 15px;
  color: #888;
}

/* Arabic in sidebar */
.sidebar[lang="ar"],
.sidebar h4[lang="ar"] {
  direction: rtl;
  text-align: right;
}

/* ===== RESPONSIVE */
@media (max-width: 1024px) {
  .pkp_structure_main {
    grid-template-columns: 1fr;
  }
  
  .pkp_structure_sidebar {
    width: 100%;
  }
  
  .pkp_site_header {
    padding: 15px 20px;
  }
  
  .pkp_site_header_wrapper {
    padding: 40px 20px;
  }
  
  .pkp_site_header_wrapper h2 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .pkp_site_header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .pkp_navigation {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .pkp_footer_content,
  .pkp_brand_footer {
    float: none;
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
  }
  
  .pkp_structure_main {
    padding: 20px;
  }
  
  .article h4 {
    font-size: 16px;
  }
  
  .sidebar {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .pkp_site_header_wrapper h2 {
    font-size: 20px;
  }
  
  .pkp_navigation a,
  .pkp_navigation button {
    padding: 10px 10px;
    font-size: 12px;
  }
  
  .pkp_structure_main {
    padding: 16px;
  }
  
  .article .abstract {
    font-size: 13px;
  }
}

/* ===== UTILITY CLASSES */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-ar {
  direction: rtl;
  text-align: right;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
