﻿/* ============================================================
   HALAQAH: Journal of Education and Management
   Theme CSS for OJS custom header, sidebar, footer, and pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --hs-primary: #2B4FA8;
  --hs-primary-dark: #1A2050;
  --hs-primary-hover: #3D63C4;
  --hs-accent: #5B7EC8;
  --hs-accent-light: #C5D3F0;
  --hs-accent-warm: #8A9ABF;
  --hs-gold: #E9C46A;
  --hs-bg: #F5F7FC;
  --hs-soft-bg: #EAEEf8;
  --hs-white: #FFFFFF;
  --hs-border: #D0D9F0;
  --hs-text: #1A2050;
  --hs-muted: #5A6A9A;
  --hs-light-text: #8A9BBD;
  --hs-font-body: 'Plus Jakarta Sans', sans-serif;
  --hs-font-head: 'Plus Jakarta Sans', sans-serif;
  --hs-font-serif: 'Lora', serif;
  --hs-radius: 10px;
  --hs-radius-sm: 6px;
  --hs-radius-lg: 16px;
  --hs-shadow-sm: 0 1px 4px rgba(43,79,168,0.08);
  --hs-shadow-md: 0 4px 16px rgba(43,79,168,0.13);
  --hs-shadow-lg: 0 8px 32px rgba(43,79,168,0.16);
  --hs-topbar-h: 38px;
  --hs-header-h: 72px;
  --hs-container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--hs-font-body);
  background: var(--hs-bg);
  color: var(--hs-text);
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.pkp_head_wrapper,
.pkp_site_name_wrapper,
.pkp_site_nav_menu,
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper,
.pkp_navigation_user_wrapper,
.pkp_navigation_user,
#navigationPrimary,
#navigationUser,
header#headerNavigationContainer,
.pkp_structure_head,
.pkp_site_name,
.pkp_structure_footer,
.pkp_structure_footer_wrapper,
.pkp_footer_content,
.pkp_brand_footer {
  display: none !important;
}

.hs-topbar,
.hs-header,
.hs-sidebar,
.hs-footer,
.et-wrapper {
  font-family: var(--hs-font-body);
}

/* ===== TOPBAR ===== */
.hs-topbar {
  background: var(--hs-primary-dark);
  color: rgba(255,255,255,0.84);
  font-size: 11.5px;
  min-height: var(--hs-topbar-h);
  position: relative;
  z-index: 100;
}
.hs-topbar-inner {
  max-width: var(--hs-container);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--hs-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.hs-topbar-left,
.hs-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hs-topbar-left a,
.hs-topbar-right a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: color .2s, background .2s;
}
.hs-topbar-left a:hover { color: var(--hs-gold); }
.hs-topbar-sep { color: rgba(255,255,255,0.25); }
.hs-btn-login {
  font-size: 11.5px;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 20px;
}
.hs-btn-login:hover { background: rgba(255,255,255,0.1); color: #fff; }
.hs-btn-register {
  font-size: 11.5px;
  color: var(--hs-primary-dark) !important;
  padding: 4px 12px;
  background: var(--hs-gold);
  border-radius: 20px;
  font-weight: 700;
}
.hs-btn-register:hover { background: #f0d070; }

/* ===== HEADER ===== */
.hs-header {
  background: var(--hs-white);
  border-bottom: 2px solid var(--hs-accent-light);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: var(--hs-shadow-md);
}
.hs-header-inner {
  max-width: var(--hs-container);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--hs-header-h);
  display: flex;
  align-items: center;
  gap: 22px;
}
.hs-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.hs-logo {
  height: 52px;
  width: auto;
  display: block;
}
.hs-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
}
.hs-nav-item { 
  position: relative; 
}
.hs-nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hs-text);
  text-decoration: none;
  border-radius: var(--hs-radius-sm);
  transition: all .2s;
  white-space: nowrap;
  position: relative;
  z-index: 201;
}
.hs-nav-link:hover,
.hs-nav-link--active {
  color: var(--hs-primary);
  background: var(--hs-soft-bg);
}
.hs-nav-link svg { flex-shrink: 0; }
.hs-nav-item:hover > .hs-nav-link .hs-chevron { transform: rotate(180deg); }
.hs-chevron { transition: transform .2s; }

