:root {
  --custom-primary: #3b6d98;
  --custom-primary-dark: #2d5579;
  --custom-primary-light: #4985b7;
}

.custom-bg-primary {
  background-color: var(--custom-primary);
}

.custom-bg-primary-light {
  background-color: var(--custom-primary-light);
}

.custom-bg-primary-dark {
  background-color: var(--custom-primary-dark);
}

.custom-text-primary-dark {
  color: var(--custom-primary-dark);
}

.custom-text-primary-dark:hover {
  color: var(--custom-primary);
}

.custom-text-primary {
  color: var(--custom-primary);
}

.custom-text-primary:hover {
  color: var(--custom-primary-light);
}

.pkp_brand_footer {
  display: none;
}

.side {
  background-color: #3b6d98;
  color: white;
  padding: 0.75em 1em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 5px;
  font-family: "Montserrat", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue";
  display: block;
  font-weight: bold;
}

a.side:hover {
  background-color: #f6f7f0;
  cursor: pointer;
  color: #3b6d98;
  border: 1px solid #3b6d98;
}

.col-md-2 {
  display: none;
}

/* Custom Footer */
.pkp_structure_footer_wrapper {
  background-color: #1c2331 !important;
  --bs-text-opacity: 1;
  color: rgba(var(--bs-white-rgb), var(--bs-text-opacity)) !important;
  margin-top: 3rem !important;
}

.pkp_structure_footer {
  width: 100% !important;
}

.pkp_footer_content {
  padding: 0;
}

/* Border Bottom Class */
.custom-border-bottom {
  border-bottom: 2px solid #3b6d98;
}

.footer-link:hover {
  color: #3b6d98 !important;
  text-decoration: underline !important;
  text-decoration-color: #3b6d98 !important;
}

/* Custom Button */
.obj_galley_link {
  padding: 0.3em 1em;
  background: var(--custom-primary);
  border: none;
  color: #fff;
}

.obj_galley_link:hover,
.obj_galley_link:focus {
  background-color: var(--custom-primary-light) !important;
}

/* Side bar Buttons */
.sidebar_btn {
  background-color: transparent;
  color: #1c2331;
  border: 2px solid var(--custom-primary-dark);
}

.sidebar_btn:hover {
  background-color: var(--custom-primary-dark);
  color: #fff;
}

/* Custom Home Page */
.page_index_journal {
  display: flex;
  flex-direction: column-reverse;
}

.page_index_journal .additional_content {
  border-top: none !important;
}

@media (min-width: 992px) {
  .pkp_page_index .additional_content {
    padding-bottom: 30px !important;
  }
  
  /* Navbar */
  .pkp_nav_list ul {
    background-color: var(--custom-primary);
  }
  
  .pkp_nav_list ul a {
    color: #fff;
  }
  
  .pkp_nav_list ul a:hover {
    border-left: 5px solid var(--custom-primary-dark) !important;
    background: var(--custom-primary-light);
    color: #fff;
  }
}

.card-image {
  width: 100px;
  margin: 0.5rem auto;
}

#about_the_journal .journal-option-card:hover {
  background-color: rgba(59, 109, 152, 0.1);
}

.list-group-item {
  border: none;
}

/* Agricultural & Food Technology themed styles */
.hero-section {
  background: linear-gradient(135deg, var(--custom-primary) 0%, var(--custom-primary-dark) 100%);
}

.agriculture-card {
  border-left: 4px solid var(--custom-primary);
  transition: all 0.3s ease;
}

.agriculture-card:hover {
  border-left: 4px solid var(--custom-primary-light);
  box-shadow: 0 4px 12px rgba(59, 109, 152, 0.15);
  transform: translateY(-2px);
}

/* Agricultural themed accents */
.agri-accent {
  color: var(--custom-primary);
}

.agri-bg {
  background-color: rgba(59, 109, 152, 0.05);
}

/* Link styling for agricultural theme */
a {
  color: var(--custom-primary);
}

a:hover {
  color: var(--custom-primary-dark);
}

/* Button variants for agricultural theme */
.btn-agri-primary {
  background-color: var(--custom-primary);
  border-color: var(--custom-primary);
  color: #fff;
}

.btn-agri-primary:hover {
  background-color: var(--custom-primary-dark);
  border-color: var(--custom-primary-dark);
  color: #fff;
}

.btn-agri-outline {
  background-color: transparent;
  border-color: var(--custom-primary);
  color: var(--custom-primary);
}

.btn-agri-outline:hover {
  background-color: var(--custom-primary);
  border-color: var(--custom-primary);
  color: #fff;
}

