
/* ===== OJS 3 Custom CSS with Teal Theme ===== */

/* General body style */
body {
    background-color: #f5f8fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
}

/* Header / Site name */
.pkp_site_name {
    color: #00A9BB;
    font-weight: bold;
    font-size: 28px;
}

/* Navigation bar (primary) */
.pkp_navigation_primary ul {
    background-color: #00A9BB;
}

.pkp_navigation_primary ul li a {
    color: #ffffff;
    padding: 12px 16px;
}

.pkp_navigation_primary ul li a:hover,
.pkp_navigation_primary ul li a:focus {
    background-color: #008a99;
    color: #ffffff;
}

/* Current issue title */
.page_index_journal .current_issue h2 {
    color: #006f7c;
    font-size: 24px;
    margin-top: 20px;
}

/* Footer styling */
.pkp_site_footer {
    background-color: #004f56;
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

.pkp_site_footer a {
    color: #00A9BB;
}

/* Buttons */
.btn-primary {
    background-color: #00A9BB;
    border-color: #00A9BB;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #008a99;
    border-color: #008a99;
}

/* Links */
a {
    color: #00A9BB;
}

a:hover {
    color: #006f7c;
}

/* Hide OJS branding (optional) */
.pkp_brand_footer {
    display: none;
}

/* Article page styling */
.obj_article_details h1 {
    font-size: 30px;
    color: #004f56;
}

.obj_article_details .author {
    font-style: italic;
    color: #555;
}

/* Sidebar headings */
.pkp_block .title {
    background-color: #00A9BB;
    color: #ffffff;
    padding: 8px;
    font-weight: bold;
}

/* Responsive layout for mobile */
@media screen and (max-width: 768px) {
    .pkp_navigation_primary ul {
        flex-direction: column;
    }
}

/* Add DOI icon before any DOI link */
a[href*="doi.org"]::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('/public/doilogo.png'); /* ← Replace this path */
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 6px;
    vertical-align: middle;
}

/* Optional: style the link itself */
a[href*="doi.org"] {
    color: #00A9BB;
    text-decoration: none;
}

/* Optional: hide any text like "DOI:" before the link */
.doi_label,
span.doi,
div.doi {
    display: none !important;
}


