/* 
 * Custom Redesign for ICTE Conference Proceedings 
 * Designed by Antigravity
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-color: #003366; /* Deep Navy */
    --accent-color: #C5A059; /* Gold */
    --text-color: #333333;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* ============================================================
   HEADER REDESIGN – ELT Today style
   Banner image on top (full-width) + navy nav bar below
   ============================================================ */

/* Outer header shell – no background, stacks its children */
.pkp_structure_head {
    background: none !important;
    border-bottom: none !important;
    padding: 0 !important;
    position: sticky;
    top: 0;
    z-index: 200 !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

/* Stack banner above nav bar */
.pkp_head_wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ── BANNER AREA ─────────────────────────────────────────── */

/* Banner: matches journal content container width (OJS default: up to 1160px, centered).
   Image is 1618×398px → height at 1160px wide = 1160×(398/1618) ≈ 285px */
.pkp_site_name_wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
    background:
        url('/public/journals/1/header_banner.png') center center / cover no-repeat;
    height: 285px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 0;
}

/* Mobile hamburger – reposition inside banner */
.pkp_site_nav_toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    color: #fff;
    padding: 6px 10px;
    cursor: pointer;
    z-index: 10;
    display: none; /* shown via media query */
}

/* Hide the text link – the banner image already shows the name */
.pkp_site_name_wrapper .pkp_site_name {
    display: block;
    width: 100%;
    height: 100%;
}

.pkp_site_name_wrapper .pkp_site_name .is_text {
    display: block !important;
    width: 100%;
    height: 285px;
    font-size: 0 !important;
    background: none !important;
    text-indent: -9999px;
}

.pkp_site_name_wrapper .pkp_site_name .is_text::before {
    display: none !important;
}

/* Screen-reader h1 stays invisible but accessible */
.pkp_site_name_wrapper .pkp_screen_reader {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0);
}

/* ── NAVIGATION BAR ──────────────────────────────────────── */
.pkp_site_nav_menu {
    background: var(--primary-color) !important;
    border-bottom: 3px solid var(--accent-color) !important;
    /* Match OJS content container width breakpoints (same as banner above) */
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pkp_site_nav_menu { width: 728px; }
}

@media (min-width: 992px) {
    .pkp_site_nav_menu { width: 952px; }
}

@media (min-width: 1200px) {
    .pkp_site_nav_menu { width: 1160px; }
}

