/* ======================================================================
   PILLAR MANAGEMENT OJS 3.5 JOURNAL HOMEPAGE
   Target journal path: pman
   Upload as Journal Style Sheet for Pillar Management or Site Style Sheet.
   Required template root class: .pman-home
   Hero is intentionally contained so it does not appear too wide.
   ====================================================================== */

:root {
  --pman-blue-900: #071d4f;
  --pman-blue-800: #0b3375;
  --pman-blue-700: #0f53a4;
  --pman-orange: #f36f16;
  --pman-orange-2: #ff8a21;
  --pman-bg: #f6f8fc;
  --pman-card: #ffffff;
  --pman-text: #14213d;
  --pman-muted: #617089;
  --pman-line: #dce4ef;
  --pman-radius: 16px;
  --pman-shadow: 0 12px 30px rgba(7, 29, 79, .08);
  --pman-container: 1240px;
}

body:has(.pman-home) {
  background: #ffffff !important;
  color: var(--pman-text);
  overflow-x: hidden;
}

body:has(.pman-home) .pkp_structure_page,
body:has(.pman-home) .pkp_structure_content,
body:has(.pman-home) .pkp_structure_main,
body:has(.pman-home) .pkp_structure_body {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body:has(.pman-home) .pkp_structure_head,
body:has(.pman-home) .pkp_structure_footer,
body:has(.pman-home) .pkp_structure_footer_wrapper,
body:has(.pman-home) .pkp_structure_sidebar {
  display: none !important;
}

body:has(.pman-home) .pkp_structure_content::before,
body:has(.pman-home) .pkp_structure_content::after,
body:has(.pman-home) .pkp_structure_main::before,
body:has(.pman-home) .pkp_structure_main::after {
  display: none !important;
  content: none !important;
}

.pman-home,
.pman-home * {
  box-sizing: border-box;
}

.pman-home {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  overflow: hidden;
  background: #fff;
  color: var(--pman-text);
  font-family: "Segoe UI", Inter, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pman-home a { transition: .18s ease; }

.pman-header {
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 29, 79, .06);
  position: relative;
  z-index: 20;
}

.pman-header-inner {
  max-width: var(--pman-container);
  margin: 0 auto;
  min-height: 94px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
}

.pman-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
}

.pman-brand img {
  display: block;
  width: auto;
  height: 70px;
  max-width: 300px;
  object-fit: contain;
}

.pman-header-title-text {
  padding-left: 18px;
  border-left: 2px solid var(--pman-line);
}

.pman-header-title-text h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.1;
  color: var(--pman-blue-900);
}

.pman-header-title-text p {
  margin: 4px 0 0;
  font-size: .98rem;
  color: var(--pman-text);
  font-weight: 600;
}

.pman-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: var(--pman-blue-900);
  white-space: nowrap;
  font-weight: 700;
}

.pman-lang { display: inline-flex; align-items: center; gap: 8px; }
.pman-lang a,
.pman-header-actions a {
  color: var(--pman-blue-900) !important;
  text-decoration: none !important;
}

.pman-action-link:hover { color: var(--pman-orange) !important; }
.pman-search-link { font-size: 1.6rem; line-height: 1; }

.pman-main-nav {
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid var(--pman-line);
  background: rgba(255,255,255,.98);
}

.pman-nav-inner {
  max-width: var(--pman-container);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.pman-nav-inner a {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--pman-blue-900) !important;
  text-decoration: none !important;
  font-size: .95rem;
  font-weight: 800;
  white-space: nowrap;
}

.pman-nav-inner a:hover,
.pman-nav-inner a.is-active { color: var(--pman-orange) !important; }

.pman-nav-inner a.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--pman-orange);
}

