/* ==========================================================
   Tikrit Journal of Veterinary Sciences (TJVS) - OJS theme
   Palette taken from the journal logo: navy, gold, maroon
   Works over the OJS "Default" theme (3.3 / 3.4 / 3.5)
   Upload: Settings > Website > Appearance > Advanced >
   Journal style sheet
   ========================================================== */

:root {
  --navy:   #2b3490;
  --navy-d: #1b2266;
  --gold:   #c9a62b;
  --gold-l: #f3e9c4;
  --maroon: #7b2a2a;
  --cream:  #fbf7ec;
  --ink:    #222639;
  --muted:  #666b80;
  --line:   #e6dfc6;
  --card:   #ffffff;
  --r: 12px;
  --sh: 0 2px 10px rgba(27, 34, 102, .09);
  --sh-h: 0 10px 24px rgba(27, 34, 102, .18);
}

/* ---------- Base ---------- */
body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI", "Noto Sans", "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
  line-height: 1.7;
}
a { color: var(--navy); transition: color .2s ease; }
a:hover, a:focus { color: var(--maroon); }
h1, h2, h3, h4 { color: var(--navy-d); }
::selection { background: var(--gold); color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
html { scroll-behavior: smooth; }

/* ---------- Header + navigation (logo sits inside the nav row in OJS 3.4/3.5) ---------- */
body .pkp_structure_head {
  background: linear-gradient(90deg, var(--navy-d), var(--navy)) !important;
  border-bottom: 4px solid var(--gold) !important;
  box-shadow: 0 3px 14px rgba(27, 34, 102, .25);
}
body .pkp_structure_head .pkp_head_wrapper,
body .pkp_structure_head .pkp_navigation_primary_wrapper,
body .pkp_structure_head .pkp_navigation_primary_row,
body .pkp_structure_head .pkp_navigation_user_wrapper,
body .pkp_structure_head .pkp_site_name_wrapper {
  background: transparent !important;
  border: 0 !important;
}
.pkp_site_name .is_img img {
  width: auto;
  height: auto;
  max-height: 68px;
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  transition: transform .3s ease;
}
.pkp_site_name .is_img img:hover { transform: scale(1.05); }
.pkp_site_name .is_text { color: #fff; font-weight: 700; }

body .pkp_structure_head a,
body .pkp_navigation_primary > li > a,
body .pkp_navigation_user > li > a,
body .pkp_navigation_user_wrapper a {
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  transition: background .25s ease, color .25s ease;
}
body .pkp_navigation_primary > li > a:hover,
body .pkp_navigation_primary > li > a:focus,
body .pkp_navigation_user > li > a:hover,
body .pkp_navigation_user_wrapper a:hover {
  background: var(--gold) !important;
  color: var(--navy-d) !important;
}
body .pkp_navigation_primary ul {
  background: #fff !important;
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--r) var(--r);
  box-shadow: var(--sh-h);
  overflow: hidden;
}
body .pkp_navigation_primary ul a { color: var(--navy-d) !important; border-radius: 0; }
body .pkp_navigation_primary ul a:hover { background: var(--gold-l) !important; color: var(--maroon) !important; }
.task_count { background: var(--gold) !important; color: var(--navy-d) !important; font-weight: 700; }

/* Search box */
body .pkp_navigation_search_wrapper input,
body .pkp_search input[type="text"],
body .pkp_search input[type="search"] {
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
}
body .pkp_navigation_search_wrapper input:focus { border-color: var(--gold); }
body .pkp_navigation_search_wrapper button,
body .pkp_navigation_search_wrapper .search_button,
body .pkp_navigation_search_wrapper .search_prompt,
body .pkp_search button {
  background: var(--gold) !important;
  color: var(--navy-d) !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
body .pkp_navigation_search_wrapper button:hover,
body .pkp_search button:hover { background: #fff !important; transform: translateY(-1px); }

/* ---------- Breadcrumbs ---------- */
.cmp_breadcrumbs { background: var(--gold-l); border-radius: 0 0 var(--r) var(--r); padding: 8px 16px; }
.cmp_breadcrumbs a { color: var(--navy); }

/* ---------- Main content ---------- */
.pkp_structure_content { padding-top: 22px; }
.pkp_structure_main {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 28px 32px;
  margin-top: 8px;
}
.page_title, .pkp_structure_main h1 { position: relative; padding-bottom: 10px; margin-bottom: 22px; color: var(--navy-d); }
.page_title::after, .pkp_structure_main h1::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 80px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
}
[dir="rtl"] .page_title::after, [dir="rtl"] .pkp_structure_main h1::after { left: auto; right: 0; }

.homepage_image img { border-radius: var(--r); box-shadow: var(--sh); }
.cmp_announcements .obj_announcement_summary {
  background: var(--gold-l);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 12px 16px; margin-bottom: 14px;
}

/* ---------- Issues ---------- */
.current_issue .current_issue_title { color: var(--maroon); font-weight: 700; }
.obj_issue_summary {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; transition: transform .25s ease, box-shadow .25s ease;
}
.obj_issue_summary:hover { transform: translateY(-4px); box-shadow: var(--sh-h); }
.obj_issue_summary .cover img { border-radius: 8px; box-shadow: var(--sh); }
.sections .section > h2, .current_issue .section > h2 {
  background: var(--gold-l); color: var(--navy-d);
  border-left: 5px solid var(--navy); border-radius: 0 8px 8px 0;
  padding: 8px 14px; font-size: 1.1rem;
}

/* ---------- Article cards ---------- */
.obj_article_summary {
  background: var(--card); border: 1px solid var(--line);
  border-left: 5px solid var(--navy); border-radius: var(--r);
  padding: 16px 20px; margin-bottom: 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.obj_article_summary:hover { transform: translateY(-3px); box-shadow: var(--sh-h); border-left-color: var(--gold); }
.obj_article_summary .title a { color: var(--navy-d); font-weight: 700; }
.obj_article_summary .title a:hover { color: var(--maroon); }
.obj_article_summary .authors, .obj_article_summary .meta { color: var(--muted); }

.obj_galley_link, a.obj_galley_link {
  background: var(--navy); color: #fff !important; border: none;
  border-radius: 20px; padding: 5px 18px; font-weight: 600;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.obj_galley_link:hover, a.obj_galley_link:hover { background: var(--gold); color: var(--navy-d) !important; transform: scale(1.06); }

/* ---------- Article page ---------- */
.obj_article_details .item.abstract,
.obj_article_details .item.keywords,
.obj_article_details .item.references {
  background: #fffdf6; border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 18px; margin-bottom: 18px;
}
.obj_article_details .item .label { color: var(--maroon); font-weight: 700; }
.obj_article_details .authors .name { color: var(--navy-d); font-weight: 600; }

/* ---------- Buttons & forms ---------- */
.cmp_button, .cmp_button_wire, .pkp_button, button.submit, input[type="submit"] {
  background: var(--navy); color: #fff; border: none; border-radius: 24px;
  padding: 8px 22px; font-weight: 600; box-shadow: var(--sh);
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cmp_button:hover, .cmp_button_wire:hover, .pkp_button:hover,
button.submit:hover, input[type="submit"]:hover {
  background: var(--gold); color: var(--navy-d); transform: translateY(-2px); box-shadow: var(--sh-h);
}
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], textarea, select {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43, 52, 144, .15); outline: none;
}

/* ---------- Sidebar ---------- */
.pkp_structure_sidebar .pkp_block {
  background: var(--card); border: 1px solid var(--line);
  border-top: 4px solid var(--gold); border-radius: var(--r);
  box-shadow: var(--sh); padding: 16px 18px; margin-bottom: 20px;
}
.pkp_block .title,
.pkp_structure_sidebar .pkp_block .title {
  font-size: 1.1rem !important;
  line-height: 1.4 !important;
  color: var(--navy-d) !important;
  font-weight: 700;
  background: var(--gold-l) !important;
  border-bottom: 2px solid var(--gold) !important;
  border-radius: 8px;
  padding: 8px 14px !important;
  margin: 0 0 12px !important;
}
.pkp_block ul li a { display: block; padding: 4px 8px; border-radius: 6px; transition: background .2s ease, padding .2s ease; }
.pkp_block ul li a:hover { background: var(--gold-l); padding-left: 14px; }

/* ---------- Tables ---------- */
table { border-collapse: collapse; border-radius: 8px; overflow: hidden; }
th { background: var(--navy); color: #fff; }
tr:nth-child(even) td { background: #faf6e6; }

/* ---------- Footer ---------- */
.pkp_structure_footer_wrapper {
  background: linear-gradient(135deg, var(--navy-d), var(--navy));
  border-top: 5px solid var(--gold);
  color: #e6e8f7; margin-top: 36px;
}
.pkp_structure_footer_wrapper a { color: var(--gold-l); }
.pkp_structure_footer_wrapper a:hover { color: #fff; }
.pkp_brand_footer { opacity: .85; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--gold-l); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .pkp_structure_main { padding: 18px 16px; }
  .pkp_navigation_primary > li > a { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* ==========================================================
   VETERINARY IDENTITY LAYER
   paw prints, animal icons, heartbeat line (inline SVG,
   no extra image files needed)
   ========================================================== */


/* Header: paw-print texture on the navy gradient */
body .pkp_structure_head {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cg fill='%2523ffffff' fill-opacity='0.07' transform='translate(8,10) rotate(-18 32 32) scale(.8)'%3E%3Cellipse cx='32' cy='43' rx='14' ry='11'/%3E%3Cellipse cx='13' cy='30' rx='6' ry='8.5' transform='rotate(-22 13 30)'/%3E%3Cellipse cx='25' cy='17' rx='6' ry='9'/%3E%3Cellipse cx='39' cy='17' rx='6' ry='9'/%3E%3Cellipse cx='51' cy='30' rx='6' ry='8.5' transform='rotate(22 51 30)'/%3E%3C/g%3E%3Cg fill='%2523ffffff' fill-opacity='0.07' transform='translate(85,78) rotate(22 32 32) scale(.8)'%3E%3Cellipse cx='32' cy='43' rx='14' ry='11'/%3E%3Cellipse cx='13' cy='30' rx='6' ry='8.5' transform='rotate(-22 13 30)'/%3E%3Cellipse cx='25' cy='17' rx='6' ry='9'/%3E%3Cellipse cx='39' cy='17' rx='6' ry='9'/%3E%3Cellipse cx='51' cy='30' rx='6' ry='8.5' transform='rotate(22 51 30)'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(90deg, var(--navy-d), var(--navy)) !important;
  position: relative;
  z-index: 5;
}


/* Paw icon before page titles */
.pkp_structure_main h1::before, .page_title::before {
  content: "";
  display: inline-block;
  width: .9em; height: .9em;
  margin: 0 .45em 0 0;
  vertical-align: -.08em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%2523c9a62b' fill-opacity='1' transform=''%3E%3Cellipse cx='32' cy='43' rx='14' ry='11'/%3E%3Cellipse cx='13' cy='30' rx='6' ry='8.5' transform='rotate(-22 13 30)'/%3E%3Cellipse cx='25' cy='17' rx='6' ry='9'/%3E%3Cellipse cx='39' cy='17' rx='6' ry='9'/%3E%3Cellipse cx='51' cy='30' rx='6' ry='8.5' transform='rotate(22 51 30)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
[dir="rtl"] .pkp_structure_main h1::before, [dir="rtl"] .page_title::before { margin: 0 0 0 .45em; }

/* Paw icon in sidebar block titles */
body .pkp_block .title {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%2523c9a62b' fill-opacity='1' transform=''%3E%3Cellipse cx='32' cy='43' rx='14' ry='11'/%3E%3Cellipse cx='13' cy='30' rx='6' ry='8.5' transform='rotate(-22 13 30)'/%3E%3Cellipse cx='25' cy='17' rx='6' ry='9'/%3E%3Cellipse cx='39' cy='17' rx='6' ry='9'/%3E%3Cellipse cx='51' cy='30' rx='6' ry='8.5' transform='rotate(22 51 30)'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 12px center !important;
  background-size: 20px 20px !important;
  padding-left: 40px !important;
}
[dir="rtl"] body .pkp_block .title {
  background-position: calc(100% - 12px) center !important;
  padding-left: 14px !important; padding-right: 40px !important;
}

/* Faint paw watermark on article and issue cards */
.obj_article_summary, .obj_issue_summary {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%2523c9a62b' fill-opacity='0.14' transform=''%3E%3Cellipse cx='32' cy='43' rx='14' ry='11'/%3E%3Cellipse cx='13' cy='30' rx='6' ry='8.5' transform='rotate(-22 13 30)'/%3E%3Cellipse cx='25' cy='17' rx='6' ry='9'/%3E%3Cellipse cx='39' cy='17' rx='6' ry='9'/%3E%3Cellipse cx='51' cy='30' rx='6' ry='8.5' transform='rotate(22 51 30)'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px bottom 10px;
  background-size: 54px 54px;
}

/* Footer: strip of animals (paw, bone, fish, sheep, cat, medical cross) */
.pkp_structure_footer_wrapper { position: relative; padding-top: 74px; }
.pkp_structure_footer_wrapper::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 6px;
  height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='840' height='64' viewBox='0 0 840 64'%3E%3Cg fill='%2523c9a62b' fill-opacity='0.45' transform='translate(10,0)'%3E%3Cellipse cx='32' cy='43' rx='14' ry='11'/%3E%3Cellipse cx='13' cy='30' rx='6' ry='8.5' transform='rotate(-22 13 30)'/%3E%3Cellipse cx='25' cy='17' rx='6' ry='9'/%3E%3Cellipse cx='39' cy='17' rx='6' ry='9'/%3E%3Cellipse cx='51' cy='30' rx='6' ry='8.5' transform='rotate(22 51 30)'/%3E%3C/g%3E%3Cg fill='%2523c9a62b' fill-opacity='0.45' transform='translate(130,0)'%3E%3Crect x='12' y='26' width='40' height='12' rx='3'/%3E%3Ccircle cx='12' cy='25' r='7'/%3E%3Ccircle cx='12' cy='39' r='7'/%3E%3Ccircle cx='52' cy='25' r='7'/%3E%3Ccircle cx='52' cy='39' r='7'/%3E%3C/g%3E%3Cg fill='%2523c9a62b' fill-opacity='0.45' transform='translate(250,0)'%3E%3Cellipse cx='28' cy='32' rx='22' ry='12'/%3E%3Cpolygon points='46,32 62,18 62,46'/%3E%3Ccircle cx='16' cy='29' r='2.2' fill='%2523ffffff' fill-opacity='1'/%3E%3C/g%3E%3Cg fill='%2523c9a62b' fill-opacity='0.45' transform='translate(370,0)'%3E%3Ccircle cx='20' cy='30' r='10'/%3E%3Ccircle cx='31' cy='25' r='11'/%3E%3Ccircle cx='42' cy='30' r='10'/%3E%3Ccircle cx='31' cy='37' r='11'/%3E%3Cellipse cx='53' cy='33' rx='5.5' ry='8'/%3E%3Crect x='22' y='44' width='3.5' height='13' rx='1.5'/%3E%3Crect x='38' y='44' width='3.5' height='13' rx='1.5'/%3E%3C/g%3E%3Cg fill='%2523c9a62b' fill-opacity='0.45' transform='translate(490,0)'%3E%3Ccircle cx='32' cy='37' r='18'/%3E%3Cpolygon points='15,28 17,6 31,21'/%3E%3Cpolygon points='49,28 47,6 33,21'/%3E%3C/g%3E%3Cg fill='%2523c9a62b' fill-opacity='0.45' transform='translate(610,0)'%3E%3Crect x='24' y='8' width='16' height='48' rx='4'/%3E%3Crect x='8' y='24' width='48' height='16' rx='4'/%3E%3C/g%3E%3Cg fill='%2523c9a62b' fill-opacity='0.45' transform='translate(730,0)'%3E%3Cellipse cx='32' cy='43' rx='14' ry='11'/%3E%3Cellipse cx='13' cy='30' rx='6' ry='8.5' transform='rotate(-22 13 30)'/%3E%3Cellipse cx='25' cy='17' rx='6' ry='9'/%3E%3Cellipse cx='39' cy='17' rx='6' ry='9'/%3E%3Cellipse cx='51' cy='30' rx='6' ry='8.5' transform='rotate(22 51 30)'/%3E%3C/g%3E%3C/svg%3E") repeat-x center;
  background-size: 840px 64px;
  pointer-events: none;
}



/* ==========================================================
   v4: page background + heartbeat line inside the header
   ========================================================== */

/* Clean, cool blue-white background that matches the navy/gold identity */
html, body { background: #eef3fb !important; background-image: none !important; }
body { background: linear-gradient(180deg, #e8eff9 0%, #f6f9fe 38%, #f6f9fe 100%) fixed !important; }
.pkp_structure_page { background: transparent !important; }
.pkp_structure_content { padding-top: 28px; }

/* Heartbeat (ECG) line running along the bottom of the header bar */
body .pkp_structure_head { position: relative; padding-bottom: 28px; }
body .pkp_structure_head::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='30' viewBox='0 0 240 30'%3E%3Cpath d='M0 15 H64 L72 15 L78 3 L86 27 L93 8 L98 15 H240' fill='none' stroke='%2523c9a62b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 240px 28px;
  background-position: 0 center;
  opacity: .95;
  pointer-events: none;
  z-index: 1;
  animation: tjvs-ecg 7s linear infinite;
}
@keyframes tjvs-ecg { from { background-position: 0 center; } to { background-position: -240px center; } }
