/* ================= GLOBAL ================= */
body {
    transition: background 0.3s ease, color 0.3s ease;
}

* {
    box-sizing: border-box;
}

/* ================= THEME VARIABLES ================= */
:root {
    --journal-dark: #1E6292;
    --journal-light: #3C789E;
}

/* ================= HEADER ================= */

/* DEFAULT (SITE / HOME PAGE) */
body.pkp_page_index .pkp_structure_head {
    background: linear-gradient(135deg, #3C789E, #1E6292);
}

/* JOURNAL PAGES (DYNAMIC THEME FROM BODY ATTRIBUTE) */
body[data-journal-color] .pkp_structure_head {
    background: linear-gradient(
        135deg,
        var(--journal-light, #3C789E),
        var(--journal-dark, #1E6292)
    );
}

/* HEADER BASE STYLE */
.pkp_structure_head {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
}

/* glow line */
.pkp_structure_head::after {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(
        to right,
        transparent,
        #e6f2fb,
        transparent
    );
    opacity: 0.6;
}

/* shrink effect */
.pkp_structure_head.shrink {
    padding: 5px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* ================= HEADER CONTENT ================= */
.custom_header_flex {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

.custom_logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.custom_university_name {
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

/* HEADER HOVER (NO LAYOUT SHIFT FIXED) */
.custom_header_flex:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.custom_header_flex:hover .custom_logo {
    transform: scale(1.05);
}

.custom_header_flex:hover .custom_university_name {
    color: #e6f2fb;
}

.custom_header_flex:active {
    transform: scale(0.98);
}

/* ================= MENU ================= */
.pkp_navigation_primary_row a,
.pkp_navigation_user a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.25s ease;
}

/* MENU HOVER (NO EXPANDING / NO LAYOUT SHIFT FIXED) */
.pkp_navigation_primary_row a:hover,
.pkp_navigation_user a:hover {
    background: rgba(255,255,255,0.08);
    color: #e6f2fb;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* underline animation */
.pkp_navigation_primary_row a::after,
.pkp_navigation_user a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0%;
    height: 2px;
    background: #e6f2fb;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.pkp_navigation_primary_row a:hover::after,
.pkp_navigation_user a:hover::after {
    width: 60%;
}

/* sweep effect */
.pkp_navigation_primary_row a::before,
.pkp_navigation_user a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );
    transition: 0.5s;
}

.pkp_navigation_primary_row a:hover::before,
.pkp_navigation_user a:hover::before {
    left: 120%;
}

/* active menu */
.pkp_navigation_primary_row .current a {
    background: rgba(255,255,255,0.12);
    border-bottom: 2px solid #e6f2fb;
}

/* ================= SIDEBAR BLOCKS ================= */
.pkp_block {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pkp_block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

/* glow border */
.pkp_block::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        transparent,
        rgba(30,98,146,0.25),
        transparent
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}

/* ================= LINKS ================= */
.pkp_block a,
.bhu_journal_table a,
.bhu_linkages_table a {
    position: relative;
    display: block;
    padding: 10px 12px;
    margin: 5px 0;
    border-radius: 8px;
    text-decoration: none;
    color: #1E6292;
    transition: all 0.25s ease;
}

.pkp_block a:hover,
.bhu_journal_table a:hover,
.bhu_linkages_table a:hover {
    background: #f4f9fd;
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* ================= TITLES ================= */
.pkp_block h3,
.bhu_journal_table_block h3,
.bhu_linkages_block h3 {
    color: #1E6292;
    text-align: center;
    position: relative;
}

/* underline */
.pkp_block h3::after,
.bhu_journal_table_block h3::after,
.bhu_linkages_block h3::after {
    content: "";
    display: block;
    width: 40%;
    height: 2px;
    margin: 6px auto 0;
    background: linear-gradient(
        to right,
        transparent,
        #1E6292,
        transparent
    );
}

/* ================= BUTTONS ================= */
button,
input[type="submit"] {
    background: linear-gradient(135deg, #1E6292, #3C789E);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30,98,146,0.3);
}

/* ================= MOBILE MENU ================= */
.menu-toggle {
    display: none;
    font-size: 26px;
    color: white;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {
    .pkp_navigation_primary_row {
        display: none;
        flex-direction: column;
        background: #3C789E;
        width: 100%;
        position: absolute;
        left: 0;
        top: 100%;
    }

    .pkp_navigation_primary_row.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* ================= DARK MODE ================= */
body.dark-mode {
    background: #0f172a;
    color: #e6f2fb;
}

body.dark-mode .pkp_block,
body.dark-mode .bhu_journal_table_block,
body.dark-mode .bhu_linkages_block {
    background: #1e293b;
    color: #e6f2fb;
}

body.dark-mode a {
    color: #8ab4f8;
}

/* Apply color ONLY within the current journal context */
body[data-journal-color] .pkp_structure_head {
    background-color: var(--journal-color) !important;
}

/* ================= INDEXING LOGOS ================= */
.indexing-logos {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.indexing-logos a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-size: 0.7rem;
  color: #333;
  transition: transform 0.25s ease;
}

.indexing-logos img {
  width: 100px;
  height: auto;
  padding: 5px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #ddd;
  transition: transform 0.25s ease;
}

.indexing-logos a:hover {
  transform: scale(1.08);
}

.indexing-logos a:hover img {
  transform: scale(1.12);
}

.indexing-logos a:hover span {
  color: #3C789E;
}

/* ================= CONTACT HOVER (FIXED) ================= */
.contact-block:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, #331057, #3C789E);
  border: 2px solid #fff;
}

.contact-block:hover h3 {
  color: #ffe6ff;
}

.contact-block:hover p {
  color: #f1f1f1;
}

.contact-block:hover a {
  color: #ffd27f;
}