/* Contained hero so banner is not too wide */
.pman-hero {
  position: relative;
  width: calc(100% - 40px);
  max-width: 1280px;
  min-height: 372px;
  margin: 18px auto 0;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.92) 36%, rgba(255,255,255,.25) 68%, rgba(255,255,255,.06) 100%),
    url('/public/site/pman-home/hero-pillar-management.png');
  background-size: cover;
  background-position: center right;
  box-shadow: var(--pman-shadow);
}

.pman-hero-inner {
  max-width: var(--pman-container);
  margin: 0 auto;
  padding: 50px 34px 30px;
  position: relative;
  z-index: 2;
}

.pman-hero-copy { max-width: 535px; }

.pman-hero h2 {
  margin: 0;
  color: var(--pman-blue-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.95rem, 5.7vw, 4.9rem);
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.05em;
}

.pman-hero h3 {
  margin: 10px 0 14px;
  color: var(--pman-orange);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.18;
  font-weight: 800;
}

.pman-hero p {
  margin: 0;
  color: var(--pman-text);
  font-size: 1.08rem;
  max-width: 520px;
}

.pman-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 18px;
}

.pman-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: 11px;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 10px 22px rgba(7, 29, 79, .12);
}

.pman-btn-orange { background: linear-gradient(135deg, var(--pman-orange), var(--pman-orange-2)); color: #fff !important; }
.pman-btn-blue { background: linear-gradient(135deg, var(--pman-blue-900), var(--pman-blue-700)); color: #fff !important; }
.pman-btn:hover { transform: translateY(-1px); }

.pman-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pman-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: rgba(255,255,255,.90);
  border: 1px solid #dce5f1;
  color: var(--pman-blue-900);
  font-size: .94rem;
  font-weight: 700;
}

.pman-page {
  max-width: var(--pman-container);
  margin: 18px auto 0;
  padding: 0 18px 34px;
}

.pman-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr);
  gap: 18px;
}

.pman-left-col,
.pman-right-col { display: grid; gap: 18px; align-content: start; }

.pman-card {
  background: var(--pman-card);
  border: 1px solid var(--pman-line);
  border-radius: var(--pman-radius);
  box-shadow: var(--pman-shadow);
  padding: 20px 22px;
}

.pman-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.pman-section-heading.compact { margin-bottom: 14px; }
.pman-section-heading h2 {
  margin: 0;
  color: var(--pman-blue-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  line-height: 1.15;
}
.pman-section-heading.compact h2 { font-size: 1.82rem; }

.pman-title-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef4ff; color: var(--pman-blue-900); font-size: 1rem; flex: 0 0 auto;
}

.pman-about-card p,
.pman-contact-card li,
.pman-footer-brand p,
.pman-publisher-block p {
  margin: 0;
  color: var(--pman-text);
}

.pman-scope-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.pman-scope-list ul { margin: 0; padding-left: 20px; }
.pman-scope-list li { margin: 0 0 6px; }

.pman-issue-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
}

.pman-issue-cover img {
  width: 100%;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--pman-line);
  box-shadow: 0 10px 24px rgba(7, 29, 79, .10);
}

.pman-issue-content h3 {
  margin: 0 0 10px;
  color: var(--pman-blue-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.95rem;
}

.pman-issue-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  color: var(--pman-text);
}
.pman-issue-meta li { margin-bottom: 4px; }

.pman-article-list { display: grid; gap: 14px; }
.pman-article-list article {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--pman-line);
}
.pman-article-no { color: var(--pman-blue-900); font-weight: 900; font-size: 1.1rem; }
.pman-article-list h4 {
  margin: 0 0 4px;
  color: var(--pman-blue-900);
  font-size: 1.1rem;
  line-height: 1.35;
}
.pman-article-list p {
  margin: 0 0 8px;
  color: var(--pman-muted);
  font-size: .95rem;
}