/* ===== DROPDOWN FIX - UPDATE ===== */
.hs-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--hs-white);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  box-shadow: var(--hs-shadow-lg);
  padding: 12px 6px 8px 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.hs-nav-item:hover .hs-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.hs-dropdown:hover {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.hs-nav-item::after {
  content: '';
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  width: 100%;
  height: 16px;
  background: transparent;
  z-index: 199;
}
/* ===== END DROPDOWN FIX ===== */

.hs-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--hs-text);
  text-decoration: none;
  border-radius: var(--hs-radius-sm);
  font-weight: 500;
  transition: all .18s;
}
.hs-dropdown-item:hover { background: var(--hs-soft-bg); color: var(--hs-primary); }
.hs-dropdown-item svg { flex-shrink: 0; color: var(--hs-accent); }
.hs-submit-link {
  color: #fff !important;
  background: linear-gradient(135deg, var(--hs-primary-hover), var(--hs-primary-dark));
  border-radius: 8px;
  padding: 8px 16px;
}
.hs-submit-link:hover { background: linear-gradient(135deg, var(--hs-primary), var(--hs-primary-dark)); }
.hs-search-wrap { margin-left: auto; }
.hs-search-form {
  display: flex;
  align-items: center;
  background: var(--hs-soft-bg);
  border: 1.5px solid var(--hs-border);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.hs-search-form:focus-within {
  border-color: var(--hs-primary-hover);
  box-shadow: 0 0 0 3px rgba(43,79,168,.15);
}
.hs-search-input {
  border: none;
  background: transparent;
  padding: 7px 14px;
  font-size: 12.5px;
  font-family: var(--hs-font-body);
  color: var(--hs-text);
  width: 190px;
  outline: none;
}
.hs-search-input::placeholder { color: var(--hs-light-text); }
.hs-search-btn {
  background: var(--hs-primary);
  border: none;
  padding: 0 14px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  color: #fff;
}
.hs-search-btn:hover { background: var(--hs-primary-dark); }

/* ===== SIDEBAR ===== */
.hs-sidebar { display: flex; flex-direction: column; gap: 14px; }
.hs-sb-block {
  background: var(--hs-white);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  overflow: hidden;
  box-shadow: var(--hs-shadow-sm);
}
.hs-sb-head {
  background: linear-gradient(135deg, var(--hs-primary) 0%, var(--hs-primary-hover) 100%);
  padding: 11px 16px;
}
.hs-sb-head h3 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hs-sb-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 12.5px;
  color: var(--hs-text);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--hs-border);
  transition: all .18s;
}
.hs-sb-nav-item:last-child { border-bottom: none; }
.hs-sb-nav-item:hover { background: var(--hs-soft-bg); color: var(--hs-primary); padding-left: 20px; }
.hs-sb-subnav { background: var(--hs-bg); padding: 4px 0; }
.hs-sb-subnav-item {
  display: block;
  padding: 7px 26px;
  font-size: 11.5px;
  color: var(--hs-muted);
  text-decoration: none;
  transition: all .18s;
  border-bottom: 1px solid var(--hs-border);
}
.hs-sb-subnav-item:last-child { border-bottom: none; }
.hs-sb-subnav-item:hover { color: var(--hs-primary); background: var(--hs-soft-bg); }
.hs-template-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--hs-text);
  font-size: 12.5px;
  font-weight: 600;
  transition: background .2s;
}
.hs-template-link:hover { background: var(--hs-soft-bg); }
.hs-template-img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.hs-sb-notice { padding: 14px 16px; }
.hs-sb-notice-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--hs-accent-warm);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.hs-sb-notice-text { font-size: 11.5px; color: var(--hs-muted); line-height: 1.65; margin: 0 0 10px; }
.hs-sb-notice-link {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: var(--hs-primary);
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: background .2s;
}
.hs-sb-notice-link:hover { background: var(--hs-primary-dark); }
.hs-sb-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hs-border); }
.hs-sb-stat-item { padding: 14px 16px; text-align: center; border-right: 1px solid var(--hs-border); }
.hs-sb-stat-item:last-child { border-right: none; }
.hs-sb-stat-title { font-size: 20px; font-weight: 800; color: var(--hs-primary); line-height: 1.2; }
.hs-sb-stat-label { font-size: 10px; color: var(--hs-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.hs-sb-info-list { padding: 6px 0; }
.hs-sb-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--hs-border);
  font-size: 12px;
}
.hs-sb-info-row:last-child { border-bottom: none; }
.hs-sb-info-lbl { color: var(--hs-muted); flex-shrink: 0; width: 80px; font-weight: 500; }
.hs-sb-info-val { color: var(--hs-text); font-weight: 600; }
.hs-sb-issn-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: var(--hs-soft-bg);
  border-top: 1px solid var(--hs-border);
}
.hs-issn {
  font-size: 11px;
  font-weight: 700;
  color: var(--hs-primary);
  background: var(--hs-white);
  border: 1px solid var(--hs-border);
  padding: 3px 8px;
  border-radius: 4px;
}
.hs-sb-indexed-body { padding: 8px 0; }
.hs-sb-indexed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  font-size: 12px;
  color: var(--hs-text);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--hs-border);
  transition: background .18s;
}
.hs-sb-indexed-item:last-child { border-bottom: none; }
.hs-sb-indexed-item:hover { background: var(--hs-soft-bg); }
.hs-indexed-status {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #2B4FA8;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hs-sb-cta {
  padding: 18px 16px;
  text-align: center;
  background: linear-gradient(135deg, var(--hs-primary) 0%, var(--hs-primary-dark) 100%);
}
.hs-sb-cta-title { font-size: 14px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.hs-sb-cta-desc { font-size: 11.5px; color: rgba(255,255,255,0.78); margin: 0 0 14px; line-height: 1.55; }
.hs-sb-cta-btn {
  display: inline-block;
  background: var(--hs-gold);
  color: var(--hs-primary-dark);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 24px;
  text-decoration: none;
  transition: all .2s;
}
.hs-sb-cta-btn:hover { background: #f0d070; transform: translateY(-1px); }

/* ===== FOOTER ===== */
.hs-footer {
  background: var(--hs-primary-dark);
  color: rgba(255,255,255,0.8);
  margin-top: 48px;
  border-top: 3px solid var(--hs-primary-hover);
}
.hs-footer-inner {
  max-width: var(--hs-container);
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 40px;
}
.hs-footer-logo {
  height: 50px;
  width: auto;
  display: block;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}
.hs-footer-desc { font-size: 12px; color: rgba(255,255,255,0.68); line-height: 1.75; margin: 0 0 14px; }
.hs-footer-issn-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.hs-footer-col-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hs-gold);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hs-footer-links { list-style: none; padding: 0; margin: 0; }
.hs-footer-links li { margin-bottom: 8px; }
.hs-footer-links a {
  font-size: 12.5px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.hs-footer-links a:hover { color: var(--hs-gold); }
.hs-footer-address { font-size: 12px; color: rgba(255,255,255,0.68); line-height: 1.7; }
.hs-footer-address a { color: rgba(255,255,255,0.72); text-decoration: none; transition: color .2s; }
.hs-footer-address a:hover { color: var(--hs-gold); }
.hs-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 14px 24px;
  max-width: var(--hs-container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: rgba(255,255,255,0.52);
  flex-wrap: wrap;
  gap: 8px;
}
.hs-footer-bottom a { color: rgba(255,255,255,0.68); text-decoration: none; }
.hs-footer-bottom a:hover { color: var(--hs-gold); }

/* ===== EDITORIAL TEAM PAGE ===== */
.et-wrapper { max-width: 900px; margin: 0 auto; padding: 24px 0 48px; font-family: var(--hs-font-body); }
.et-page-hero {
  background: linear-gradient(135deg, var(--hs-primary) 0%, var(--hs-primary-hover) 60%, var(--hs-accent) 100%);
  border-radius: var(--hs-radius-lg);
  padding: 40px 36px;
  margin-bottom: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.et-hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--hs-gold);
  text-transform: uppercase;
  letter-spacing: .1em;
  background: rgba(255,255,255,.12);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.et-hero-title { font-family: var(--hs-font-serif); font-size: 26px; font-weight: 600; color: #fff; margin: 0 0 12px; line-height: 1.35; }
.et-hero-title em { font-style: italic; color: var(--hs-gold); }
.et-hero-desc { font-size: 13.5px; color: rgba(255,255,255,0.8); line-height: 1.7; max-width: 620px; margin: 0 auto; }
.et-section { margin-bottom: 28px; }
.et-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; border-bottom: 2px solid var(--hs-border); padding-bottom: 10px; }
.et-section-ornament { width: 28px; height: 28px; background: var(--hs-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.et-section-title { font-family: var(--hs-font-head); font-size: 17px; font-weight: 700; color: var(--hs-primary); margin: 0; }
.et-chief-card { background: var(--hs-white); border: 1.5px solid var(--hs-accent-light); border-left: 5px solid var(--hs-primary); border-radius: var(--hs-radius); overflow: hidden; display: flex; align-items: stretch; min-height: 240px; box-shadow: var(--hs-shadow-sm); }
.et-chief-avatar { width: 262px; min-width: 180px; min-height: 240px; background: var(--hs-soft-bg); overflow: hidden; display: flex; align-self: stretch; flex-shrink: 0; }
.et-chief-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.et-chief-detail { padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; }
.et-chief-name { font-size: 16px; font-weight: 700; color: var(--hs-primary); margin: 0 0 3px; }
.et-chief-affil { font-size: 12.5px; color: var(--hs-muted); margin: 0 0 10px; }
.et-chief-bio { font-size: 13px; color: var(--hs-text); line-height: 1.7; margin: 0 0 12px; }
.et-chief-links { display: flex; gap: 8px; flex-wrap: wrap; }
.et-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--hs-primary); background: var(--hs-soft-bg); border: 1px solid var(--hs-border); padding: 4px 12px; border-radius: 20px; text-decoration: none; transition: all .2s; }
.et-chip:hover { background: var(--hs-primary); color: #fff; border-color: var(--hs-primary); }
.et-board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.et-member-card { background: var(--hs-white); border: 1px solid var(--hs-border); border-radius: var(--hs-radius); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--hs-shadow-sm); transition: box-shadow .2s, transform .2s; }
.et-member-card:hover { box-shadow: var(--hs-shadow-md); transform: translateY(-2px); }
.et-member-avatar { width: 100%; height: 262px; background: var(--hs-soft-bg); overflow: hidden; display: block; flex-shrink: 0; }
.et-member-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .3s ease; }
.et-member-card:hover .et-member-avatar img { transform: scale(1.04); }
.et-member-top { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 0; margin-bottom: 6px; }
.et-member-name { font-size: 13px; font-weight: 700; color: var(--hs-primary); margin: 0; }
.et-member-role { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--hs-primary); background: rgba(43,79,168,.1); padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: .04em; align-self: flex-start; }
.et-member-affil { font-size: 11.5px; color: var(--hs-muted); line-height: 1.55; padding: 0 14px; margin: 0 0 4px; }
.et-member-links { display: flex; gap: 8px; margin: auto 0 0; padding: 10px 14px 12px; border-top: 1px solid var(--hs-border); }
.et-member-link { font-size: 11px; font-weight: 600; color: var(--hs-primary); background: var(--hs-soft-bg); border: 1px solid var(--hs-border); padding: 3px 10px; border-radius: 12px; text-decoration: none; transition: all .18s; }
.et-member-link:hover { background: var(--hs-primary); color: #fff; }

.hs-container { max-width: var(--hs-container); margin: 0 auto; padding: 0 20px; }

@media (max-width: 980px) {
  .hs-header-inner { flex-wrap: wrap; height: auto; padding: 12px 18px; gap: 12px; }
  .hs-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .hs-search-wrap { margin-left: auto; }
  .hs-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hs-topbar-inner { align-items: flex-start; flex-direction: column; padding: 10px 16px; }
  .hs-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hs-footer-bottom { flex-direction: column; text-align: center; }
  .hs-search-input { width: 140px; }
  .et-chief-card { flex-direction: column; }
  .et-chief-avatar { width: 100%; min-width: unset; height: 220px; }
  .et-board-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .hs-header-inner { align-items: stretch; }
  .hs-brand { justify-content: center; }
  .hs-logo { max-width: 100%; height: auto; max-height: 54px; }
  .hs-nav { display: none; }
  .hs-search-wrap { margin-left: 0; width: 100%; }
  .hs-search-form { width: 100%; }
  .hs-search-input { flex: 1; width: auto; }
  .et-board-grid { grid-template-columns: 1fr; }
}