/* Add static image to sidebar */
.pkp_structure_sidebar::after {
    content: "";
    display: block;
    width: 100%;
    margin-bottom: 20px;
    height: 150px; /* adjust as needed */
    background-image: url('/public/doilogo.png');
    background-image: url('/public/doilogo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 15px;
}


/* Add static image to sidebar */
.pkp_structure_sidebar::after {
    content: "";
    display: block;
    width: 100%;
    margin-bottom: 20px;
    height: 150px; /* adjust as needed */
    background-image: url('/public/doilogo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 15px;
}

/* Define bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Apply bounce on hover only */
.pkp_site_name:hover {
    animation: bounce 0.6s ease-in-out;
}

.pkp_site_name {
    font-size: 42px;     /* Increase from default */
    font-weight: 700;
    line-height: 1.2;
}
/* Zoom in page content slightly */
body {
    transform: scale(1.);         /* 10% zoom in */
    transform-origin: top center;
    /*overflow-x: hidden;*/             /* prevent horizontal scroll */
}

/* Prevent content from triggering scroll by overflow */
html {
    /*overflow-x: hidden;*/
}
/* Default: English (LTR) */
.pkp_site_name {
  transform: translate(20px, -10px);
  transition: transform 0.3s ease;
}

/* For Kurdish, Arabic (RTL) */
[dir="rtl"] .pkp_site_name {
  transform: translate(-20px, -10px);
}


/* Target the main logo in OJS */
.pkp_site_name a img {
    max-height: 75px !important;  /* Increase from default ~50-60px */
    width: auto;
    height: auto;
}

/* Optional: Add spacing if needed */
.pkp_site_name {
    padding: 0px 10;
}

@media screen and (max-width: 768px) {
    .pkp_structure_main {
        padding-top: 100px; /* Adjust this value to match your header height */
    }
}

/* Fix logo being overlapped by other elements */
.pkp_site_name {
    position: relative;
    z-index: 10;
    /*background-color: white; /* Optional: ensures it's visible */*/
    padding: 100px 0;
}

/* Prevent navigation bar from overlapping logo */
.pkp_navigation_primary {
    position: relative;
    z-index: 1;
    border-top: 20px;
}

/* Optional: Remove line that cuts through */
.pkp_navigation_primary::before,
.pkp_navigation_primary::after {
    display: none !important;
}

/* If there's a border causing the line */
.pkp_navigation_primary {
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}


/* Frame around the entire visible site */
.pkp_structure_page {
    border: 5px solid #00A9BB !important; /* Teal border */
    margin: 20px auto;
    max-width: 1300px; /* Keep it centered and clean on big screens */
    background-color: #e0f7f7;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); /* Optional soft shadow */
}

/* Light teal background behind the framed content */
body {
    background-color: #e0f7f7; /* Very light teal for contrast */
}


/* Remove horizontal margins/padding from main content */
.pkp_structure_content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important; /* Make it full width */
    width: 100% !important;
}



@media screen and (max-width: 768px) {
    .pkp_structure_head {
        height: 0 !important;
        /*overflow: hidden;*/
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }
}

@media screen and (max-width: 768px) {
  html[dir="rtl"] .pkp_site_nav_toggle {
    float: right;
    margin-right: 10px;
    margin-left: auto;
  }
}


/* Add this to your custom stylesheet */
.dark-mode body {
  background-color: #121212;
  color: #e0e0e0;
}

.dark-mode a {
  color: #90caf9;
}

.dark-mode .navbar, .dark-mode .header, .dark-mode .pkp_site_nav {
  background-color: #1e1e1e;
}

.dark-mode .pkp_structure_main {
  background-color: #1a1a1a;
}

.dark-mode .footer {
  background-color: #1c1c1c;
  color: #ccc;
}


/* Apply to whole page */
.dark-mode html, .dark-mode body {
  background-color: #121212 !important;
  color: #e0e0e0 !important;
}

/* Header and nav */
.dark-mode header,
.dark-mode .pkp_structure_head,
.dark-mode .pkp_site_nav,
.dark-mode nav {
  background-color: #1f1f1f !important;
  color: #ffffff !important;
}

/* Sidebar */
.dark-mode .pkp_structure_sidebar,
.dark-mode .pkp_block,
.dark-mode .block {
  background-color: #181818 !important;
  color: #cccccc !important;
}

/* Main content */
.dark-mode .pkp_structure_main,
.dark-mode .pkp_structure_content {
  background-color: #1a1a1a !important;
  color: #e0e0e0 !important;
}

/* Footer */
.dark-mode .pkp_structure_footer,
.dark-mode footer {
  background-color: #1c1c1c !important;
  color: #bbbbbb !important;
}

/* Links */
.dark-mode a {
  color: #80cbc4 !important;
}

/* Buttons */
.dark-mode button,
.dark-mode .btn {
  background-color: #2e2e2e !important;
  color: #ffffff !important;
  border-color: #444 !important;
}

/* Forms */
.dark-mode input,
.dark-mode select,
.dark-mode textarea {
  background-color: #252525 !important;
  color: #e0e0e0 !important;
  border: 1px solid #555 !important;
}

/* Tables */
.dark-mode table,
.dark-mode th,
.dark-mode td {
  background-color: #1a1a1a !important;
  color: #cccccc !important;
  border-color: #333 !important;
}



/* Make the top header area dark */
.dark-mode .pkp_structure_head,
.dark-mode .pkp_site_name,
.dark-mode .pkp_site_nav,
.dark-mode .pkp_navigation_user_wrapper,
.dark-mode header,
.dark-mode nav {
  background-color: #1c1c1c !important;
  color: #ffffff !important;
  border-bottom: 1px solid #333 !important;
}

/* Optional: make site title link color lighter */
.dark-mode .pkp_site_name a {
  color: #ffffff !important;
}

/* Optional: change hover color of nav links */
.dark-mode .pkp_site_nav a:hover {
  color: #80cbc4 !important;
}

/* Dark mode override */
.dark-mode .pkp_structure_head {
  background-image: url('public/journals/1/banner_black.PNG') !important;
}

.pkp_site_nav_menu {
  background-color: transparent !important;
}

@media (max-width: 768px) {
  .pkp_site_nav_menu {
    background-color: #00A9BB !important;
  }
}

.dark-mode .pkp_site_nav_menu a {
  color: #ffffff !important;
}

.dark-mode .pkp_site_nav_menu a:hover {
  color: #80cbc4 !important; /* Or any accent color */
}
.dark-mode .obj_issue_toc .published,
.dark-mode .published,
.dark-mode time,
.dark-mode .entry-date,
.dark-mode .pkp_page_index .obj_issue_summary .published {
  color: #ccc !important;
}

/* Increase sidebar width */
.pkp_structure_sidebar {
  width: 250px; /* Default is around 200px */
}

/* Adjust the main content area */
.pkp_structure_main {
  width: calc(100% - 270px); /* 300px sidebar + 20px spacing */
}


.pkp_structure_sidebar {
  margin-left: 20px; /* move it more to the right, or decrease to move left */
  border-left: 1px solid #ccc; /* optional: customize or remove the line */
  padding-left: 20px; /* optional: inner spacing */
}

.pkp_structure_main {
  width: calc(100% - 320px); /* adjust to make space for sidebar */
}


.pkp_structure_main {
  border-right: none !important;
  box-shadow: none !important;
  background-image: none !important;
  background: #e4f9fa !important; /* Match your site's background color */
}

.pkp_structure_main {
  width: 72% !important;
  padding-right: 0% !important;
  box-sizing: border-box;
  border-right: 0px;
}

.pkp_structure_sidebar {
  width: 26% !important;
  border-left: 0px solid #ccc; /* optional: adjust or remove */
  padding-left: 2% !important;
  box-sizing: border-box;
}

.pkp_structure_content {
  display: flex;
  flex-wrap: nowrap;
}

.pkp_structure_main {
  width: 85% !important;
}
.pkp_structure_sidebar.left {
  width: 40% !important;
}


body::after {
  content: "";
  display: block;
  width: 100%;
  height: 400px; /* Adjust to fit all images */
  background-image:
    url('/public/doilogo.png'),
    url('/public/doilogo.png'),
    url('/public/doilogo.png'),
    url('/public/doilogo.png'),
    url('/public/doilogo.png');
  background-repeat: no-repeat;
  background-size: 100px auto; /* or 'contain' if you prefer */
  background-position:
    left bottom,
    center bottom,
    right bottom,
    25% bottom,
    75% bottom;
  margin-top: 50px;
}