.pman-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pman-article-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--pman-line);
  border-radius: 8px;
  text-decoration: none !important;
  color: var(--pman-text) !important;
  background: #fff;
  font-size: .9rem;
  font-weight: 700;
}
.pman-article-actions a:nth-child(2) { border-color: #fdc99e; color: var(--pman-orange) !important; }
.pman-article-actions a:hover { background: #f8fbff; }

.pman-view-all {
  display: inline-block;
  margin-top: 14px;
  color: var(--pman-orange) !important;
  text-decoration: none !important;
  font-weight: 800;
}

.pman-announcement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pman-announcement-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--pman-line);
}
.pman-announcement-list li:first-child { border-top: 0; padding-top: 0; }
.pman-announcement-list span { color: var(--pman-text); font-weight: 600; }
.pman-announcement-list time { color: var(--pman-muted); white-space: nowrap; }

.pman-info-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.pman-info-card th,
.pman-info-card td {
  padding: 10px 8px;
  border-top: 1px solid var(--pman-line);
  text-align: left;
  vertical-align: top;
}
.pman-info-card tr:first-child th,
.pman-info-card tr:first-child td { border-top: 0; }
.pman-info-card th {
  width: 34%;
  color: var(--pman-blue-900);
  font-weight: 800;
}

.pman-quick-links nav { display: grid; gap: 10px; }
.pman-quick-links a,
.pman-footer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none !important;
  color: var(--pman-blue-900) !important;
  font-weight: 700;
}
.pman-quick-links a span { color: var(--pman-orange); }

.pman-indexing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pman-indexing-grid span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--pman-line);
  border-radius: 10px;
  color: var(--pman-text);
  font-weight: 700;
  background: #fff;
}

.pman-contact-card ul {
  margin: 0;
  padding-left: 18px;
}
.pman-contact-card li + li { margin-top: 8px; }
.pman-contact-card a { color: var(--pman-blue-900) !important; text-decoration: none !important; }

.pman-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
.pman-metrics-grid div {
  border: 1px solid var(--pman-line);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}
.pman-metrics-grid strong {
  display: block;
  color: var(--pman-blue-900);
  font-size: 1.65rem;
  line-height: 1;
}
.pman-metrics-grid span { color: var(--pman-muted); font-size: .9rem; font-weight: 700; }

.pman-footer {
  margin-top: 12px;
  background: linear-gradient(180deg, #0d2f73, #06285e);
  color: #fff;
  border-top: 4px solid var(--pman-orange);
}

.pman-footer-inner {
  max-width: var(--pman-container);
  margin: 0 auto;
  padding: 28px 18px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1.25fr .9fr .9fr;
  gap: 22px;
}

.pman-footer-col h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: #fff;
}

.pman-footer-brand img {
  width: 190px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.pman-publisher-block {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.pman-publisher-block img {
  width: 92px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}
.pman-publisher-block strong { display: block; margin-bottom: 4px; }

.pman-socials,
.pman-footer-links {
  display: grid;
  gap: 10px;
}
.pman-socials a,
.pman-footer-links a {
  text-decoration: none !important;
  color: #fff !important;
  font-weight: 700;
}

.pman-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  padding: 12px 18px;
  font-size: .95rem;
}

@media (max-width: 1100px) {
  .pman-main-grid { grid-template-columns: 1fr; }
  .pman-footer-inner { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .pman-header-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .pman-header-title-text {
    padding-left: 0;
    border-left: 0;
  }
  .pman-header-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .pman-hero {
    width: calc(100% - 20px);
    max-width: none;
    min-height: 320px;
    border-radius: 14px;
    background-position: center center;
  }
  .pman-hero-inner { padding: 36px 18px 22px; }
  .pman-issue-layout { grid-template-columns: 1fr; }
  .pman-issue-cover { max-width: 240px; }
}

@media (max-width: 640px) {
  .pman-nav-inner { justify-content: flex-start; }
  .pman-hero h2 { font-size: 2.5rem; }
  .pman-scope-list,
  .pman-metrics-grid,
  .pman-footer-inner,
  .pman-indexing-grid { grid-template-columns: 1fr; }
  .pman-announcement-list li { flex-direction: column; gap: 2px; }
}
