/* =============================================================
   PilarDNA – Journal of Community Service and Industrial Development
   OJS 3.5 custom homepage stylesheet
   Target journal path: pdna
   Hero intentionally contained so it is not too wide.
   ============================================================= */

:root {
  --pdna-blue-950: #0a3f9d;
  --pdna-blue-900: #0d4eb6;
  --pdna-blue-800: #1563d1;
  --pdna-orange: #ff8b16;
  --pdna-orange-2: #ffa53a;
  --pdna-pink: #ff1989;
  --pdna-bg: #f6f9ff;
  --pdna-card: #ffffff;
  --pdna-text: #253554;
  --pdna-muted: #667997;
  --pdna-line: #dce6f5;
  --pdna-radius: 16px;
  --pdna-shadow: 0 14px 30px rgba(14, 55, 126, .07);
  --pdna-container: 1240px;
}

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

body:has(.pdna-home) .pkp_structure_page,
body:has(.pdna-home) .pkp_structure_content,
body:has(.pdna-home) .pkp_structure_main,
body:has(.pdna-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(.pdna-home) .pkp_structure_head,
body:has(.pdna-home) .pkp_structure_footer,
body:has(.pdna-home) .pkp_structure_footer_wrapper,
body:has(.pdna-home) .pkp_structure_sidebar {
  display: none !important;
}

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

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

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

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

.pdna-header {
  background: #fff;
  box-shadow: 0 8px 24px rgba(10, 42, 103, .06);
  position: relative;
  z-index: 20;
}

.pdna-header-inner {
  max-width: var(--pdna-container);
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
}

.pdna-brand { display: inline-flex; align-items: center; text-decoration: none !important; }
.pdna-brand img {
  display: block;
  width: auto;
  height: 62px;
  max-width: 380px;
  object-fit: contain;
}

.pdna-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--pdna-blue-950);
  white-space: nowrap;
  font-weight: 700;
}

.pdna-lang { display: inline-flex; align-items: center; gap: 8px; }
.pdna-lang a,
.pdna-header-actions a {
  color: var(--pdna-blue-950) !important;
  text-decoration: none !important;
}
.pdna-action-link:hover { color: var(--pdna-orange) !important; }
.pdna-search-link { font-size: 1.55rem; line-height: 1; }

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

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

.pdna-nav-inner a {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #22395e !important;
  text-decoration: none !important;
  font-size: .95rem;
  font-weight: 800;
  white-space: nowrap;
}

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

.pdna-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(--pdna-orange);
}

/* contained hero */
.pdna-hero {
  position: relative;
  width: calc(100% - 40px);
  max-width: 1280px;
  min-height: 332px;
  margin: 18px auto 0;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.94) 28%, rgba(255,255,255,.72) 49%, rgba(255,255,255,.18) 72%, rgba(255,255,255,.08) 100%),
    url('/public/site/pdna-home/pdna-hero-banner.png');
  background-size: cover;
  background-position: center center;
  box-shadow: var(--pdna-shadow);
  border: 1px solid var(--pdna-line);
}

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

.pdna-hero-copy { max-width: 520px; }

.pdna-hero h1 {
  margin: 0;
  color: var(--pdna-blue-950);
  font-size: clamp(4rem, 6vw, 5.2rem);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -.04em;
}
.pdna-hero h1 span { color: var(--pdna-orange); }

.pdna-hero h2 {
  margin: 6px 0 10px;
  color: #163c84;
  font-size: clamp(1.6rem, 2.1vw, 2.25rem);
  line-height: 1.15;
  font-weight: 700;
}

.pdna-hero p {
  margin: 0;
  color: #334a6a;
  font-size: 1.03rem;
  max-width: 500px;
}

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

.pdna-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(10,42,103,.10);
}
.pdna-btn-blue { background: linear-gradient(135deg, var(--pdna-blue-950), var(--pdna-blue-800)); color: #fff !important; }
.pdna-btn-orange { background: linear-gradient(135deg, var(--pdna-orange), var(--pdna-orange-2)); color: #fff !important; }
.pdna-btn:hover { transform: translateY(-1px); }

.pdna-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.pdna-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--pdna-line);
  color: var(--pdna-blue-950);
  font-size: .94rem;
  font-weight: 700;
}

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

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

.pdna-left-col,
.pdna-right-col { display: grid; gap: 18px; align-content: start; }
.pdna-card {
  background: var(--pdna-card);
  border: 1px solid var(--pdna-line);
  border-radius: var(--pdna-radius);
  box-shadow: var(--pdna-shadow);
  padding: 20px 22px;
}

.pdna-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.pdna-section-heading.compact,
.pdna-heading-inline { margin-bottom: 14px; }
.pdna-section-heading.with-action {
  justify-content: space-between;
  gap: 12px;
}
.pdna-section-heading h2 {
  margin: 0;
  color: var(--pdna-blue-950);
  font-size: clamp(1.52rem, 2.25vw, 1.9rem);
  line-height: 1.15;
}
.pdna-title-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pdna-blue-950), var(--pdna-blue-800));
  color: #fff; font-size: 1rem; flex: 0 0 auto;
}
.pdna-mini-link {
  white-space: nowrap;
  text-decoration: none !important;
  color: var(--pdna-blue-950) !important;
  font-weight: 800;
}

