/* ========================================================
   PCU Graduate School of Education Research Journal Theme
   ======================================================== */

:root {
  --pcu-navy: #0b2545;
  --pcu-navy-light: #133b6b;
  --pcu-gold: #c69214;
  --pcu-gold-hover: #a87b0f;
  --pcu-bg: #f8fafc;
  --pcu-card-bg: #ffffff;
  --pcu-border: #e2e8f0;
  --pcu-text: #1e293b;
  --pcu-muted: #64748b;
  --radius-sm: 6px;
  --radius-md: 10px;
}

/* Base Document */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--pcu-text);
  background-color: var(--pcu-bg);
  line-height: 1.65;
}

/* Header & Navigation Bar */
.pkp_structure_head {
  background: #ffffff;
  border-bottom: 3px solid var(--pcu-gold);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.pkp_site_name .is_text {
  color: var(--pcu-navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pkp_navigation_primary > li > a {
  color: var(--pcu-navy) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
}

.pkp_navigation_primary > li > a:hover {
  color: var(--pcu-gold) !important;
}

/* Article Cards (Table of Contents / Issues) */
.obj_article_summary {
  background-color: var(--pcu-card-bg);
  border: 1px solid var(--pcu-border);
  border-left: 4px solid var(--pcu-navy);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease-in-out;
}

.obj_article_summary:hover {
  border-left-color: var(--pcu-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.08);
}

.obj_article_summary .title a {
  color: var(--pcu-navy);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.obj_article_summary .title a:hover {
  color: var(--pcu-gold);
}

.obj_article_summary .authors {
  color: var(--pcu-muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

/* PDF & Galley Download Buttons */
.obj_galley_link {
  background-color: var(--pcu-gold) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 0.825rem !important;
  letter-spacing: 0.02em;
  padding: 0.45rem 1rem !important;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.obj_galley_link:hover {
  background-color: var(--pcu-gold-hover) !important;
  text-decoration: none;
}

/* Sidebar Widgets */
.pkp_structure_sidebar .block {
  background: var(--pcu-card-bg);
  border: 1px solid var(--pcu-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.pkp_structure_sidebar .title {
  color: var(--pcu-navy);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--pcu-gold);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Journal Issue Header & Details */
.obj_issue_toc .heading {
  color: var(--pcu-navy);
  border-bottom: 1px solid var(--pcu-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Footer */
.pkp_structure_foot {
  background-color: var(--pcu-navy);
  color: #e2e8f0;
  border-top: 4px solid var(--pcu-gold);
  padding: 2.5rem 0;
  margin-top: 3rem;
}

.pkp_structure_foot a {
  color: #fbd38d !important;
}

.pkp_structure_foot a:hover {
  text-decoration: underline;
}


/* PCU GSE — Keep sidebar blocks on the right */

@media (min-width: 992px) {

    /* Main content and sidebar in two columns */
    .pkp_structure_content {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 30px;
        align-items: start;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Main journal content */
    .pkp_structure_main {
        grid-column: 1;
        grid-row: 1;
        width: 100% !important;
        min-width: 0;
        padding: 30px 20px;
        box-sizing: border-box;
    }

    /* Right sidebar */
    .pkp_structure_sidebar {
        grid-column: 2;
        grid-row: 1;
        display: block !important;
        width: 100% !important;
        max-width: 280px;
        margin-top: 30px;
        padding: 0;
        float: none !important;
        box-sizing: border-box;
    }

    /* Sidebar blocks */
    .pkp_structure_sidebar .pkp_block {
        width: 100%;
        margin: 0 0 20px;
        box-sizing: border-box;
    }
}

/* Tablet and mobile: stack naturally */
@media (max-width: 991px) {
    .pkp_structure_content {
        display: flex !important;
        flex-direction: column;
    }

    .pkp_structure_main,
    .pkp_structure_sidebar {
        width: 100% !important;
        max-width: 100%;
        float: none !important;
    }

    .pkp_structure_sidebar {
        margin-top: 20px;
    }
}

/* --- Hero Card Styling --- */
.pcu-hero-card {
  background: linear-gradient(135deg, #0b2545 0%, #133b6b 100%);
  color: #ffffff;
  padding: 2.25rem 2rem;
  border-radius: 10px;
  border-bottom: 4px solid #c69214;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(11, 37, 69, 0.12);
}

.pcu-hero-badge {
  display: inline-block;
  background-color: rgba(198, 146, 20, 0.2);
  color: #fbd38d;
  border: 1px solid #c69214;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.pcu-hero-title {
  color: #ffffff !important;
  font-size: 1.85rem !important;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem 0;
}

.pcu-hero-desc {
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 780px;
  margin-bottom: 1.5rem;
}

.pcu-hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.pcu-btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.pcu-btn-primary {
  background-color: #c69214;
  color: #ffffff !important;
}

.pcu-btn-primary:hover {
  background-color: #a87b0f;
  transform: translateY(-1px);
}

.pcu-btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.pcu-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Hero Key Metrics Strip */
.pcu-hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.metric-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f8fafc;
}

/* --- Sidebar Indexing Widgets --- */
.pcu-sidebar-indexing {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.index-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.index-badge-img {
  max-height: 24px;
  max-width: 100px;
  object-fit: contain;
}

.index-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.index-details {
  display: flex;
  flex-direction: column;
}

.index-details strong {
  font-size: 0.85rem;
  color: #0b2545;
  line-height: 1.2;
}

.index-details span,
.index-meta {
  font-size: 0.75rem;
  color: #64748b;
}

.index-callout {
  background-color: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 3px solid #c69214;
  padding: 0.75rem;
  border-radius: 4px;
}

.callout-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #92400e;
  margin-bottom: 0.25rem;
}

.index-callout p {
  font-size: 0.78rem;
  color: #78350f;
  margin: 0;
  line-height: 1.4;
}

/* --- Galley Button with Download Count Pill --- */
.obj_galley_link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem;
  background-color: var(--pcu-navy, #0b2545) !important;
  color: #ffffff !important;
  padding: 0.35rem 0.5rem 0.35rem 0.85rem !important;
  border-radius: 6px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
}

.obj_galley_link:hover {
  background-color: #133b6b !important;
  border-color: #c69214;
  transform: translateY(-1px);
}

/* Galley Text (e.g., PDF) */
.obj_galley_link .galley-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Download Count Pill Badge */
.obj_galley_link .galley-download-count {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: #c69214; /* PCU gold */
  color: #0b2545;            /* High-contrast dark navy text */
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.obj_galley_link:hover .galley-download-count {
  background-color: #fbd38d;
}

.obj_galley_link .download-icon {
  display: inline-block;
  vertical-align: middle;
}

/* Completely hide all footer elements */
footer,
footer.pkp_structure_foot,
.pkp_structure_foot,
.pkp_brand_footer {
  display: none !important;
}

/* Add bottom padding so content doesn't hit the screen bottom */
.pkp_structure_content {
  margin-bottom: 3rem !important;
  padding-bottom: 2rem !important;
}