.pkp_navigation_primary_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Reset wrapper that had blur+border-radius */
.pkp_navigation_primary_wrapper {
    background: transparent !important;
    backdrop-filter: none !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Nav links */
.pkp_navigation_primary > li > a {
    color: var(--white) !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    padding: 14px 16px !important;
    display: block;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li.current > a {
    color: var(--accent-color) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Dropdown arrow indicator */
.pkp_navigation_primary > li > ul {
    background: var(--primary-color);
    border-top: 3px solid var(--accent-color);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    min-width: 200px;
}

.pkp_navigation_primary > li > ul li a {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.78rem;
    padding: 10px 18px !important;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: color 0.2s ease;
}

.pkp_navigation_primary > li > ul li a:hover {
    color: var(--accent-color) !important;
    background: rgba(255,255,255,0.06) !important;
}

/* Search link */
.pkp_navigation_search_wrapper {
    margin-left: 8px;
}

.pkp_navigation_search_wrapper .pkp_search {
    color: var(--white) !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    text-decoration: none;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.pkp_navigation_search_wrapper .pkp_search:hover {
    color: var(--accent-color) !important;
}

/* Register / Login row */
.pkp_navigation_user_wrapper {
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pkp_navigation_user_wrapper .pkp_nav_list {
    display: flex;
    justify-content: flex-end;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.pkp_navigation_user_wrapper .pkp_nav_list li a {
    color: rgba(255,255,255,0.75) !important;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 7px 14px !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pkp_navigation_user_wrapper .pkp_nav_list li a:hover {
    color: var(--accent-color) !important;
}

/* Mobile nav */
@media (max-width: 768px) {
    .pkp_site_nav_toggle {
        display: block;
    }
    .pkp_site_name_wrapper {
        height: 80px;
    }
    .pkp_site_name_wrapper .pkp_site_name .is_text {
        height: 80px;
    }
    .pkp_navigation_primary > li > a {
        padding: 12px 14px !important;
        font-size: 0.75rem;
    }
}

/* ============================================================
   HOMEPAGE – banner image now lives in the sticky header.
   Hide the duplicate .homepage_image rendered by OJS template.
   ============================================================ */

body.pkp_page_index .homepage_image {
    display: none;
}

body.pkp_page_index .page_index_journal {
    padding-bottom: 40px;
}

/* Content Area – white card effect WITHOUT left/right padding.
   OJS floats main + sidebar (652+300=952px) inside this container,
   so any horizontal padding shrinks the inner area and breaks the float. */
.pkp_structure_content {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 24px 0 0 !important; /* top only – no left/right to preserve float layout */
    margin-top: 0 !important;
    position: relative;
    z-index: 10;
}

/* Sidebar: add right-side padding so the block card has breathing room */
.pkp_structure_sidebar {
    padding: 0 20px 24px 0 !important;
    box-sizing: border-box;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

/* Buttons */
.pkp_button {
    background-color: var(--primary-color) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.pkp_button:hover {
    background-color: var(--accent-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ============================================================
   UNIVERSAL CONTENT PAGE SYSTEM
   Targets: .pkp_structure_main .page  (all non-homepage pages)
   Covers: guides, submissions, masthead, privacy, contact,
           and acts as base for about/ethics overrides below.
   ============================================================ */

/* Page wrapper – centred readable column */
.pkp_structure_main .page {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 0 64px;
}

/* h1 – page title with gold underline */
.pkp_structure_main .page h1,
.pkp_structure_main .page .page_title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 14px;
    margin-bottom: 28px;
}

/* h2 – section card-strip header */
.pkp_structure_main .page h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    background: #f0f4fa;
    border-left: 5px solid var(--primary-color);
    padding: 12px 18px;
    border-radius: 0 6px 6px 0;
    margin-top: 40px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pkp_structure_main .page h2::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 50%;
    background: var(--accent-color);
    flex-shrink: 0;
}

/* h3 – sub-section with gold left bar */
.pkp_structure_main .page h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 14px;
    margin-top: 28px;
    margin-bottom: 10px;
}

/* h4 – small uppercase label */
.pkp_structure_main .page h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-left: 3px solid var(--accent-color);
    padding-left: 12px;
    margin-top: 28px;
    margin-bottom: 10px;
}

/* Body text */
.pkp_structure_main .page p {
    font-size: 0.925rem;
    line-height: 1.85;
    color: #444;
    margin-bottom: 14px;
}

/* Unordered lists – gold chevron bullets */
.pkp_structure_main .page ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 14px;
}

.pkp_structure_main .page ul li {
    padding: 6px 0 6px 22px;
    position: relative;
    font-size: 0.925rem;
    line-height: 1.75;
    color: #444;
    border-bottom: 1px solid #f0f2f5;
}

.pkp_structure_main .page ul li:last-child {
    border-bottom: none;
}

.pkp_structure_main .page ul li::before {
    content: '›';
    position: absolute;
    left: 4px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.15em;
    line-height: 1.6;
}

/* Nested ul (OJS sometimes emits <ul><ul><li>) */
.pkp_structure_main .page ul ul {
    padding-left: 0;
    margin: 4px 0 0;
}

/* Ordered lists */
.pkp_structure_main .page ol {
    padding-left: 20px;
    margin-bottom: 14px;
}

.pkp_structure_main .page ol li {
    font-size: 0.925rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 6px;
}

/* Bold */
.pkp_structure_main .page strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Links */
.pkp_structure_main .page a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.pkp_structure_main .page a:hover {
    color: var(--accent-color);
}

/* Horizontal rule */
.pkp_structure_main .page hr {
    border: none;
    border-top: 2px solid #eef0f5;
    margin: 32px 0;
}

/* Breadcrumbs */
.pkp_structure_main .cmp_breadcrumbs {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 24px;
    list-style: none;
    padding: 0;
}

.pkp_structure_main .cmp_breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.pkp_structure_main .cmp_breadcrumbs a:hover {
    color: var(--accent-color);
}

.pkp_structure_main .cmp_breadcrumbs .separator {
    margin: 0 6px;
    color: #bbb;
}

/* ---- GUIDES FOR AUTHORS – specific enhancements ----------- */

/* Section h4 headings get more vertical spacing */
body.pkp_page_guides .page h4 {
    margin-top: 36px;
}

/* Download links – style as pill buttons */
body.pkp_page_guides .page a[href*=".docx"],
body.pkp_page_guides .page a[href*="Template"],
body.pkp_page_guides .page a[href*="template"],
body.pkp_page_guides .page a[href*="Form"],
body.pkp_page_guides .page a[href*="form"],
body.pkp_page_guides .page a[href*="Letter"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color);
    color: #fff !important;
    padding: 7px 18px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    margin: 4px 0;
    transition: background 0.2s ease, transform 0.15s ease;
}

body.pkp_page_guides .page a[href*=".docx"]:hover,
body.pkp_page_guides .page a[href*="Template"]:hover,
body.pkp_page_guides .page a[href*="Form"]:hover,
body.pkp_page_guides .page a[href*="Letter"]:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Download icon via ::before */
body.pkp_page_guides .page a[href*=".docx"]::before,
body.pkp_page_guides .page a[href*="Template"]::before,
body.pkp_page_guides .page a[href*="Form"]::before,
body.pkp_page_guides .page a[href*="Letter"]::before {
    content: '↓';
    font-weight: 700;
    font-size: 0.9em;
}

/* ---- SUBMISSIONS – specific enhancements ------------------ */

/* Login/register CTA box */
.pkp_structure_main .page .cmp_notification {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a5298 100%);
    color: rgba(255,255,255,0.92);
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 32px;
    border: none;
}

.pkp_structure_main .page .cmp_notification a {
    color: var(--accent-color) !important;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(197,160,89,0.4);
}

/* Section blocks as cards */
.pkp_structure_main .page .author_guidelines,
.pkp_structure_main .page .submission_checklist,
.pkp_structure_main .page .section_policy,
.pkp_structure_main .page .privacy_statement {
    background: var(--white);
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 18px rgba(0, 51, 102, 0.07);
    padding: 28px 32px;
    margin-bottom: 24px;
    transition: box-shadow 0.25s ease;
}

.pkp_structure_main .page .author_guidelines:hover,
.pkp_structure_main .page .submission_checklist:hover,
.pkp_structure_main .page .section_policy:hover {
    box-shadow: 0 8px 32px rgba(0, 51, 102, 0.13);
}

/* Reset h2 inside submission cards (already in a card, no bg strip needed) */
.pkp_structure_main .page .author_guidelines h2,
.pkp_structure_main .page .submission_checklist h2,
.pkp_structure_main .page .section_policy h2,
.pkp_structure_main .page .privacy_statement h2 {
    background: none;
    border-left: none;
    padding: 0 0 10px;
    margin-top: 0;
    border-bottom: 2px solid #eef0f5;
    display: block;
}

.pkp_structure_main .page .author_guidelines h2::before,
.pkp_structure_main .page .submission_checklist h2::before,
.pkp_structure_main .page .section_policy h2::before,
.pkp_structure_main .page .privacy_statement h2::before {
    display: none;
}

/* ---- CONTACT – specific enhancements ---------------------- */

/* Contact cards */
.page_contact .contact_section {
    display: grid;
    gap: 20px;
}

.page_contact .contact {
    background: var(--white);
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 18px rgba(0, 51, 102, 0.07);
    padding: 28px 32px;
    transition: box-shadow 0.25s ease;
}

.page_contact .contact:hover {
    box-shadow: 0 8px 32px rgba(0, 51, 102, 0.13);
}

/* Contact h2 – reset from universal strip style */
.page_contact .contact h2 {
    background: none !important;
    border-left: none !important;
    padding: 0 0 10px !important;
    margin-top: 0 !important;
    border-bottom: 2px solid #eef0f5;
    font-size: 1.05rem !important;
    display: block !important;
}

.page_contact .contact h2::before {
    display: none !important;
}

.page_contact .contact .name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.page_contact .contact .title {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 4px;
    font-style: italic;
}

.page_contact .contact .affiliation {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 8px;
}

.page_contact .contact .email {
    font-size: 0.875rem;
    margin-top: 10px;
}

.page_contact .contact .email a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1px;
}

.page_contact .contact .email a:hover {
    color: var(--accent-color);
}

/* ---- EDITORIAL MASTHEAD – specific ----------------------- */

.page_masthead h1 {
    margin-bottom: 20px;
}

/* ---- PRIVACY – specific ---------------------------------- */

.page_privacy p {
    background: var(--white);
    border-left: 5px solid var(--accent-color);
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    box-shadow: 0 4px 18px rgba(0, 51, 102, 0.07);
    font-size: 0.95rem !important;
}

/* ============================================================
   ABOUT THE JOURNAL – Section Redesign
   Targets: body.pkp_page_about  (actual OJS body class)
   HTML structure: .page_about > h1 + p + h2 + p... (flat, no .item wrappers)
   ============================================================ */

/* Hero hidden globally; no suppression needed per-page */

/* 2. Give the about page a max-width readable column */
body.pkp_page_about .page_about {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 0 64px;
}

/* 3. Page title (h1) */
body.pkp_page_about .page_about h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--accent-color);
}

/* 4. Intro paragraph(s) directly after h1 */
body.pkp_page_about .page_about > p {
    font-size: 0.975rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 16px;
}

/* 5. Section headings (h2) — styled as card-header strips */
body.pkp_page_about .page_about h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    background: #f0f4fa;
    border-left: 5px solid var(--primary-color);
    padding: 12px 18px;
    border-radius: 0 6px 6px 0;
    margin-top: 40px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Gold dot before each h2 */
body.pkp_page_about .page_about h2::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 50%;
    background: var(--accent-color);
}

