.pkp_site_nav_menu {
    background: transparent;
}

.pkp_structure_main:first-child:last-child{
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
}

.pkp_structure_main:first-child:last-child:before {
    left: 0;
}

html body nav.cmp_breadcrumbs {
  display: none !important;
}

.cmp_notification {
    color:white;
    border-left: .357rem solid #334824;
    background: linear-gradient(90deg, #608326 , #9D3900 );
}

.cmp_notification a {
    color: white;
}

.pkp_nav_list ul li {
    color: #334824;
}

/* Dropdown menu links - default color #344825 */
#navigationPrimary.pkp_navigation_primary .dropdown-menu li a {
    color: #344825;
    border-left: 4px solid transparent;
    padding-left: 12px;
    transition: all 0.3s ease;
}

/* Dropdown menu links hover - add left border */
#navigationPrimary.pkp_navigation_primary .dropdown-menu li a:hover {
    border-left: 4px solid #344825;
    padding-left: 16px;
}

/* Profile dropdown menu links - default color #344825 */
/* Profile dropdown menu links - default color #344825 */
ul.dropdown-menu li.profile a {
    color: #344825 !important;
    border-left: 4px solid transparent;
    padding-left: 12px;
    transition: all 0.3s ease;
}

/* Profile dropdown menu links hover - add left border */
ul.dropdown-menu li.profile a:hover {
    border-left: 4px solid #344825 !important;
    padding-left: 16px;
}

.pkp_brand_footer {
    display: none;
}

.pkp_footer_content {
    padding: 0;
}

.pkp_structure_footer {
    margin: 0;
    width: auto;
}

/* Universal styling for all sidebar blocks */
.pkp_block {
    background-color: #f8f9fa;
    border-left: 4px solid #344825;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pkp_block h2.title {
    color: #344825;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #344825;
}

.pkp_block .content {
    padding: 0;
}

/* Specific styling for Visitors block */
#customblock-visitors .content {
    text-align: center;
    padding: 10px 0;
}

#customblock-visitors .content p {
    margin: 0;
}

#customblock-visitors .content a {
    display: inline-block;
    transition: transform 0.3s ease;
}

#customblock-visitors .content a:hover {
    transform: scale(1.05);
}

#customblock-visitors .content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* List styling for all blocks */
.pkp_block .content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pkp_block .content ul li {
    margin-bottom: 10px;
}

.pkp_block .content ul li a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    background-color: white;
    border-radius: 3px;
}

.pkp_block .content ul li a:hover {
    color: #344825;
    border-left: 3px solid #344825;
    padding-left: 20px;
    background-color: #f0f4ec;
    box-shadow: 0 2px 4px rgba(52, 72, 37, 0.1);
}
.pkp_structure_main:after {
    width: 0;
}

.pkp_page_index .additional_content {
    padding: 0;
    padding-left: 0;
    padding-right: 0;
    border-top: 0;
}

/* Minimal Header with Small Logo */
.pkp_head_wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 40px;
    max-width: 100%;
    margin: 0 auto;
}

.header_image_wrapper {
    flex-shrink: 0;
}

.header_image_wrapper img {
    width: 90px !important;
    height: 90px !important;
    object-fit: contain;
}

