/* =====================================================
   SCHOLAR UNITY - SITE-ONLY VERSION (v9)
   Every rule below is wrapped so it works ONLY on the Scholar Unity
   main site. Journals (Multi Studies, Law and Justice ...) are NOT
   touched, so their own header, banner image and footer stay as they are.

   Needs ONE marker on the main site: the footer HTML
   (scholar-unity-footer.html) already carries class "su-site-marker".
   Paste it in: Site Setup > Appearance > Setup > Page Footer.
   Put this file in: Site Setup > Appearance > Advanced > Site style sheet.
   ===================================================== */

/* =====================================================
   SCHOLAR UNITY - OPTION D v4 (Navy + Gold, Style 3 Cover First)
   Paste in: Appearance > Advanced > Custom stylesheet (OJS)
   Change in v4: journal list is now 1-column cover-first cards
   [ book cover | title + website + short description |
     Visit Journal + Contact Us buttons ]
   Contact Us needs the small script in scholar-unity-contact-button.html
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@400;500;600&family=Manrope:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=EB+Garamond:wght@400;500&display=swap');

body:has(.su-site-marker, .page_index_site, .index-site-journal) {
    --su-navy: #000000;
    --su-navy-dark: #222222;
    --su-dark: #000000;          /* header + footer background */
    --su-gold: #b8923a;
    --su-soft: #f3efe7;
    --su-bg: #ffffff;
    --su-line: #e2dccd;
    --su-text: #1d2b24;
    --su-muted: #47564e;
    --su-link: #555555;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) {
    background: var(--su-bg) !important;
    color: var(--su-text);
    font-family: 'Manrope', sans-serif;
    line-height: 1.7;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) h1, body:has(.su-site-marker, .page_index_site, .index-site-journal) h2, body:has(.su-site-marker, .page_index_site, .index-site-journal) h3, body:has(.su-site-marker, .page_index_site, .index-site-journal) h4, body:has(.su-site-marker, .page_index_site, .index-site-journal) .journal-logo-text {
    font-family: 'Newsreader', serif;
    font-weight: 500;
    color: var(--su-navy);
}

/* =========================================
   LINKS
   ========================================= */

body:has(.su-site-marker, .page_index_site, .index-site-journal) a {
    color: var(--su-navy);
    text-decoration: none !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) a:hover {
    color: var(--su-navy-dark);
    text-decoration: underline !important;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}