/* 6. Body text inside sections */
body.pkp_page_about .page_about h2 ~ p,
body.pkp_page_about .page_about h2 ~ ul,
body.pkp_page_about .page_about h2 ~ ol {
    font-size: 0.925rem;
    line-height: 1.85;
    color: #444;
    margin-bottom: 14px;
}

/* 7. Unordered lists — custom gold bullets */
body.pkp_page_about .page_about ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 14px;
}

body.pkp_page_about .page_about ul li {
    padding: 5px 0 5px 22px;
    position: relative;
    font-size: 0.925rem;
    line-height: 1.75;
    color: #444;
    border-bottom: 1px solid #f0f2f5;
}

body.pkp_page_about .page_about ul li:last-child {
    border-bottom: none;
}

body.pkp_page_about .page_about ul li::before {
    content: '›';
    position: absolute;
    left: 4px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1em;
}

/* 8. Ordered lists */
body.pkp_page_about .page_about ol {
    padding-left: 20px;
    margin-bottom: 14px;
}

body.pkp_page_about .page_about ol li {
    font-size: 0.925rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 6px;
}

/* 9. Strong / bold inside content */
body.pkp_page_about .page_about strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 10. Links inside content */
body.pkp_page_about .page_about a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

body.pkp_page_about .page_about a:hover {
    color: var(--accent-color);
}