/* Research methodology styling for agriculture */
.methodology-section {
  background-color: rgba(59, 109, 152, 0.08);
  border-left: 4px solid var(--custom-primary);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

/* Enhanced table styling for agricultural data */
.agri-table {
  border-color: var(--custom-primary-light);
}

.agri-table th {
  background-color: var(--custom-primary);
  color: #fff;
  border-color: var(--custom-primary-dark);
}

.agri-table td {
  border-color: var(--custom-primary-light);
}

/* Focus states for accessibility */
.sidebar_btn:focus,
.obj_galley_link:focus,
.side:focus {
  outline: 2px solid var(--custom-primary-light);
  outline-offset: 2px;
}

/* Agricultural themed badges */
.badge-agriculture {
  background-color: var(--custom-primary);
  color: #fff;
}

.badge-food-tech {
  background-color: var(--custom-primary-light);
  color: #fff;
}

/* Text styling for agricultural content */
.text-agri-primary {
  color: var(--custom-primary);
}

.text-agri-secondary {
  color: var(--custom-primary-dark);
}

/* Special styling for research sections */
.research-highlight {
  background: linear-gradient(135deg, rgba(59, 109, 152, 0.05) 0%, rgba(59, 109, 152, 0.02) 100%);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(59, 109, 152, 0.2);
}

/* Loading states */
.loading-agri {
  background: linear-gradient(90deg, var(--custom-primary-light), var(--custom-primary), var(--custom-primary-light));
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Enhanced dividers */
.divider-agri {
  border-color: var(--custom-primary-light);
}

/* Crop and food science icons */
.icon-crop::before {
  content: "🌾";
  color: var(--custom-primary);
  margin-right: 0.5rem;
}

.icon-food::before {
  content: "🍎";
  color: var(--custom-primary);
  margin-right: 0.5rem;
}

.icon-research::before {
  content: "🔬";
  color: var(--custom-primary);
  margin-right: 0.5rem;
}

/* Sustainability indicators */
.sustainable-indicator {
  background: var(--custom-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Publication stats styling */
.pub-stats {
  background: white;
  border: 2px solid var(--custom-primary-light);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.pub-stats:hover {
  border-color: var(--custom-primary);
  box-shadow: 0 4px 15px rgba(59, 109, 152, 0.1);
}/* Footer Override Styles - Universal Footer Hover Effects - LINKS ONLY */
footer a[href],
footer a[href].text-white,
footer a[href].text-decoration-none,
footer .text-white.text-decoration-none[href],
footer .journal-links a[href],
footer .footer-section a[href],
footer section a[href],
footer div a[href] {
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

footer a[href]:hover,
footer a[href].text-white:hover,
footer a[href].text-decoration-none:hover,
footer .text-white.text-decoration-none[href]:hover,
footer .journal-links a[href]:hover,
footer .footer-section a[href]:hover,
footer section a[href]:hover,
footer div a[href]:hover {
    color: #3498db !important;
    text-decoration: underline !important;
    text-decoration-color: #3498db !important;
    border: none !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Override any existing footer link styles - LINKS ONLY */
footer .footer-link[href]:hover,
footer a[href]:hover {
    color: #3498db !important;
    text-decoration: underline !important;
    text-decoration-color: #3498db !important;
}

/* Special case for already blue links - LINKS ONLY */
footer a[href][style*="color: #3498db"]:hover,
footer .fw-bold[href]:hover {
    color: #3498db !important;
    text-decoration: underline !important;
    text-decoration-color: #3498db !important;
}

/* Bottom bar links with opacity - LINKS ONLY */
footer .opacity-75[href]:hover,
footer a[href].opacity-75:hover {
    color: #3498db !important;
    text-decoration: underline !important;
    text-decoration-color: #3498db !important;
    opacity: 1 !important;
}

/* Ensure headings and non-link text are NOT affected */
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6,
footer p, footer span, footer div:not([href]),
footer .mb-0, footer .fw-bold:not([href]),
footer .text-light, footer .opacity-75:not([href]) {
    transition: none !important;
}

footer h1:hover, footer h2:hover, footer h3:hover, footer h4:hover, footer h5:hover, footer h6:hover,
footer p:hover, footer span:hover, footer div:not([href]):hover,
footer .mb-0:hover, footer .fw-bold:not([href]):hover,
footer .text-light:hover, footer .opacity-75:not([href]):hover {
    color: inherit !important;
    text-decoration: none !important;
    transform: none !important;
    background: transparent !important;
}