/* ========================================================================
   CARE JOURNAL OF GUIDANCE AND COUNSELING (CJGC)
   EMERALD & GOLD — LUXURY JOURNAL THEME, VERSION 1.0
   Built for the OJS Default Theme (OJS 3.x).

   This file is a COMPLETE, standalone journal stylesheet.
   Upload it to CJGC > Settings > Website > Appearance > Journal Style Sheet.
   Do not append it to the JIPC stylesheet (different journal / palette).

   Design:
   - Keep the original dark-green masthead graphic intact and full-width
   - Green surroundings / lower-page surface, cream reading cards
   - Elegant forest-green navigation, gold outlines and subtle shadows
   - Themed About dropdown, article links, galleys, sidebars and footer
   - Responsive, accessible focus states, print-friendly
   ======================================================================== */

:root {
  --cjgc-green-950: #063624;
  --cjgc-green-900: #07452e;
  --cjgc-green-850: #085638;
  --cjgc-green-800: #0c6242;
  --cjgc-green-700: #197552;
  --cjgc-green-100: #e8f3eb;
  --cjgc-green-50: #f1f8f2;
  --cjgc-gold: #d4ad35;
  --cjgc-gold-bright: #ebc957;
  --cjgc-gold-muted: #b69236;
  --cjgc-gold-pale: #f4e8bf;
  --cjgc-cream: #fffdf7;
  --cjgc-ink: #20362e;
  --cjgc-muted: #587165;
  --cjgc-border: #cbdccc;
  --cjgc-shadow: 0 12px 30px rgba(5, 43, 29, 0.12);
}

/* 01. PAGE FRAME — green all around the content, not a white page */
html, body {
  margin: 0;
  max-width: 100%;
}

body {
  background: var(--cjgc-green-850) !important;
  color: var(--cjgc-ink);
  overflow-x: clip;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
}

.pkp_structure_page {
  min-height: 100vh;
  background: linear-gradient(180deg, #084b33 0%, #0c6242 56%, #063624 100%) !important;
}

/* 02. MASTHEAD — retain the CJGC artwork and prevent OJS max-width gaps */
.pkp_structure_head {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: var(--cjgc-green-900) !important;
  box-shadow: none !important;
}

.pkp_structure_head .pkp_head_wrapper,
.pkp_structure_head .pkp_site_name_wrapper {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
}

.pkp_structure_head .pkp_site_name {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  text-align: center;
  background: transparent !important;
}

.pkp_structure_head .pkp_site_name a.is_img,
.pkp_structure_head .pkp_site_name .is_img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.pkp_structure_head .pkp_site_name img,
.pkp_structure_head .pkp_site_name .is_img img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain !important;
  background: var(--cjgc-green-900);
}

/* Text title fallback (in case no header image is uploaded). */
.pkp_structure_head .pkp_site_name .is_text {
  display: block;
  padding: 30px 5% !important;
  line-height: 1.4 !important;
}
.pkp_structure_head .pkp_site_name .is_text a {
  color: #ffffff !important;
  text-decoration: none;
}

/* 03. ACCOUNT BAR / LOGIN / REGISTER */
.pkp_navigation_user_wrapper {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 clamp(16px, 4vw, 70px) !important;
  background: #063d2a !important;
  border-bottom: 1px solid rgba(235, 201, 87, .55) !important;
}

.pkp_navigation_user > li > a,
.pkp_navigation_user > li > a:visited {
  color: #fff9e8 !important;
  font-weight: 600;
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
  color: var(--cjgc-gold-bright) !important;
  background: rgba(255,255,255,.08) !important;
}