/* 11. Breadcrumbs – subtle */
body.pkp_page_about .cmp_breadcrumbs {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 24px;
}

body.pkp_page_about .cmp_breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

/* ============================================================
   ETHICS & MALPRACTICE PAGE
   Targets: body.pkp_page_ethics
   HTML: .page > h1.page_title + p + h3 + h4 + p + ul...
   ============================================================ */

/* Readable column */
body.pkp_page_ethics .page {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 0 64px;
}

/* Page title h1 */
body.pkp_page_ethics .page h1.page_title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    padding-bottom: 16px;
    border-bottom: 3px solid var(--accent-color);
    margin-bottom: 24px;
}

/* Intro paragraphs */
body.pkp_page_ethics .page > p {
    font-size: 0.975rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 14px;
}

/* h3 — main section headings → card-header strip */
body.pkp_page_ethics .page h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    background: #f0f4fa;
    border-left: 5px solid var(--primary-color);
    padding: 12px 18px;
    border-radius: 0 6px 6px 0;
    margin-top: 40px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Gold dot before each h3 */
body.pkp_page_ethics .page h3::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 50%;
    background: var(--accent-color);
}

/* h4 — sub-section headings */
body.pkp_page_ethics .page h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 24px;
    margin-bottom: 10px;
    padding-left: 14px;
    border-left: 3px solid var(--accent-color);
}