.header_content_wrapper {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.pkp_site_name_wrapper {
    margin-bottom: 10px;
    max-width: 100%;
    overflow: hidden;
}

.pkp_site_name {
    max-width: 100%;
    overflow: hidden;
}

.pkp_site_name a {
    font-size: 20px;
    font-weight: 600;
    color: #344825;
    text-decoration: none;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure navigation wrapper doesn't overflow */
.pkp_site_nav_menu {
    max-width: 100%;
}

.pkp_navigation_primary_wrapper {
    flex-wrap: wrap;
    max-width: 100%;
}

/* Make navigation items wrap if needed */
#navigationPrimary.pkp_navigation_primary {
    flex-wrap: wrap;
}

.pkp_site_name .is_text {
    color: black;
}

.pkp_site_nav_menu a{
    color: black;
}

.pkp_site_nav_menu a:hover, .pkp_site_nav_menu a:focus{
    color: black;
}

.pkp_navigation_search_wrapper a {
    color: white !important;
}


.pkp_navigation_search_wrapper a:hover {
    color: white !important; 
}

footer,
footer * {
  box-sizing: border-box;
  max-width: 100%;
}

/* Tablet */
@media (max-width: 992px) {
  footer div[style*="justify-content: space-between"] {
    flex-direction: column !important;
    text-align: center;
    gap: 30px !important;
  }

  footer div[style*="align-items: center; gap: 40px; flex: 1"] {
    flex-direction: column !important;
    gap: 20px !important;
    min-width: auto !important;
    width: 100% !important;
  }

  footer div[style*="flex-direction: column; align-items: flex-start"] {
    align-items: center !important;
    width: 100%;
  }

  footer div[style*="gap: 20px; margin-top: 18px"] {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  footer {
    padding: 30px 15px !important;
    overflow-x: hidden;
  }

  footer h3 {
    font-size: 20px !important;
    line-height: 1.4 !important;
    word-break: break-word;
  }

  footer h4,
  footer p,
  footer a {
    word-break: break-word;
  }

  footer img[alt="Journal Logo"] {
    max-width: 110px !important;
    width: 100%;
    height: auto;
  }

  /* Email button */
  footer a[href^="mailto:"] {
    display: flex !important;
    width: 100% !important;
    max-width: 280px !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Footer links */
  footer div[style*="gap: 20px; margin-top: 18px"] {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100%;
  }

  footer div[style*="gap: 20px; margin-top: 18px"] a {
    display: block;
    width: 100%;
    text-align: center;
  }

  /* Social icons */
  footer div[style*="gap: 15px;"] {
    justify-content: center !important;
    flex-wrap: wrap;
    width: 100%;
  }

  footer div[style*="gap: 15px;"] a {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }

  /* Bottom copyright */
  footer div[style*="border-top: 1px"] {
    font-size: 12px !important;
    line-height: 1.5;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Extra small devices (320px) */
@media (max-width: 360px) {
  footer {
    padding: 25px 10px !important;
  }

  footer h3 {
    font-size: 17px !important;
  }

  footer p,
  footer a {
    font-size: 12px !important;
  }

  footer a[href^="mailto:"] {
    max-width: 100% !important;
    font-size: 12px !important;
    padding: 9px 10px !important;
  }

  footer img[alt="Journal Logo"] {
    max-width: 90px !important;
  }
}

/* =========================
   RESPONSIVE HEADER FIX
========================= */

/* Prevent header overflow */
.pkp_head_wrapper,
.pkp_head_wrapper * {
  box-sizing: border-box;
  max-width: 100%;
}

/* ---------- Tablet (≤ 992px) ---------- */
@media (max-width: 992px) {

  .pkp_head_wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 15px;
  }

  .header_image_wrapper {
    width: 100%;
    text-align: center;
  }

  .header_image_wrapper img {
    width: 80px !important;
    height: 80px !important;
  }

  .header_content_wrapper {
    width: 100%;
  }

  .pkp_site_name_wrapper {
    width: 100%;
    margin-bottom: 15px;
  }

  .pkp_site_name a {
    font-size: 18px !important;
    line-height: 1.4;
    text-align: center;
  }

  /* Navigation container */
  .pkp_navigation_primary_wrapper {
    width: 100%;
    justify-content: center;
  }

  /* Wrap menu items */
  #navigationPrimary.pkp_navigation_primary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px 10px;
    padding: 0;
  }

  #navigationPrimary > li {
    margin: 0;
  }

  .pkp_navigation_user_wrapper {
    justify-content: center;
    margin-top: 10px;
  }
}


/* ---------- Mobile (≤ 768px) ---------- */
@media (max-width: 768px) {

  .pkp_head_wrapper {
    padding: 15px;
    overflow-x: hidden;
  }

  .header_image_wrapper img {
    width: 70px !important;
    height: 70px !important;
  }

  .pkp_site_name a {
    font-size: 16px !important;
    padding: 0 10px;
    word-break: break-word;
  }

  /* Hamburger button fix */
  .pkp_site_nav_toggle {
    display: block !important;
    margin: 0 auto 15px auto;
  }

  /* Stack mobile menu */
  #navigationPrimary.pkp_navigation_primary {
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
    gap: 0;
  }

  #navigationPrimary > li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  #navigationPrimary > li > a {
    display: block;
    padding: 12px 10px;
  }

  /* Dropdown menus */
  #navigationPrimary li ul {
    position: static !important;
    width: 100% !important;
    min-width: unset !important;
    box-shadow: none !important;
    padding: 0;
  }

  #navigationPrimary li ul li a {
    padding: 10px !important;
    font-size: 14px;
  }

  /* Search */
  .pkp_navigation_search_wrapper {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

  /* Register/Login */
  .pkp_navigation_user_wrapper {
    width: 100%;
    margin-top: 10px;
  }

  #navigationUser {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0;
  }
}


