/* ===== Bangladesh Sociological Review - Custom Styling ===== */

/* Hero header: integrate homepage image as header background */
#headerNavigationContainer.pkp_structure_head {
  background-image: linear-gradient(180deg, rgba(11,79,88,0.85) 0%, rgba(15,102,116,0.92) 100%), url('https://scholarcave.com/public/journals/7/homepageImage_en.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pkp_site_name_wrapper {
  padding-top: 34px;
  padding-bottom: 14px;
}

/* Force browsers to fetch the current logo file instead of a stale cached copy */
.pkp_site_name a.is_img {
  position: relative;
  display: inline-block;
}

.pkp_site_name a.is_img img {
  visibility: hidden;
}

.pkp_site_name a.is_img::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('https://scholarcave.com/public/journals/7/pageHeaderLogoImage_en.png?v=3');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

/* Hide the separate homepage image block on the index page since it now lives in the header */
.homepage_image {
  display: none;
}

/* Polish the additional content block on the homepage for an academic feel */
.page_index_journal {
  max-width: 900px;
}

.additional_content {
  background: #ffffff;
  border: 1px solid #e3e7e8;
  border-radius: 8px;
  padding: 28px 32px;
  margin: 24px 0;
  box-shadow: 0 1px 6px rgba(15, 102, 116, 0.08);
  line-height: 1.7;
}

.additional_content p {
  margin-bottom: 16px;
}

.additional_content blockquote {
  border-left: 4px solid #0F6674;
  background: #f4f9fa;
  margin: 20px 0;
  padding: 14px 20px;
  border-radius: 0 6px 6px 0;
  color: #14424a;
}

.additional_content blockquote p {
  margin-bottom: 8px;
}

.additional_content em {
  color: #555;
}

/* ============================================================
   MOBILE HEADER / LOGO ALIGNMENT FIX
   (Fixes the logo dropping too low / misaligned with the menu
   toggle button on phones and tablets)
   ============================================================ */
@media (max-width: 991px) {
  .pkp_site_name_wrapper {
    height: 3.6rem;
    min-height: 3.6rem;
    padding-top: 0;
    padding-bottom: 0;
  }

  .pkp_site_nav_toggle {
    top: 0;
    bottom: 0;
    height: 3.6rem;
  }

  .pkp_site_name {
    top: 0;
    bottom: 0;
    left: 3.6rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    height: auto;
  }

  .pkp_site_name a.is_img {
    display: flex;
    align-items: center;
    height: 2.3rem;
    max-height: 2.3rem;
    width: 100%;
    margin: 0;
  }

  .pkp_site_name a.is_img::before {
    background-position: left center;
  }
}

@media (max-width: 480px) {
  .pkp_site_name {
    left: 3.3rem;
    right: 0.5rem;
  }

  .pkp_site_name a.is_img {
    height: 2rem;
    max-height: 2rem;
  }
}

/* ============================================================
   SIDEBAR REDESIGN - clean card-style blocks
   ============================================================ */
.pkp_structure_sidebar {
  padding-top: 6px;
}

.pkp_structure_sidebar .pkp_block {
  background: #ffffff;
  border: 1px solid #e3e7e8;
  border-radius: 10px;
  padding: 0;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(15, 102, 116, 0.07);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.pkp_structure_sidebar .pkp_block:hover {
  box-shadow: 0 6px 18px rgba(15, 102, 116, 0.14);
}

.pkp_structure_sidebar .pkp_block .title {
  margin: 0;
  padding: 13px 20px;
  background: linear-gradient(135deg, #0F6674 0%, #0b4f58 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pkp_structure_sidebar .pkp_block .content {
  padding: 18px 20px;
}

.pkp_structure_sidebar .pkp_block .content ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.pkp_structure_sidebar .pkp_block .content ul li {
  padding: 6px 0;
  border-bottom: 1px dashed #eceff0;
}

.pkp_structure_sidebar .pkp_block .content ul li:last-child {
  border-bottom: none;
}

.pkp_structure_sidebar .pkp_block .content a {
  color: #0F6674;
  text-decoration: none;
  transition: color 0.15s ease;
}

.pkp_structure_sidebar .pkp_block .content a:hover {
  color: #e8563f;
  text-decoration: underline;
}

/* "Make a Submission" - hero call-to-action button
   (higher-specificity selectors needed to beat the theme's
   own ".block_make_submission a" rule) */
.pkp_structure_sidebar .block_make_submission {
  box-shadow: 0 4px 14px rgba(76, 29, 149, 0.18);
  border: none;
}

.pkp_structure_sidebar .block_make_submission .content {
  padding: 18px;
}

@keyframes submissionFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.block_make_submission a.block_make_submission_link,
.pkp_structure_sidebar .block_make_submission a {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #7c3aed 0%, #4338ca 100%) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.4) !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9em 1em !important;
  line-height: 1.3 !important;
  border-radius: 8px;
  text-decoration: none !important;
  position: relative;
  animation: submissionFloat 2.4s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.block_make_submission a.block_make_submission_link::after,
.pkp_structure_sidebar .block_make_submission a::after {
  content: '\2192';
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.25s ease;
}

.block_make_submission a.block_make_submission_link:hover,
.pkp_structure_sidebar .block_make_submission a:hover {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.03);
  background: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 100%) !important;
  box-shadow: 0 8px 20px rgba(67, 56, 202, 0.5) !important;
  color: #ffffff !important;
}

.block_make_submission a.block_make_submission_link:hover::after,
.pkp_structure_sidebar .block_make_submission a:hover::after {
  transform: translateX(6px);
}

/* Web feed (RSS/Atom) icon row */
.pkp_structure_sidebar .block_web_feed .content ul {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pkp_structure_sidebar .block_web_feed .content ul li {
  border: none;
  padding: 0;
}

.pkp_structure_sidebar .block_web_feed .content img {
  height: 20px;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.pkp_structure_sidebar .block_web_feed .content img:hover {
  opacity: 1;
}

/* ============================================================
   SITE-WIDE POLISH
   ============================================================ */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Desktop primary navigation - subtle underline on hover */
@media (min-width: 992px) {
  .pkp_navigation_primary_wrapper > ul > li > a {
    position: relative;
  }

  .pkp_navigation_primary_wrapper > ul > li > a::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 2px;
    height: 2px;
    background: #ff7847;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }

  .pkp_navigation_primary_wrapper > ul > li > a:hover::after,
  .pkp_navigation_primary_wrapper > ul > li > a:focus::after {
    transform: scaleX(1);
  }
}

/* Mobile dropdown navigation polish */
.pkp_site_nav_menu {
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

.pkp_site_nav_menu .pkp_nav_list > li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pkp_site_nav_menu a {
  padding: 0.5rem 0;
}

/* Footer polish */
.pkp_structure_footer {
  border-top: 3px solid #0F6674;
  padding-top: 24px;
  margin-top: 32px;
}

.pkp_structure_footer a {
  color: #0F6674;
}

.pkp_structure_footer a:hover {
  color: #e8563f;
}