/* Body text */
body.pkp_page_ethics .page h3 ~ p,
body.pkp_page_ethics .page h4 ~ p {
    font-size: 0.925rem;
    line-height: 1.85;
    color: #444;
    margin-bottom: 12px;
}

/* Unordered lists — gold bullets */
body.pkp_page_ethics .page ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 14px;
}

body.pkp_page_ethics .page ul li {
    padding: 5px 0 5px 22px;
    position: relative;
    font-size: 0.925rem;
    line-height: 1.75;
    color: #444;
    border-bottom: 1px solid #f0f2f5;
}

body.pkp_page_ethics .page ul li:last-child {
    border-bottom: none;
}

body.pkp_page_ethics .page ul li::before {
    content: '›';
    position: absolute;
    left: 4px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1em;
}

/* Nested ul — indent slightly */
body.pkp_page_ethics .page ul ul {
    margin-top: 6px;
    padding-left: 12px;
}

/* Ordered lists */
body.pkp_page_ethics .page ol {
    padding-left: 20px;
    margin-bottom: 14px;
}

body.pkp_page_ethics .page ol li {
    font-size: 0.925rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 6px;
}

/* Bold text */
body.pkp_page_ethics .page strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Links */
body.pkp_page_ethics .page a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

body.pkp_page_ethics .page a:hover {
    color: var(--accent-color);
}

/* Breadcrumbs */
body.pkp_page_ethics .cmp_breadcrumbs {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 24px;
}

body.pkp_page_ethics .cmp_breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

/* ============================================================
   ISSUE PAGE (current & view) + ARCHIVE
   Targets: body.pkp_page_issue
   HTML: .obj_issue_toc > .heading > .cover > img
         .obj_issue_toc > .sections > .section > ul.articles > li
         .obj_article_summary (.title .meta .galleys_links)
         .obj_issue_summary (archive list cards)
   ============================================================ */

/* Page wrapper */
body.pkp_page_issue .page_issue {
    padding: 40px 0 64px;
}

/* Page heading */
body.pkp_page_issue .page_issue > h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 14px;
    margin-bottom: 32px;
}

/* ---- Issue TOC header area (cover + description) ---------- */

.obj_issue_toc .heading {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 40px;
}

/* Issue cover image */
.obj_issue_toc .heading .cover {
    flex-shrink: 0;
    width: 200px;
}

.obj_issue_toc .heading .cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 51, 102, 0.18);
    border: 1px solid #dde3ee;
}

/* Issue description next to cover */
.obj_issue_toc .heading .description {
    flex: 1 1 280px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
}

/* ---- Section headings inside TOC -------------------------- */

.obj_issue_toc .sections .section > h2,
.obj_issue_toc .sections .section > h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--primary-color);
    background: #f0f4fa;
    border-left: 5px solid var(--primary-color);
    padding: 10px 16px;
    border-radius: 0 6px 6px 0;
    margin: 32px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.obj_issue_toc .sections .section > h2::before,
.obj_issue_toc .sections .section > h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

/* Article list – remove default bullets */
.obj_issue_toc ul.articles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.obj_issue_toc ul.articles > li {
    border-bottom: 1px solid #eef0f5;
    padding: 20px 0;
}

.obj_issue_toc ul.articles > li:last-child {
    border-bottom: none;
}

/* ---- Article summary card --------------------------------- */

.obj_article_summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

/* Article cover (if present) */
.obj_article_summary .cover {
    flex-shrink: 0;
    width: 72px;
}

.obj_article_summary .cover img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Article title */
.obj_article_summary .title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--primary-color);
    flex: 1 1 300px;
}