/* 04. GREEN NAVIGATION — full width, gold rule, no stray white separators */
.pkp_site_nav_menu {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  margin: 0 !important;
  background: linear-gradient(90deg, #0d6846 0%, #176f4b 55%, #0b563b 100%) !important;
  border-top: 2px solid var(--cjgc-gold-muted) !important;
  border-bottom: 4px solid var(--cjgc-gold) !important;
  box-shadow: 0 6px 18px rgba(0, 29, 18, .2);
}

.pkp_navigation_primary_wrapper,
.pkp_navigation_primary_row {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  margin: 0 auto !important;
  background: transparent !important;
  border: 0 !important;
}

.pkp_navigation_primary_wrapper {
  padding-left: clamp(12px, 3.5vw, 65px) !important;
  padding-right: clamp(12px, 3.5vw, 65px) !important;
}

.pkp_navigation_primary > li > a,
.pkp_navigation_primary > li > a:visited {
  color: #ffffff !important;
  font-weight: 650 !important;
  letter-spacing: .2px;
  text-decoration: none !important;
  transition: background-color .18s ease, color .18s ease;
}

.pkp_navigation_primary > li:hover > a,
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li > a:active {
  color: #fff5ce !important;
  background: #095337 !important;
  box-shadow: inset 0 -3px 0 var(--cjgc-gold-bright);
}

/* ABOUT submenu — avoid the default OJS white/gray popup */
.pkp_navigation_primary ul,
.pkp_navigation_primary li ul,
.pkp_navigation_primary .dropdown-menu,
.pkp_site_nav_menu .dropdown-menu,
.pkp_nav_list ul ul {
  background: #0e5139 !important;
  border: 1px solid var(--cjgc-gold-muted) !important;
  border-top: 3px solid var(--cjgc-gold-bright) !important;
  border-radius: 0 0 9px 9px !important;
  box-shadow: 0 12px 24px rgba(1, 31, 19, .25) !important;
}

.pkp_navigation_primary li ul li,
.pkp_navigation_primary .dropdown-menu li {
  background: transparent !important;
}

.pkp_navigation_primary li ul li a,
.pkp_navigation_primary .dropdown-menu li a,
.pkp_site_nav_menu .dropdown-menu a,
.pkp_nav_list ul ul li a {
  display: block;
  background: #0e5139 !important;
  color: #fffdf5 !important;
  font-weight: 550 !important;
  border-bottom: 1px solid rgba(235, 201, 87, .22) !important;
  text-decoration: none !important;
}

.pkp_navigation_primary li ul li a:hover,
.pkp_navigation_primary li ul li a:focus,
.pkp_navigation_primary .dropdown-menu li a:hover,
.pkp_navigation_primary .dropdown-menu li a:focus,
.pkp_site_nav_menu .dropdown-menu a:hover,
.pkp_site_nav_menu .dropdown-menu a:focus,
.pkp_nav_list ul ul li a:hover,
.pkp_nav_list ul ul li a:focus {
  background: #197552 !important;
  color: #ffe18a !important;
}

/* Search icon & small search form on the right */
.pkp_site_nav_menu .pkp_search,
.pkp_site_nav_menu .pkp_search a,
.pkp_site_nav_menu .pkp_search a:hover,
.pkp_site_nav_menu .pkp_search a:focus {
  color: #fff !important;
}
.pkp_site_nav_menu .pkp_search input[type="text"],
.pkp_site_nav_menu .pkp_search input[type="search"] {
  background: #f7f8ed !important;
  color: var(--cjgc-ink) !important;
  border: 1px solid var(--cjgc-gold-muted) !important;
  border-radius: 6px;
}

/* 05. PAGE CONTENT — visibly green BELOW the masthead */
.pkp_structure_content {
  box-sizing: border-box;
  width: min(100%, 1530px) !important;
  max-width: 1530px !important;
  margin: 0 auto !important;
  padding: 30px clamp(14px, 2.7vw, 38px) 54px !important;
  background: linear-gradient(140deg, #dceee2 0%, #eef6ed 50%, #d9e9dc 100%) !important;
  border-left: 1px solid rgba(235, 201, 87, .6);
  border-right: 1px solid rgba(235, 201, 87, .6);
  box-shadow: 0 18px 35px rgba(0, 24, 17, .19);
}

/* Keep the article column elegant and legible, not dark-green body text on green */
.pkp_structure_main {
  box-sizing: border-box;
  color: var(--cjgc-ink) !important;
  background: rgba(255, 253, 247, .96) !important;
  border: 1px solid #bed2c3 !important;
  border-top: 4px solid var(--cjgc-gold) !important;
  border-radius: 10px !important;
  padding: clamp(18px, 2.4vw, 34px) !important;
  box-shadow: var(--cjgc-shadow);
}

.pkp_structure_main p,
.pkp_structure_main li,
.pkp_structure_main .abstract,
.pkp_structure_main .description,
.pkp_structure_main .page {
  color: var(--cjgc-ink);
  line-height: 1.75;
}

.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3,
.pkp_structure_main h4,
.pkp_structure_main .page_title,
.pkp_structure_main .current_issue_title,
.pkp_structure_main .cmp_headings h1,
.pkp_structure_main .cmp_headings h2 {
  color: var(--cjgc-green-900) !important;
  font-weight: 700;
}

.pkp_structure_main h2,
.pkp_structure_main .page_title {
  border-bottom: 1px solid rgba(212, 173, 53, .48);
  padding-bottom: 10px;
}

/* All normal hyperlinks, not navigation or styled button text */
.pkp_structure_content a:not(.cmp_button):not(.obj_galley_link):not(.pkp_button) {
  color: var(--cjgc-green-800);
  text-underline-offset: 3px;
}
.pkp_structure_content a:not(.cmp_button):not(.obj_galley_link):not(.pkp_button):hover {
  color: #9a751e;
}

/* Journal home intro & journal description */
.page_index_journal .additional_content,
.page_index_journal .homepage_about,
.page_index_journal .current_issue,
.pkp_structure_main .cmp_announcements,
.pkp_structure_main .obj_issue_toc {
  border-color: rgba(212,173,53,.35);
}

/* 06. ARTICLE / CURRENT ISSUE LISTS */
.obj_article_summary,
.obj_issue_summary,
.obj_announcement_summary {
  border-bottom: 1px solid #d9e7d8 !important;
  padding-bottom: 19px;
  margin-bottom: 19px;
}

.obj_article_summary .title,
.obj_article_summary .title a,
.obj_issue_summary .title,
.obj_issue_summary .title a,
.obj_announcement_summary .title a,
.current_issue .current_issue_title {
  color: var(--cjgc-green-900) !important;
  font-weight: 700 !important;
}

.obj_article_summary .authors,
.obj_article_summary .meta,
.obj_article_details .authors,
.obj_issue_summary .description,
.obj_article_details .published {
  color: var(--cjgc-muted) !important;
}

.obj_issue_toc .sections,
.obj_article_details .main_entry,
.obj_article_details .entry_details {
  border-color: #d8e8d9 !important;
}

/* PDF / HTML galley buttons and submission buttons */
.obj_galley_link,
.obj_galley_link.pdf,
.cmp_button,
.cmp_button_wire,
.pkp_button,
.block_make_submission a,
button[type="submit"],
input[type="submit"],
.cmp_form .buttons button {
  display: inline-block;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0d6748, #06452f) !important;
  color: #fffefa !important;
  border: 1px solid var(--cjgc-gold-muted) !important;
  border-radius: 6px !important;
  box-shadow: 0 3px 8px rgba(4, 59, 38, .13);
  font-weight: 650;
  text-decoration: none !important;
  transition: background-color .18s ease, box-shadow .18s ease;
}

.obj_galley_link:hover,
.obj_galley_link:focus,
.cmp_button:hover,
.cmp_button:focus,
.cmp_button_wire:hover,
.cmp_button_wire:focus,
.pkp_button:hover,
.pkp_button:focus,
.block_make_submission a:hover,
.block_make_submission a:focus,
button[type="submit"]:hover,
input[type="submit"]:hover,
.cmp_form .buttons button:hover {
  background: #b38d2a !important;
  color: #fff !important;
  border-color: #a67d1c !important;
  box-shadow: 0 4px 12px rgba(113, 81, 14, .22);
}

/* Do not force checkbox and radio input styling. */

/* 07. SIDEBAR — separate luxury cards */
.pkp_structure_sidebar {
  box-sizing: border-box;
  background: transparent !important;
  color: var(--cjgc-ink);
}

.pkp_block {
  box-sizing: border-box;
  margin-bottom: 22px !important;
  overflow: hidden;
  background: #fffdf6 !important;
  color: var(--cjgc-ink) !important;
  border: 1px solid #c9ab56 !important;
  border-radius: 10px !important;
  box-shadow: 0 9px 22px rgba(6, 52, 34, .11);
}

.pkp_block .title,
.pkp_structure_sidebar .pkp_block .title {
  display: block;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 14px 16px !important;
  background: linear-gradient(110deg, #084c34, #166e4b) !important;
  color: #ffe6a0 !important;
  font-weight: 700 !important;
  font-size: 1.05rem;
  border: 0 !important;
  border-bottom: 3px solid var(--cjgc-gold) !important;
}

.pkp_block .content {
  box-sizing: border-box;
  padding: 16px !important;
  background: #fffdf6 !important;
  color: var(--cjgc-ink) !important;
}

.pkp_block .content a,
.pkp_structure_sidebar .pkp_block a {
  color: #0b6444 !important;
  text-decoration: none;
}
.pkp_block .content a:hover,
.pkp_structure_sidebar .pkp_block a:hover {
  color: #9c761d !important;
  text-decoration: underline;
}

/* Browse list / Journal Information / Latest Publications */
.pkp_block ul,
.pkp_block ol {
  margin-bottom: 0;
}
.pkp_block li {
  color: var(--cjgc-ink);
  line-height: 1.6;
}

/* Small ATOM/RSS badges retain their original graphics */
.pkp_block img {
  max-width: 100%;
  height: auto;
}

/* 08. SEARCH, FORMS, METADATA, TABLES */
.pkp_structure_main input[type="text"],
.pkp_structure_main input[type="email"],
.pkp_structure_main input[type="search"],
.pkp_structure_main input[type="password"],
.pkp_structure_main select,
.pkp_structure_main textarea {
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid #aac7b1 !important;
  border-radius: 6px;
  background: #fbfff9 !important;
  color: var(--cjgc-ink) !important;
}

.pkp_structure_main input:focus,
.pkp_structure_main textarea:focus,
.pkp_structure_main select:focus {
  outline: 2px solid var(--cjgc-gold);
  outline-offset: 1px;
  border-color: var(--cjgc-green-700) !important;
}

.pkp_structure_main table,
.cmp_table,
.pkp_structure_main .cmp_table {
  background: #fffef9;
  border-collapse: collapse;
  max-width: 100%;
}

.pkp_structure_main th,
.cmp_table thead th {
  background: #e1f0e4;
  color: var(--cjgc-green-900);
  border-bottom: 2px solid var(--cjgc-gold-muted);
}

.pkp_structure_main td,
.pkp_structure_main th,
.cmp_table td {
  border-color: #d4e3d6;
}

.pkp_structure_main tr:nth-child(even) td {
  background: #f3faf2;
}

.cmp_notification,
.cmp_message,
.pkp_structure_main blockquote {
  border-left: 4px solid var(--cjgc-gold);
  background: #f3f8ef;
  color: var(--cjgc-ink);
  border-radius: 0 7px 7px 0;
  padding: 12px 16px;
}

/* 09. FOOTER — dark evergreen with gold accents */
.pkp_structure_footer_wrapper {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 26px clamp(16px, 4vw, 65px) !important;
  background: linear-gradient(120deg, #063624, #0c593c 57%, #073c2a) !important;
  border-top: 5px solid var(--cjgc-gold) !important;
  color: #f7f6e9 !important;
  box-shadow: 0 -5px 18px rgba(5, 45, 27, .14);
}

.pkp_structure_footer,
.pkp_footer_content {
  box-sizing: border-box;
  max-width: 1450px;
  margin-left: auto;
  margin-right: auto;
  color: #f7f6e9 !important;
}

.pkp_structure_footer p,
.pkp_footer_content p,
.pkp_footer_content li,
.pkp_structure_footer h1,
.pkp_structure_footer h2,
.pkp_structure_footer h3 {
  color: #f7f6e9 !important;
}

.pkp_structure_footer a,
.pkp_footer_content a {
  color: #ffe2a0 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pkp_structure_footer a:hover,
.pkp_footer_content a:hover {
  color: #fff !important;
}

/* 10. ACCESSIBILITY */
.pkp_structure_page a:focus-visible,
.pkp_structure_page button:focus-visible {
  outline: 3px solid #f0c957;
  outline-offset: 2px;
}

/* 11. MOBILE — do not override OJS's hamburger show/hide behavior */
@media (max-width: 991px) {
  .pkp_structure_content {
    padding: 18px 14px 34px !important;
  }
  .pkp_structure_main {
    padding: 20px 18px !important;
  }
  .pkp_structure_sidebar {
    margin-top: 20px;
  }
}

@media (max-width: 767px) {
  .pkp_structure_head .pkp_site_name img,
  .pkp_structure_head .pkp_site_name .is_img img {
    width: 100% !important;
    height: auto !important;
  }
  .pkp_site_nav_menu {
    box-shadow: none;
  }
  .pkp_site_nav_toggle {
    color: #fff !important;
    background: #0e6745 !important;
    border: 1px solid var(--cjgc-gold) !important;
  }
  .pkp_navigation_primary_wrapper {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .pkp_structure_main {
    padding: 18px 14px !important;
    border-radius: 8px !important;
  }
  .pkp_block {
    border-radius: 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pkp_structure_page *,
  .pkp_structure_page *::before,
  .pkp_structure_page *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

@media print {
  body, .pkp_structure_page, .pkp_structure_content,
  .pkp_structure_main, .pkp_structure_sidebar,
  .pkp_structure_footer_wrapper {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    border-color: #ccc !important;
  }
  .pkp_site_nav_menu, .pkp_navigation_user_wrapper {
    display: none !important;
  }
}
/* CJGC | Policy & Guidelines — full width sidebar correction */
/* Apply on top of CJGC Emerald Gold Luxury V1. The complete V2 file already includes this. */

/* Remove the extra OJS spacing ONLY on the block that contains our widget. */
.pkp_structure_sidebar .pkp_block:has(.cjgc-policy),
.pkp_block:has(.cjgc-policy) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.pkp_structure_sidebar .pkp_block:has(.cjgc-policy) .content,
.pkp_block:has(.cjgc-policy) .content {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.pkp_block:has(.cjgc-policy) .content > p,
.pkp_block:has(.cjgc-policy) .content > div,
.pkp_block:has(.cjgc-policy) .content > section {
  max-width: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.pkp_structure_sidebar .cjgc-policy {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
}

.pkp_structure_sidebar .cjgc-policy__header {
  background: linear-gradient(115deg, #053b2b 0%, #086442 100%) !important;
  padding: 19px 12px 17px !important;
}

.pkp_structure_sidebar .cjgc-policy__list {
  padding: 8px 12px !important;
}

/* Larger, individually clickable menu rows */
.pkp_structure_sidebar .cjgc-policy__link,
.pkp_structure_sidebar .pkp_block .content .cjgc-policy__link {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 45px !important;
  padding: 10px 4px !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e9dfc7 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #07533b !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere;
  transition: background-color .16s ease, padding-left .16s ease;
}

.pkp_structure_sidebar .cjgc-policy__link:last-child { border-bottom: 0 !important; }

.pkp_structure_sidebar .cjgc-policy__chevron {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  font-size: 23px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: #bd922c !important;
}

.pkp_structure_sidebar .cjgc-policy__link:hover,
.pkp_structure_sidebar .pkp_block .content .cjgc-policy__link:hover,
.pkp_structure_sidebar .cjgc-policy__link:focus-visible {
  background: #f3ead1 !important;
  color: #08412f !important;
  text-decoration: none !important;
  padding-left: 9px !important;
}

.pkp_structure_sidebar .cjgc-policy__link:focus-visible {
  outline: 2px solid #cba63f !important;
  outline-offset: -2px;
}

@media (max-width: 767px) {
  .pkp_structure_sidebar .cjgc-policy__link {font-size:15px !important;}
  .pkp_structure_sidebar .cjgc-policy__list {padding: 7px 10px !important;}
}




/* ========================================================================
   CARE FINAL 2026 — SIDEBAR EDGE-TO-EDGE + SPACING NORMALIZATION
   Applies to this journal ONLY. Other journals need their own CSS file.
   This final section deliberately overrides earlier sidebar declarations.
   Do not combine/upload with a second older stylesheet.
   ======================================================================== */
:root {
  --care-widget-bg: #fffdf6;
  --care-widget-border: #c8a448;
  --care-widget-panel: #fffdf6;
  --care-widget-title-bg: linear-gradient(125deg,#063b2b,#0b6746);
  --care-widget-title-fg: #fff;
  --care-widget-rule: #d9b54b;
  --care-widget-shadow: rgba(3,55,35,.13);
  --care-widget-link: #075238;
  --care-widget-button-ink: #fff;
}

/* Keep the journal header and navigation exactly full-width. */
.pkp_structure_head,
.pkp_structure_head .pkp_head_wrapper,
.pkp_structure_head .pkp_site_name_wrapper,
.pkp_site_nav_menu {
  box-sizing: border-box !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.pkp_structure_head .pkp_site_name,
.pkp_structure_head .pkp_site_name .is_img,
.pkp_structure_head .pkp_site_name a.is_img {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.pkp_structure_head .pkp_site_name img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  object-fit: contain;
  border: 0 !important;
  box-shadow: none !important;
}

/* Keep widths within the available reading/sidebar columns. */
.pkp_structure_content,
.pkp_structure_main,
.pkp_structure_sidebar {
  box-sizing: border-box !important;
  min-width: 0 !important;
}
.pkp_structure_content { overflow: visible; }
.pkp_structure_sidebar {
  /* Do not change float/grid positioning used by the active OJS theme. */
  background: transparent !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* CRITICAL FIX: strip the FIRST, OJS-generated card around every custom
   sidebar HTML widget. The user's embedded widget already has its own card. */
.pkp_structure_sidebar .pkp_block,
.pkp_structure_sidebar .pkp_block.block_custom,
.pkp_structure_sidebar .pkp_block.block_make_submission {
  display: block;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* CRITICAL FIX: strip the SECOND, OJS-generated padding layer. */
.pkp_structure_sidebar .pkp_block .content,
.pkp_structure_sidebar .pkp_block.block_custom .content,
.pkp_structure_sidebar .pkp_block.block_make_submission .content {
  display: block;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-width: 0 !important;
}

/* TinyMCE may wrap pasted HTML in p/div; remove its unwanted exterior space. */
.pkp_structure_sidebar .pkp_block .content > p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.pkp_structure_sidebar .pkp_block .content > div,
.pkp_structure_sidebar .pkp_block .content > section,
.pkp_structure_sidebar .pkp_block .content > p > div,
.pkp_structure_sidebar .pkp_block .content > p > section {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Fix HTML widgets: exactly one continuous framed card per block. */
.pkp_structure_sidebar .pkp_block .content > div[style*="border"],
.pkp_structure_sidebar .pkp_block .content > p > div[style*="border"] {
  display: block;
  background-clip: padding-box;
  overflow: hidden;
  border-radius: 12px !important;
  box-shadow: 0 8px 22px var(--care-widget-shadow) !important;
}

/* Images: no overflows. Includes OJS, Turnitin, Mendeley, WhatsApp, Flagcounter. */
.pkp_structure_sidebar img,
.pkp_structure_sidebar iframe {
  max-width: 100% !important;
  height: auto;
  vertical-align: middle;
}
.pkp_structure_sidebar .pkp_block .content a,
.pkp_structure_sidebar .pkp_block .content span,
.pkp_structure_sidebar .pkp_block .content div {
  overflow-wrap: break-word;
}

/* Restore clickability/contrast of custom-button HTML even where the old theme
   had global 'all sidebar links' declarations. */
.pkp_structure_sidebar .pkp_block .content a[href*="/about/submissions"][style*="background"],
.pkp_structure_sidebar .pkp_block .content a[href*="hits.sh/"][style*="background"],
.pkp_structure_sidebar .pkp_block .content a[href*="flagcounter"][style*="background"] {
  color: var(--care-widget-button-ink) !important;
  text-decoration: none !important;
}
.pkp_structure_sidebar .pkp_block .content a[href*="wa.me/"] {
  background: #25d366 !important;
  color: #073b25 !important;
  border-radius: 40px !important;
  text-decoration: none !important;
  max-width: 100%;
  box-sizing: border-box;
}
.pkp_structure_sidebar .pkp_block .content a[href*="wa.me/"]:hover,
.pkp_structure_sidebar .pkp_block .content a[href*="wa.me/"]:focus {
  background: #19bc57 !important;
  color: #052b1a !important;
  text-decoration: none !important;
}

/* Native OJS blocks (Browse, Web Feed, Information) retain a tidy, uniform
   card, with no second oversized blank border around them. */
.pkp_structure_sidebar .block_browse,
.pkp_structure_sidebar .block_information,
.pkp_structure_sidebar .block_web_feed,
.pkp_structure_sidebar .block_language,
.pkp_structure_sidebar .block_make_submission {
  background: var(--care-widget-panel) !important;
  border: 1px solid var(--care-widget-border) !important;
  border-radius: 11px !important;
  overflow: hidden !important;
}
.pkp_structure_sidebar .block_browse > .title,
.pkp_structure_sidebar .block_information > .title,
.pkp_structure_sidebar .block_web_feed > .title,
.pkp_structure_sidebar .block_language > .title,
.pkp_structure_sidebar .block_make_submission > .title {
  margin: 0 !important;
  padding: 14px 17px !important;
  color: var(--care-widget-title-fg) !important;
  background: var(--care-widget-title-bg) !important;
  border: 0 !important;
  border-bottom: 3px solid var(--care-widget-rule) !important;
}
.pkp_structure_sidebar .block_browse .content,
.pkp_structure_sidebar .block_information .content,
.pkp_structure_sidebar .block_web_feed .content,
.pkp_structure_sidebar .block_language .content,
.pkp_structure_sidebar .block_make_submission .content {
  padding: 15px !important;
  background: var(--care-widget-panel) !important;
}

/* For embedded widgets, the HTML itself owns all coloring: do not erase it
   with blanket sidebar link/background rules. */
.pkp_structure_sidebar .pkp_block .content > div[style] a {
  text-underline-offset: 3px;
}

/* A clean vertical rhythm between sections, at both sides of the viewport. */
.pkp_structure_sidebar .pkp_block:last-child { margin-bottom: 0 !important; }
.pkp_structure_footer_wrapper { box-sizing: border-box !important; }
.pkp_structure_sidebar .pkp_block .content a:focus-visible {
  outline: 3px solid var(--care-widget-rule) !important;
  outline-offset: 3px;
}

@media (max-width: 991px) {
  .pkp_structure_sidebar .pkp_block { margin-bottom: 16px !important; }
}
@media (max-width: 767px) {
  .pkp_structure_sidebar { padding: 0 !important; margin-top: 18px; }
  .pkp_structure_sidebar .pkp_block .content > div[style*="border"] {
    border-radius: 9px !important;
  }
}


/* CJGC ONLY — high-contrast Make a Submission button.
   Gold instead of white-on-green. This is intentionally NOT in other journals. */
.pkp_structure_sidebar .block_make_submission a,
.pkp_structure_sidebar .pkp_block.block_make_submission .content a,
.pkp_structure_sidebar .block_make_submission a.cmp_button,
.block_make_submission a {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  text-align: center !important;
  background: linear-gradient(135deg,#f6dd7f,#ddb142) !important;
  color: #063b2b !important;
  border: 2px solid #92711e !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 9px rgba(45,54,10,.18) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
}
.pkp_structure_sidebar .block_make_submission a:hover,
.pkp_structure_sidebar .block_make_submission a:focus,
.block_make_submission a:hover,
.block_make_submission a:focus {
  background: linear-gradient(135deg,#e8c157,#c99a2b) !important;
  color: #052f21 !important;
  border-color: #735917 !important;
}


/* CJGC: HILANGKAN GARIS VERTIKAL KANAN BAWAAN OJS SAJA. */
/* Semua gaya asli di atas tetap dipertahankan. */
.pkp_structure_main::after {
  content: none !important;
  display: none !important;
}


/* ========================================================================
   CJGC — UKURAN SAMPUL HOMEPAGE (SAMA SEPERTI JMIAS)
   Perubahan hanya pada gambar sampul di Home, bukan banner/logo atau sidebar.
   ======================================================================== */
.pkp_page_index .homepage_image,
.pkp_structure_main .homepage_image {
  box-sizing: border-box !important;
  max-width: 100% !important;
  margin: 0 0 24px !important;
  text-align: left !important;
}

.pkp_page_index .homepage_image img,
.pkp_structure_main .homepage_image img {
  display: block !important;
  box-sizing: border-box !important;
  width: 240px !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 380px !important;
  object-fit: contain !important;
  margin: 8px 0 20px !important;
  padding: 0 !important;
  border: 1px solid #c9ab56 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(5,43,29,.15) !important;
}

@media (max-width: 767px) {
  .pkp_page_index .homepage_image img,
  .pkp_structure_main .homepage_image img {
    width: 200px !important;
    max-height: 320px !important;
  }
}


/* ===============================================================
   CJGC | TWO-COLUMN OJS LAYOUT + COMPACT TYPE (REVISION)
   Keeps the native floated OJS layout; no grid, flex or left shift.
   =============================================================== */
@media (min-width: 992px) {
  .pkp_structure_content .pkp_structure_main {
    float: left !important;
    width: 65.5% !important;
    max-width: 65.5% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .pkp_structure_content .pkp_structure_sidebar {
    float: right !important;
    width: 32% !important;
    max-width: 32% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .pkp_structure_content .pkp_structure_sidebar {
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
}
@media (max-width: 767px) {
  .pkp_structure_content .pkp_structure_main,
  .pkp_structure_content .pkp_structure_sidebar {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    left: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
/* Journal summary readability */
.page_index_journal .homepage_about p,
.page_index_journal .homepage_about td {
  font-size: 14px !important;
  line-height: 1.65 !important;
}
.page_index_journal .homepage_about p {
  text-align: justify !important;
  text-justify: inter-word;
}
.page_index_journal .homepage_about h2 {
  font-size: 22px !important;
  line-height: 1.3 !important;
}
/* All sidebar widgets: compact OJS-like typography */
.pkp_structure_sidebar .pkp_block .title,
.pkp_structure_sidebar .pkp_block .content h1,
.pkp_structure_sidebar .pkp_block .content h2,
.pkp_structure_sidebar .pkp_block .content h3,
.pkp_structure_sidebar .cjgc-policy__header h1,
.pkp_structure_sidebar .cjgc-policy__header h2,
.pkp_structure_sidebar .cjgc-policy__header h3 {
  font-size: 17px !important;
  line-height: 1.35 !important;
}
.pkp_structure_sidebar .pkp_block .content p,
.pkp_structure_sidebar .cjgc-policy__header p {
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}
.pkp_structure_sidebar .cjgc-policy__header {
  padding: 12px 14px !important;
}
.pkp_structure_sidebar .cjgc-policy__list {
  padding: 4px 12px !important;
}
.pkp_structure_sidebar .cjgc-policy__link,
.pkp_structure_sidebar .pkp_block .content .cjgc-policy__link,
.pkp_structure_sidebar .pkp_block .content a:not(.cmp_button):not(.pkp_button):not(.obj_galley_link) {
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}
.pkp_structure_sidebar .cjgc-policy__link,
.pkp_structure_sidebar .pkp_block .content .cjgc-policy__link {
  min-height: 0 !important;
  padding: 8px 5px !important;
}
.pkp_structure_sidebar .cjgc-policy__chevron {
  font-size: 16px !important;
}
.pkp_structure_sidebar .block_make_submission a,
.pkp_structure_sidebar .pkp_block.block_make_submission .content a {
  font-size: 14px !important;
  padding: 10px 12px !important;
}
.pkp_structure_sidebar .pkp_block {
  margin-bottom: 14px !important;
}