/* ---------- Small Phones (≤ 360px / 320px) ---------- */
@media (max-width: 360px) {

  .pkp_head_wrapper {
    padding: 12px 10px;
  }

  .header_image_wrapper img {
    width: 60px !important;
    height: 60px !important;
  }

  .pkp_site_name a {
    font-size: 14px !important;
    line-height: 1.3;
  }

  #navigationPrimary > li > a {
    font-size: 13px;
    padding: 10px 6px;
  }

  #navigationPrimary li ul li a {
    font-size: 12px;
  }

  #navigationUser li a {
    font-size: 13px;
  }
}

/* =========================
   FIX 1: White site name on tablet/mobile
========================= */
@media (max-width: 992px) {
  .pkp_site_name a,
  .pkp_site_name .is_text {
    color: #ffffff !important;
  }
}


/* =========================
   FIX 2: Mobile dropdown visibility
========================= */
@media (max-width: 768px) {

  /* Make parent menu items work properly */
  #navigationPrimary li {
    position: relative;
  }

  /* Hide dropdown by default */
  #navigationPrimary li ul {
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(255,255,255,0.08);
    margin: 0;
    padding: 0;
    width: 100%;
  }

  /* Show dropdown on hover OR focus */
  #navigationPrimary li:hover > ul,
  #navigationPrimary li:focus-within > ul {
    display: block !important;
  }

  /* Dropdown links */
  #navigationPrimary li ul li {
    width: 100%;
    border: none;
  }

  #navigationPrimary li ul li a {
    display: block;
    width: 100%;
    padding: 10px 20px !important;
    text-align: center;
    color: #ffffff !important;
    background: rgba(255,255,255,0.05);
  }

  #navigationPrimary li ul li a:hover {
    background: rgba(255,255,255,0.12);
  }

  /* Main menu links white too */
  #navigationPrimary > li > a {
    color: #ffffff !important;
  }

  /* Register/Login white */
  #navigationUser li a {
    color: #ffffff !important;
  }

  /* Search white */
  .pkp_navigation_search_wrapper a {
    color: #ffffff !important;
  }
}


/* =========================
   Small devices (320px)
========================= */
@media (max-width: 360px) {
  .pkp_site_name a {
    font-size: 14px !important;
    color: #ffffff !important;
  }

  #navigationPrimary li ul li a {
    font-size: 12px !important;
  }
}
/* ==========================================
   FINAL MOBILE/TABLET HEADER DROPDOWN FIX
========================================== */

@media (max-width: 992px) {

  /* Make heading white */
  .pkp_site_name a,
  .pkp_site_name .is_text {
    color: #ffffff !important;
  }

  /* Make hamburger / close (X) icon white */
  .pkp_site_nav_toggle,
  .pkp_site_nav_toggle span,
  .pkp_site_nav_toggle::before,
  .pkp_site_nav_toggle::after {
    color: #ffffff !important;
    border-color: #ffffff !important;
  }

  /* When menu is opened, make background green */
  .pkp_site_nav_menu,
  .pkp_site_nav_menu--isOpen {
    background: #123524 !important;
  }

  /* Main nav links */
  .pkp_site_nav_menu a,
  #navigationPrimary > li > a,
  #navigationUser li a,
  .pkp_navigation_search_wrapper a {
    color: #ffffff !important;
  }

  /* ---------- DROPDOWN FIX ---------- */

  /* REMOVE OJS absolute positioning */
  #navigationPrimary li ul {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;

    /* Dropdown color */
    background: #123524 !important;

    /* Visibility */
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;

    width: 100% !important;
    min-width: 100% !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Show dropdown when active */
  #navigationPrimary li:hover > ul,
  #navigationPrimary li:focus-within > ul {
    display: block !important;
  }

  /* Dropdown item styling */
  #navigationPrimary li ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  #navigationPrimary li ul li a {
    color: #ffffff !important;
    background: #123524 !important;
    padding: 12px 20px !important;
    text-align: center;
  }

  #navigationPrimary li ul li a:hover {
    background: rgba(255,255,255,0.08) !important;
  }
}