.obj_article_summary .title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.obj_article_summary .title a:hover {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Meta: authors, pages, date */
.obj_article_summary .meta {
    width: 100%;
    font-size: 0.82rem;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.obj_article_summary .meta .authors {
    font-weight: 500;
    color: #555;
}

/* PDF / HTML galley buttons */
.obj_article_summary .galleys_links {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.obj_article_summary .galleys_links li a,
.obj_article_summary .galleys_links li button {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
}

.obj_article_summary .galleys_links li a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ---- Archive page: issue summary cards ------------------- */

body.pkp_page_issue .page_issue_archive h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 14px;
    margin-bottom: 32px;
}

/* Grid of issue cards in archive */
.issues_archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.obj_issue_summary {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 51, 102, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.obj_issue_summary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0, 51, 102, 0.14);
}

/* Cover image inside archive card */
.obj_issue_summary a.cover {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eef0f5;
}

.obj_issue_summary a.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.obj_issue_summary:hover a.cover img {
    transform: scale(1.04);
}

/* Issue title in archive card */
.obj_issue_summary h2 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 14px 16px 4px;
    margin: 0;
}

.obj_issue_summary h2 a.title {
    color: inherit;
    text-decoration: none;
}

.obj_issue_summary h2 a.title:hover {
    color: var(--accent-color);
}

.obj_issue_summary .series {
    font-size: 0.78rem;
    color: #888;
    font-weight: 400;
}

.obj_issue_summary .description {
    font-size: 0.82rem;
    color: #666;
    padding: 4px 16px 16px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 640px) {
    .obj_issue_toc .heading {
        flex-direction: column;
    }
    .obj_issue_toc .heading .cover {
        width: 140px;
    }
    .issues_archive {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   SIDEBAR – Global redesign
   HTML: .pkp_structure_sidebar > .pkp_block > (h2.title + .content)
   Reference: ELT Today – navy header, gold icons, gray dividers
   ============================================================ */

/* ── Each block card ──────────────────────────────────────── */
.pkp_block {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #e8edf5;
}

/* ── Block header (h2.title or h3.title) ──────────────────── */
.pkp_block .title,
.pkp_block h2.title,
.pkp_block h3.title {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    padding: 14px 20px !important;
    margin: 0 !important;
    border-bottom: 3px solid var(--accent-color);
    display: block !important;
    border-radius: 0 !important;
    border-left: none !important;
    background-image: none !important;
}

/* Suppress any pseudo-element decorations on sidebar headers */
.pkp_block .title::before,
.pkp_block h2.title::before,
.pkp_block h3.title::before {
    display: none !important;
}

/* ── Block content area ───────────────────────────────────── */
.pkp_block .content {
    padding: 16px 18px;
}

.pkp_block .content > p {
    font-size: 0.875rem;
    line-height: 1.78;
    color: #555;
    margin-bottom: 10px;
}

.pkp_block .content > p:last-child {
    margin-bottom: 0;
}

.pkp_block .content strong {
    color: var(--primary-color);
}

.pkp_block .content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.pkp_block .content a:hover {
    color: var(--accent-color);
}

/* ── Navigation list inside block ─────────────────────────── */
.pkp_block .content ul,
.pkp_block > ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pkp_block .content ul li,
.pkp_block > ul li {
    border-bottom: 1px solid #f0f2f5;
}

.pkp_block .content ul li:last-child,
.pkp_block > ul li:last-child {
    border-bottom: none;
}

.pkp_block .content ul li a,
.pkp_block > ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.pkp_block .content ul li a:hover,
.pkp_block > ul li a:hover {
    color: var(--accent-color);
    padding-left: 22px;
}

/* Gold angle-right icon before every nav link (FA 4.7) */
.pkp_block .content ul li a::before,
.pkp_block > ul li a::before {
    font-family: 'FontAwesome';
    content: '\f105'; /* fa-angle-right */
    color: var(--accent-color);
    font-size: 1em;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    transition: transform 0.2s ease;
}

.pkp_block .content ul li a:hover::before,
.pkp_block > ul li a:hover::before {
    transform: translateX(3px);
}

/* Images inside blocks (index badges, logos) */
.pkp_block .content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    margin: 6px 0;
}

/* ============================================================
   Footer */
.pkp_structure_footer {
    background: #222 !important;
    color: #ccc !important;
    padding: 60px 0 !important;
    border-top: 10px solid var(--primary-color);
}

.pkp_footer_content a {
    color: var(--accent-color) !important;
}