/* =========================================
   HEADER
   ========================================= */

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header {
    width: 100%;
    background: var(--su-dark) !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 3px solid var(--su-gold);
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .upper-header,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .lower-header {
    max-width: 1460px;
    margin-left: auto !important;
    margin-right: auto !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .upper-header {
    display: flex;
    align-items: center;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .logo-wrapper {
    margin: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    padding-left: 0 !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .journal-logo-text,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .journal-logo-text a {
    margin: 0 !important;
    line-height: 1.2 !important;
    font-family: 'Newsreader', serif;
    font-size: 30px;
    font-weight: 600;
    color: #fff !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header #user-nav-wraper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header #navigationUser {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header #navigationUser > li > a {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    color: #d6e0ef !important;
    font-size: 14px;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header #navigationUser > li > a:hover {
    color: #fff !important;
}


/* =========================================
   MAIN NAVIGATION
   ========================================= */

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .lower-header {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    min-height: 0 !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header #navigationPrimary {
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header #navigationPrimary > li {
    margin: 0 !important;
    padding: 0 !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header #navigationPrimary > li > a {
    display: block;
    margin: 0 !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    padding-left: 0 !important;
    padding-right: 45px !important;
    border: 0 !important;
    color: #e8eef7 !important;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header #navigationPrimary > li > a:hover,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .header #navigationPrimary > li > a:focus {
    background: transparent !important;
    border: 0 !important;
    color: #fff !important;
    text-decoration: none !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .nav-tabs {
    border-bottom: 0 !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .nav-link {
    border: 0 !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .navigation-dropdown {
    margin-top: 0 !important;
    background: #fff;
    border: 1px solid var(--su-line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .navigation-dropdown a {
    color: var(--su-text) !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .pkpbrand-wrapper {
    display: none !important;
}


/* =========================================
   BUTTONS AND FORMS (GENERAL)
   ========================================= */

body:has(.su-site-marker, .page_index_site, .index-site-journal) .btn,
body:has(.su-site-marker, .page_index_site, .index-site-journal) button.btn,
body:has(.su-site-marker, .page_index_site, .index-site-journal) input[type="submit"],
body:has(.su-site-marker, .page_index_site, .index-site-journal) .pkp_button {
    background: var(--su-navy);
    border: 1.5px solid var(--su-navy);
    color: #fff;
    border-radius: 4px;
    padding: 9px 24px;
    font-weight: 700;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .btn:hover,
body:has(.su-site-marker, .page_index_site, .index-site-journal) input[type="submit"]:hover,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .pkp_button:hover {
    background: var(--su-navy-dark);
    border-color: var(--su-navy-dark);
    color: #fff;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) input[type="text"],
body:has(.su-site-marker, .page_index_site, .index-site-journal) input[type="email"],
body:has(.su-site-marker, .page_index_site, .index-site-journal) input[type="password"],
body:has(.su-site-marker, .page_index_site, .index-site-journal) textarea,
body:has(.su-site-marker, .page_index_site, .index-site-journal) select {
    border: 1px solid var(--su-line);
    border-radius: 6px;
    background: #fff;
    font-family: 'Manrope', sans-serif;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) input:focus,
body:has(.su-site-marker, .page_index_site, .index-site-journal) textarea:focus,
body:has(.su-site-marker, .page_index_site, .index-site-journal) select:focus {
    border-color: var(--su-navy);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}


/* =========================================
   FOOTER
   ========================================= */

body:has(.su-site-marker, .page_index_site, .index-site-journal) footer,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .footer,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .pkp_structure_footer_wrapper {
    background: var(--su-dark) !important;
    color: #d6e0ef;
    border-top: 3px solid var(--su-gold);
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) footer a,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .footer a {
    color: #fff;
}


/* =========================================
   PAGE WIDTH  -  EMPTY SPACE ON LEFT AND RIGHT
   Layout:  [ empty ] [ content max 1100px ] [ empty ]
   Header and footer stay full width.
   ========================================= */

/* 1. Break the narrow theme column so we can control the width ourselves */
body:has(.su-site-marker, .page_index_site, .index-site-journal) :is(div, main, section):has(.index-site-journal) {
    max-width: none !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 2. Everything after the header gets equal side space.
      Minimum 32px each side, content never wider than 1100px. */
body:has(.su-site-marker, .page_index_site, .index-site-journal) .header ~ *:not(footer):not(.footer):not(script):not(style) {
    padding-left: max(32px, calc((100% - 1100px) / 2)) !important;
    padding-right: max(32px, calc((100% - 1100px) / 2)) !important;
    box-sizing: border-box !important;
}

/* 3. Fallback: if the content wrapper is NOT a direct sibling of the header
      (nested deeper in the theme), centre it with a max width instead. */
body:has(.su-site-marker, .page_index_site, .index-site-journal) :is(div, main, section):has(.index-site-journal):not(.header ~ *) {
    max-width: min(1100px, calc(100vw - 64px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* 4. Header and footer content keep their own width */
body:has(.su-site-marker, .page_index_site, .index-site-journal) .header,
body:has(.su-site-marker, .page_index_site, .index-site-journal) footer,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .footer,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .pkp_structure_footer_wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) p, body:has(.su-site-marker, .page_index_site, .index-site-journal) li {
    text-align: left !important;
    hyphens: none !important;
    color: var(--su-muted);
}


/* =========================================
   "JOURNALS" HEADING (gold underline like the design)
   ========================================= */

body:has(.su-site-marker, .page_index_site, .index-site-journal) h2 {
    font-size: 34px;
    margin: 48px 0 28px;
    color: var(--su-navy);
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) :is(div, section):has(> .index-site-journal) > h2::after {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    background: var(--su-gold);
    margin-top: 10px;
}


/* =========================================
   HERO + STATS (used by the HTML snippet)
   ========================================= */

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-hero {
    padding: 56px 0 40px;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--su-gold);
    margin-bottom: 14px;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-hero h1 {
    font-family: 'Newsreader', serif;
    font-size: 52px;
    line-height: 1.1;
    font-weight: 600;
    max-width: 800px;
    margin: 0 0 20px;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-hero p {
    font-size: 17px;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 0 24px;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    background: var(--su-soft);
    border-top: 1px solid var(--su-line);
    border-bottom: 1px solid var(--su-line);
    padding: 32px 28px;
    margin: 8px 0 24px;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-stats strong {
    display: block;
    font-family: 'Newsreader', serif;
    font-size: 40px;
    font-weight: 500;
    color: var(--su-navy);
    line-height: 1.1;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-stats span {
    color: var(--su-muted);
    font-size: 15px;
}


/* =========================================
   TABLET AND MOBILE
   ========================================= */

@media (max-width: 1500px) {
    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .upper-header,
    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .lower-header {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

@media (max-width: 900px) {
    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header ~ *:not(footer):not(.footer):not(script):not(style) {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body:has(.su-site-marker, .page_index_site, .index-site-journal) :is(div, main, section):has(.index-site-journal):not(.header ~ *) {
        max-width: calc(100vw - 40px) !important;
    }
}

@media (max-width: 768px) {
    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .upper-header {
        display: block;
    }

    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .logo-wrapper {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
        padding-left: 20px !important;
    }

    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .journal-logo-text,
    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .journal-logo-text a {
        font-size: 24px;
    }

    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header #user-nav-wraper {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .lower-header {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header #navigationPrimary {
        display: block;
    }

    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header #navigationPrimary > li > a {
        padding: 12px 15px !important;
    }

    body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-hero h1 { font-size: 34px; }

}


/* =========================================
   HEADER CONTENT = SAME WIDTH AS PAGE CONTENT
   Same side space as the page content at every screen width
   and every browser zoom level (no more layout jump).
   To change the width, change 1100px here AND in the
   PAGE WIDTH section above.
   ========================================= */

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header {
    padding-left: max(32px, calc((100% - 1100px) / 2)) !important;
    padding-right: max(32px, calc((100% - 1100px) / 2)) !important;
    box-sizing: border-box !important;
}

@media (min-width: 769px) {

    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .upper-header,
    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .lower-header {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box;
    }

    /* last menu item (Contact) ends exactly at the right edge */
    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header #navigationPrimary > li:last-child > a {
        padding-right: 0 !important;
    }
}

/* same 20px side space as the page content on tablets */
@media (max-width: 900px) {
    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* phones: header parts already have their own 20px space */
@media (max-width: 768px) {
    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}


/* =========================================
   SAME LAYOUT AT EVERY ZOOM LEVEL (90%, 100%, 110% ...)
   The theme squeezes the content into a narrow column
   (50% width + side offsets) on some screen widths.
   This removes every width / offset / padding limit on the
   wrappers around the page content, so the content always
   has the same width as the header: max 1100px, centered.
   ========================================= */

body:has(.su-site-marker, .page_index_site, .index-site-journal) :is(div, main, section, article):has(.index-site-journal), body:has(.su-site-marker, .page_index_site, .index-site-journal) .page_index_site, body:has(.su-site-marker, .page_index_site, .index-site-journal) .page_index_site > *, body:has(.su-site-marker, .page_index_site, .index-site-journal) .about_site, body:has(.su-site-marker, .page_index_site, .index-site-journal) .journals {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 100% !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* keep the centered 1100px column for wrappers that are not
   direct neighbours of the header */
body:has(.su-site-marker, .page_index_site, .index-site-journal) :is(div, main, section, article):has(.index-site-journal):not(.header ~ *) {
    max-width: min(1100px, calc(100vw - 64px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 900px) {
    body:has(.su-site-marker, .page_index_site, .index-site-journal) :is(div, main, section, article):has(.index-site-journal):not(.header ~ *) {
        max-width: calc(100vw - 40px) !important;
    }
}


/* =========================================
   FOOTER CONTENT  (HTML is in scholar-unity-footer.html)
   ========================================= */

body:has(.su-site-marker, .page_index_site, .index-site-journal) footer p,
body:has(.su-site-marker, .page_index_site, .index-site-journal) footer li,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .footer p,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .footer li,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .pkp_structure_footer_wrapper p,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .pkp_structure_footer_wrapper li {
    color: #c9c9c9 !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer {
    width: 100%;
    max-width: min(1100px, calc(100vw - 64px));
    margin: 0 auto;
    padding: 56px 0 28px;
    box-sizing: border-box;
    text-align: left;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.9fr 1.1fr;
    gap: 40px;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer h3 {
    font-family: 'Newsreader', serif;
    font-size: 19px;
    font-weight: 600;
    color: #fff !important;
    margin: 0 0 16px;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer h3::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    background: var(--su-gold);
    margin-top: 10px;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer p,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer li {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 10px;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer li {
    margin: 0 0 8px;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer a {
    color: #fff !important;
    text-decoration: none !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer a:hover {
    color: var(--su-gold) !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer-bottom p {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.4px;
    text-align: center !important;
}

@media (max-width: 900px) {
    body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer {
        max-width: calc(100vw - 40px);
    }
}

@media (max-width: 600px) {
    body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer-grid {
        grid-template-columns: 1fr;
    }
}



/* =========================================
   v8  -  JOURNAL CARDS (image + details style) + FOOTER COLOUR
   Goes at the END of the main CSS (replaces the old journal-list
   section: v5 / v6 / v7 / v7-fix). Header + page-width rules stay.

   Quick switches (change only these numbers):
     --su-cols        1 = full-width cards,  2 = two cards per row
     --su-cover-w/h   fixed size of the cover image
     --su-footer-bg   footer colour (NOT linked to the header any more)
   ========================================= */

body:has(.su-site-marker, .page_index_site, .index-site-journal) {
    --su-cols: 1;
    --su-cover-w: 150px;
    --su-cover-h: 206px;
    --su-card: #ffffff;
    --su-card-line: #e6e0cf;
    --su-card-pad: 24px;
    --su-wa: #1f8f4e;

    --su-footer-bg: #14213d;      /* footer colour - change freely */
    --su-footer-line: rgba(255, 255, 255, 0.28);
    --su-footer-head: #e6c36a;
}


/* =========================================
   JOURNAL LIST
   ========================================= */

body:has(.su-site-marker, .page_index_site, .index-site-journal) :is(div, section):has(> .index-site-journal) {
    display: grid !important;
    grid-template-columns: repeat(var(--su-cols), minmax(0, 1fr)) !important;
    gap: 24px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    border-top: 0 !important;
    align-items: stretch;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) :is(div, section):has(> .index-site-journal) > :not(.index-site-journal) {
    grid-column: 1 / -1;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal {
    position: relative;
    display: grid !important;
    grid-template-columns: var(--su-cover-w) minmax(0, 1fr) !important;
    grid-template-rows: auto 1fr;
    column-gap: 26px;
    row-gap: 0;
    align-items: start;
    box-sizing: border-box;
    min-height: calc(var(--su-cover-h) + 2 * var(--su-card-pad)) !important;
    height: auto !important;
    margin: 0 !important;
    padding: var(--su-card-pad) !important;
    background: var(--su-card);
    border: 1px solid var(--su-card-line);
    border-left: 4px solid var(--su-gold);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}


/* ---------- COVER: uploaded image (fixed size) ----------
   Upload per journal:  Journal Settings > Appearance > Setup >
   "Journal Thumbnail".  Any size works - it is cropped to fit. */

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal-thumb {
    display: none !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:has(.index-site-journal-thumb img) .index-site-journal-thumb {
    display: block !important;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    width: var(--su-cover-w);
    height: var(--su-cover-h);
    margin: 0;
    padding: 0;
    background: #eee;
    border: 0;
    overflow: hidden;
    box-shadow: 5px 7px 14px rgba(0, 0, 0, 0.25);
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:has(.index-site-journal-thumb img) .index-site-journal-thumb img {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- COVER: automatic book cover when NO image is uploaded ---------- */

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal::before {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    box-sizing: border-box;
    width: var(--su-cover-w);
    height: var(--su-cover-h);
    padding: 48px 8px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: pre-line;
    background-color: var(--su-cover, #1b4f72);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.3));
    border-left: 9px solid rgba(0, 0, 0, 0.3);
    border-radius: 2px 4px 4px 2px;
    box-shadow: 6px 8px 16px rgba(0, 0, 0, 0.26);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.05;
    color: #fff;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal-header::before {
    content: "International Journal of";
    position: absolute;
    z-index: 1;
    left: calc(var(--su-card-pad) + 13px);
    top: calc(var(--su-card-pad) + 14px);
    box-sizing: border-box;
    width: calc(var(--su-cover-w) - 9px);
    padding: 0 6px;
    text-align: center;
    text-transform: uppercase;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal-links {
    position: static;
    height: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
    font-size: 0;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal-links > *,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal-links a {
    display: none !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal-links::before {
    content: "Scholar Unity";
    position: absolute;
    z-index: 1;
    left: calc(var(--su-card-pad) + 13px);
    top: calc(var(--su-card-pad) + var(--su-cover-h) - 28px);
    box-sizing: border-box;
    width: calc(var(--su-cover-w) - 9px);
    text-align: center;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    line-height: 1.2;
    color: #fff;
}

/* when a real image exists, hide the automatic cover and its texts */
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:has(.index-site-journal-thumb img)::before,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:has(.index-site-journal-thumb img) .index-site-journal-header::before,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:has(.index-site-journal-thumb img) .index-site-journal-links::before {
    display: none;
}


/* ---------- TITLE ---------- */

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal-header {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 10px;
    font-family: 'Newsreader', serif;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal-header a {
    font-size: inherit !important;
    color: #111 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal-header a:hover {
    color: var(--su-gold) !important;
    text-decoration: none !important;
}


/* ---------- DETAILS (from the Journal Summary HTML) ---------- */

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal-description,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal > .description {
    display: flex !important;
    flex-direction: column;
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    min-width: 0;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal-description p,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal > .description p {
    display: block !important;
    margin: 0 0 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
    color: #2d2d2a;
}

/* ISSN / DOI / Email / Website lines */
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal .su-meta {
    margin: 0 0 6px !important;
    font-size: 14px !important;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal .su-meta strong {
    color: #111;
    font-weight: 700;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal .su-meta a {
    color: #1d56c7 !important;
    font-weight: 500;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal .su-meta a:hover {
    text-decoration: underline !important;
}

/* short description: max 3 lines (full text stays in the HTML for Google) */
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal-description p:not(.su-meta):not(.su-actions):not(.su-site),
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal > .description p:not(.su-meta):not(.su-actions):not(.su-site) {
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 6px;
    color: #4a4a45;
}

/* old single website line (v6 template) still works */
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal .su-site {
    margin: 0 0 8px !important;
    font-size: 14px !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal .su-site a {
    color: #1d56c7 !important;
    font-weight: 600;
}


/* ---------- BUTTONS ---------- */

body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal .su-actions {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: auto 0 0 !important;
    padding-top: 14px;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1.5px solid #111;
    border-radius: 4px;
    background: #111;
    color: #fff !important;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-btn:hover {
    background: var(--su-gold);
    border-color: var(--su-gold);
    color: #fff !important;
    text-decoration: none !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-btn:focus-visible {
    outline: 3px solid #2f6fdb;
    outline-offset: 2px;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-btn--gold {
    background: var(--su-gold);
    border-color: var(--su-gold);
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-btn--gold:hover {
    background: #111;
    border-color: #111;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-btn--outline {
    background: transparent;
    color: #111 !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-btn--outline:hover {
    background: #111;
    border-color: #111;
    color: #fff !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-btn--wa {
    background: transparent;
    border-color: var(--su-wa);
    color: var(--su-wa) !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-btn--wa:hover {
    background: var(--su-wa);
    border-color: var(--su-wa);
    color: #fff !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-phone {
    margin-left: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--su-navy) !important;
}


/* ---------- PHONE: cover on top, details below ---------- */

@media (max-width: 640px) {
    body:has(.su-site-marker, .page_index_site, .index-site-journal) :is(div, section):has(> .index-site-journal) {
        grid-template-columns: 1fr !important;
    }

    body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto;
        min-height: 0 !important;
    }

    body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal::before,
    body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:has(.index-site-journal-thumb img) .index-site-journal-thumb {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 18px;
    }

    body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal-header { grid-column: 1; grid-row: 2; }
    body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal-description,
    body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal > .description { grid-column: 1; grid-row: 3; }

    body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-btn { flex: 1 1 calc(50% - 8px); }
}


/* ---------- per journal: cover colour + cover title (used only when no image is uploaded) ---------- */
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(1)  { --su-cover: #1b4f72; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(1)::before  { content: "Multi\A Studies"; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(2)  { --su-cover: #7b241c; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(2)::before  { content: "Law and\A Justice"; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(3)  { --su-cover: #1e6b4a; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(3)::before  { content: "Social\A World"; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(4)  { --su-cover: #6e4a12; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(4)::before  { content: "Agriculture\A and Earth\A Sciences"; font-size: 19px; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(5)  { --su-cover: #4b3a78; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(5)::before  { content: "Management\A Studies"; font-size: 20px; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(6)  { --su-cover: #2f6a62; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(6)::before  { content: "Animal and\A Wildlife"; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(7)  { --su-cover: #9a2f55; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(7)::before  { content: "Medical\A Studies"; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(8)  { --su-cover: #8a3b7a; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(8)::before  { content: "Pharma\A Studies"; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(9)  { --su-cover: #b25e14; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(9)::before  { content: "Bioscience\A and\A Chemistry"; font-size: 20px; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(10) { --su-cover: #2b3440; }
body:has(.su-site-marker, .page_index_site, .index-site-journal) .index-site-journal:nth-of-type(10)::before { content: "Advanced AI\A and\A Engineering"; font-size: 19px; }


/* =========================================
   FOOTER  -  OWN COLOUR, NOT LINKED TO THE HEADER
   The header keeps --su-dark (black). The footer now uses
   --su-footer-bg, so changing one never changes the other.
   ========================================= */

body:has(.su-site-marker, .page_index_site, .index-site-journal) footer,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .footer,
body:has(.su-site-marker, .page_index_site, .index-site-journal) #footer,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .pkp_structure_footer_wrapper,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .pkp_structure_footer {
    background: var(--su-footer-bg) !important;
    border-top: 0 !important;      /* no line here: see "ONE gold line" below */
}

/* ONE gold line only: it goes on the OUTERMOST footer element.
   Footer elements nested inside another footer element get no line,
   so the line can never appear twice. */
body:has(.su-site-marker, .page_index_site, .index-site-journal) :is(footer, .footer, #footer, .pkp_structure_footer_wrapper, .pkp_structure_footer):not(
    :is(footer, .footer, #footer, .pkp_structure_footer_wrapper, .pkp_structure_footer)
    :is(footer, .footer, #footer, .pkp_structure_footer_wrapper, .pkp_structure_footer)
) {
    border-top: 3px solid var(--su-gold) !important;
}

/* inner wrappers must not paint their own (black) strip */
body:has(.su-site-marker, .page_index_site, .index-site-journal) footer > *,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .footer > *,
body:has(.su-site-marker, .page_index_site, .index-site-journal) #footer > *,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .pkp_structure_footer_wrapper > *,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .pkp_structure_footer > * {
    background: transparent !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer {
    background: transparent;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer h3 {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--su-footer-line);
    color: var(--su-footer-head) !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer h3::after {
    display: none;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer-brand {
    font-family: 'Newsreader', serif;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    color: #fff !important;
    margin: 0 0 12px;
}

/* optional footer logo: fixed box, any image works */
body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer-logo {
    display: block;
    width: auto;
    max-width: 200px;
    height: 60px;
    object-fit: contain;
    margin: 0 0 14px;
}

/* long list in 2 columns (journals) */
body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer ul.su-footer-cols-2 {
    column-count: 2;
    column-gap: 28px;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer ul.su-footer-cols-2 li {
    break-inside: avoid;
}

@media (max-width: 600px) {
    body:has(.su-site-marker, .page_index_site, .index-site-journal) .su-footer ul.su-footer-cols-2 {
        column-count: 1;
    }
}


/* =========================================
   HEADER COMPACT  -  smaller height, no top user links
   (Register / Login / username links in the top-right are hidden.
    "Dashboard" is still in the main menu, so login stays reachable.)
   To SHOW the top links again: delete the first rule below.
   To change the height: change the padding numbers (smaller = shorter).
   ========================================= */

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header #user-nav-wraper {
    display: none !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .upper-header {
    min-height: 0 !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .logo-wrapper {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .journal-logo-text,
body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .journal-logo-text a {
    font-size: 26px;
    line-height: 1.15 !important;
}

body:has(.su-site-marker, .page_index_site, .index-site-journal) .header #navigationPrimary > li > a {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
    font-size: 14px;
}

@media (max-width: 768px) {
    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .logo-wrapper {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .journal-logo-text,
    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header .journal-logo-text a {
        font-size: 21px;
    }

    body:has(.su-site-marker, .page_index_site, .index-site-journal) .header #navigationPrimary > li > a {
        padding: 9px 15px !important;
    }
}