.pdna-about-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 180px;
  gap: 14px 18px;
  align-items: center;
}
.pdna-about-card p,
.pdna-small-info-box p,
.pdna-contact-card li,
.pdna-footer-brand p,
.pdna-publisher-block p { margin: 0; color: var(--pdna-text); }
.pdna-about-logo-wrap { text-align: center; }
.pdna-about-logo-wrap img {
  max-width: 130px; width: 100%; height: auto; display: inline-block;
}

.pdna-scope-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.pdna-scope-chips span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: #f2f6fd;
  border: 1px solid var(--pdna-line);
  color: var(--pdna-text);
  font-weight: 700;
}
.pdna-scope-chips span::before {
  content: '●';
  color: var(--pdna-orange);
  margin-right: 10px;
  font-size: .78rem;
}

.pdna-issue-layout {
  display: grid;
  grid-template-columns: 170px minmax(0,1fr);
  gap: 20px;
}
.pdna-issue-cover img {
  width: 100%; display: block; border-radius: 8px;
  border: 1px solid var(--pdna-line); box-shadow: 0 10px 24px rgba(10,42,103,.10);
}

.pdna-issue-intro h3 {
  margin: 0 0 10px; color: var(--pdna-blue-950); font-size: 1.7rem;
}
.pdna-issue-meta { list-style: none; padding: 0; margin: 0 0 14px; }
.pdna-issue-meta li { margin-bottom: 4px; }

.pdna-article-list { display: grid; gap: 0; }
.pdna-article-list article {
  padding: 12px 0; border-top: 1px solid var(--pdna-line);
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center;
}
.pdna-article-list h4 {
  margin: 0 0 4px; color: var(--pdna-blue-950); font-size: 1.05rem; line-height: 1.35;
}
.pdna-article-list p { margin: 0; color: var(--pdna-muted); font-size: .95rem; }
.pdna-article-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pdna-article-actions a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--pdna-line);
  border-radius: 8px; text-decoration: none !important; background: #fff; font-size: .9rem; font-weight: 700;
}
.pdna-article-actions a:nth-child(1),
.pdna-article-actions a:nth-child(2) { color: var(--pdna-blue-900) !important; }
.pdna-article-actions a:nth-child(3) { color: var(--pdna-orange) !important; }
.pdna-article-actions a:hover { background: #f8fbff; }

.pdna-announcement-list { display: grid; gap: 0; }
.pdna-announcement-item {
  display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 16px; align-items: center;
  min-height: 48px; padding: 10px 0; border-top: 1px solid var(--pdna-line);
  text-decoration: none !important; color: var(--pdna-text) !important;
}
.pdna-announcement-item:first-child { border-top: 0; }
.pdna-announcement-item span { font-weight: 600; }
.pdna-announcement-item em { color: var(--pdna-orange); font-style: normal; font-weight: 700; white-space: nowrap; }

.pdna-bottom-box-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px;
}
.pdna-inline-btn {
  margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px;
  border-radius: 9px; border: 1px solid var(--pdna-blue-800); background: #fff; color: var(--pdna-blue-950) !important;
  font-weight: 700; text-decoration: none !important;
}

.pdna-info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pdna-info-list li { color: var(--pdna-text); }
.pdna-info-list strong { color: var(--pdna-blue-950); }

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

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

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

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

.pdna-footer {
  margin-top: 10px;
  background: linear-gradient(180deg, #07327b, #06245c);
  color: #fff;
}

.pdna-footer-inner {
  max-width: var(--pdna-container); margin: 0 auto; padding: 28px 18px 24px;
  display: grid; grid-template-columns: 1.2fr 1.2fr .8fr .9fr; gap: 22px;
}
.pdna-footer-col h3 { margin: 0 0 12px; font-size: 1.15rem; color: #ffd6a2; }
.pdna-footer-brand img { width: 230px; max-width: 100%; height: auto; display: block; margin-bottom: 12px; }
.pdna-publisher-block { display: flex; gap: 12px; align-items: flex-start; }
.pdna-publisher-mark {
  width: 86px; height: 86px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; font-weight: 800; line-height: 1.1; flex: 0 0 auto;
}
.pdna-publisher-block strong { display: block; margin-bottom: 4px; }
.pdna-socials a,
.pdna-footer-links a { color: #fff !important; text-decoration: none !important; font-weight: 700; }
.pdna-socials a:hover,
.pdna-footer-links a:hover { color: #ffd2a6 !important; }

.pdna-footer-bottom {
  max-width: var(--pdna-container); margin: 0 auto; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px 14px; font-size: .95rem;
}

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

@media (max-width: 900px) {
  .pdna-header-inner {
    flex-direction: column; align-items: flex-start; padding-top: 14px; padding-bottom: 14px;
  }
  .pdna-header-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .pdna-hero {
    width: calc(100% - 20px); max-width: none; min-height: 320px; border-radius: 14px;
  }
  .pdna-hero-inner { padding: 28px 18px 20px; }
  .pdna-bottom-box-grid,
  .pdna-footer-inner { grid-template-columns: 1fr; }
  .pdna-about-layout,
  .pdna-issue-layout { grid-template-columns: 1fr; }
  .pdna-issue-cover-block { max-width: 240px; }
  .pdna-scope-chips { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .pdna-announcement-item,
  .pdna-article-list article,
  .pdna-metrics-grid { grid-template-columns: 1fr; }
  .pdna-article-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .pdna-nav-inner { justify-content: flex-start; }
  .pdna-hero h1 { font-size: 3.2rem; }
  .pdna-scope-chips,
  .pdna-indexing-grid { grid-template-columns: 1fr; }
  .pdna-footer-bottom { flex-direction: column; text-align: center; }
}
