body {
  font-family: "Lato", sans-serif;
}

.navbar {
  background-color: #003366;
}

.navbar-brand {
  font-size: 30px;
  color: #ffffff !important;
  text-decoration: none;
  white-space: normal !important;
  background-color: transparent;
  /* ensures it's transparent initially too */
}
.navbar-default .nav > li > a,
.header_view .nav > li > a {
  color: #ffffff;
}

.navbar-brand:hover {
  color: #ffff00 !important;
  background-color: transparent !important;
  /* makes sure no background shows */
  text-decoration: none;
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 30px;
  }

  .navbar-form {
    display: flex;
  }

  .navbar-form .btn {
    margin-right: 5px;
  }

  .navbar-form .form-control {
    width: 280px;
    margin-right: 10px;
    padding: 20px;
  }
  .navbar-brand {
    font-size: 18px;
    padding: 5px 5px;
  }
}

@media (max-width: 340px) {
  .navbar-brand {
    font-size: 16px;
    padding: 5px 5px;
  }
}

/* Custom footer styles */
footer.footer {
  width: 100%;
  background: #003366;
  color: #ffffff;
  padding: 0;
  box-sizing: border-box;
  position: relative;
}

footer.footer .container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
  width: 100%;
  position: relative;
}

footer.footer .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
}

footer.footer .col-md-10 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0;
  width: 100%;
  position: relative;
}

footer.footer .col-md-2 {
  display: none;
}

.jt-footer {
  padding: 40px 0 20px;
  margin-top: 40px;
  box-sizing: border-box;
  width: 100%;
  position: relative;
}

.jt-footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 15px;
  box-sizing: border-box;
  width: 100%;
  position: relative;
}

.jt-footer-section {
  flex: 1;
  min-width: 250px;
  margin: 0 15px;
  box-sizing: border-box;
  text-align: center;
  width: 100%;
  position: relative;
}

.jt-footer-section:first-child {
  margin-left: 0;
}

.jt-footer-section:last-child {
  margin-right: 0;
}

.jt-footer-section h4 {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
  text-align: center;
}

.jt-footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.jt-footer-section ul li {
  margin-bottom: 8px;
}

.jt-footer-section ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

.jt-footer-section ul li a:hover {
  color: #ecf0f1;
}

.jt-social-icons {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
  position: relative;
}

.jt-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.jt-social-icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jt-footer-bottom {
  background: #002244;
  text-align: center;
  padding: 15px 0;
  margin-top: 20px;
  font-size: 13px;
  width: 100%;
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .jt-footer-section {
    flex: 1;
    min-width: 100%;
    margin: 15px 0;
    width: 100%;
    padding: 0 15px;
  }

  .jt-footer-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 15px;
  }

  .jt-social-icons {
    justify-content: center;
    width: 100%;
  }
}

/* Remove OJS/PKP branding in footer */
footer .col-md-2 {
  display: none;
}

/* Submission Button Styling */
.block_make_submission .block_make_submission_link {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #0b57d0 !important;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.block_make_submission .block_make_submission_link:hover {
  background-color: #3b6ebf !important;
}

.btn-group {
  gap: 0.75rem;
  padding: 0.5rem;
}

.galley-link {
  white-space: normal;
}

/* View All Issues Button */
.btn-primary.read-more {
  margin-left: 0.5rem;
  margin-bottom: 1rem;
}

/* Move toggle button to the left on mobile devices */
@media (max-width: 767px) {
  .navbar-header {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
}

@media screen and (max-width: 1024px) {
  .pull-md-right {
    float: right !important;
    margin-left: 25px;
  }
}

body.pkp_op_contact .contact.primary {
  display: none !important;
}

/* Hide the original "Support Contact" heading */
.page_contact .contact.support h2 {
  font-size: 0;
  position: relative;
}

/* Insert "Editor Contact" with padding below */
.page_contact .contact.support h2::before {
  content: "Editor Contact";
  font-size: 25px;
  position: absolute;
  left: 0;
  top: 0;
}

.page_contact .contact.support .name {
  display: none !important;
}

.page_contact .contact.support .email {
  padding-top: 30px;
}
