/* Green header links with text shadow for contrast */
.card-title a.university-link {
  color: var(--primary-dark) !important;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8),
    0 2px 6px rgba(0, 0, 0, 0.15);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.card-title a.university-link:hover {
  color: var(--primary-color) !important;
  text-decoration: underline;
}
/* Consistent RCBS logo sizing for research center page */
.rcbs-logo {
  max-width: 220px;
  border: none;
  box-shadow: none;
}
/* Action Research page list styling (replaces Bootstrap list-group card look) */
.ar-link-list {
  list-style: none;
  padding-left: 0;
}
.ar-link-list > li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}
.ar-link-list > li:last-child {
  border-bottom: none;
}
.ar-link-list strong {
  color: var(--secondary-color);
  font-weight: 600;
}
.ar-link-list a {
  text-decoration: none;
}
.ar-link-list a:hover {
  text-decoration: underline;
}
.ar-header {
  padding: 0 0.5rem;
}
/* Minimal styling for inline download links */
a[download] {
  font-weight: 600;
}
a[download] .bi {
  font-size: 0.95rem;
  position: relative;
  top: -1px;
}
a[download]:hover {
  text-decoration: underline;
}
/* Column variant adjustments (remove bottom borders which look odd when columnized) */
@media (min-width: 992px) {
  .ar-link-list.cols-2 > li {
    border-bottom: none;
    padding: 0.6rem 0;
  }
}
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

/* Professional Design with COBEC Brand Green */
:root {
  --primary-color: #a7c258;
  --primary-dark: #8fa345;
  --primary-light: #b8d069;
  --secondary-color: #2c3e50;
  --accent-color: #34495e;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f8fafc;
  --border-color: #e5e7eb;
  --success-green: #a7c258;
}

body {
  color: var(--text-dark);
  line-height: 1.6;
}

.content-wrap {
  min-height: calc(100vh - 60px);
  /* Adjust 60px to the height of your footer */
  display: flex;
  flex-direction: column;
}

.bg-overlay {
  position: relative;
  background-image: url("img/COBEC-group.jpg");
  background-size: cover;
  background-position: center;
  min-height: 800px;
  /* Adjusted height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  /* Adjust darkness */
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
}

.btn-primary {
  background-color: #a7c258;
  border-color: #a7c258;
  font-weight: bold;
}

.btn-primary:hover {
  background-color: #95b046;
  /* Darker shade of #A7C258 */
  border-color: #95b046;
}

/* Apply subtler text shadow to buttons for improved contrast */
.btn.btn-primary {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  /* Ensure the text color remains white */
}

footer {
  margin-top: auto;
  background-color: black;
  color: white;
  text-align: center;
  padding: 10px 0;
}

.responsive-iframe {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.content-wrap {
  flex: 1 0 auto;
  /* Ensure content expands to fill available space, pushing the footer down */
}

footer {
  flex-shrink: 0;
  /* Ensure footer doesn't shrink and stays at the bottom */
}

.card-img-top {
  width: 100%;
  object-fit: cover;
  /* Adjust the object fit */
}

/* Set a specific height for all images to address varying heights issue */
.fixed-height-img {
  height: 500px;
  /* Adjust this value according to your needs */
}
.adjust-position {
  object-fit: cover;
  object-position: center top;
  /* Adjusts the position to show the top part of the image */
}

.news {
  margin: 3px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 10px 20px;
  text-align: center;
}

/* Add box shadow to cards for depth */
.card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

/* Hover effect to lift the card */
.card:hover {
  transform: translateY(-5px);
}

/* Consistent logo sizing and spacing */
.card-logo {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  border-radius: 50%;
  /* Removed square border since icons are circular */
}

/* Centered section divider for title */
.section-divider {
  width: 60px;
  margin: 0 auto 3rem auto;
  border-top: 3px solid var(--primary-color);
}

/* Typography improvements for card titles */
.card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Add contrast to green card titles */
.card-title.text-primary {
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  /* White shadow for green text on light backgrounds */
}

/* Improve button alignment inside cards */
.btn-link {
  padding: 0;
  color: #007bff;
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Restore Bootstrap's expected behavior for fluid images */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Align buttons consistently to the center */
.card .btn-primary {
  margin-top: 10px;
}

/* News Cards Enhancement */
.news-card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border-radius: 12px;
  overflow: hidden;
  border-left: 4px solid var(--primary-color);
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-left-color: var(--primary-dark);
}

/* Default interactive list styling across the site */
/* Apply to lists inside cards by default and to common custom list classes */
.news-card ul li,
.list-hover li,
.doc-list li,
.nl-list li,
.host-list li,
.honor-list li,
.oh-list li {
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.news-card ul li:hover,
.list-hover li:hover,
.doc-list li:hover,
.nl-list li:hover,
.host-list li:hover,
.honor-list li:hover,
.oh-list li:hover {
  background: #f6f9ef;
}

/* Generic two-column utility for long lists */
@media (min-width: 992px) {
  .cols-2 {
    columns: 2;
    column-gap: 2rem;
  }
  .cols-2 li {
    break-inside: avoid;
    border-bottom: 0;
  }
}

/* Neutral date pill styling (less green on page) */
.card-date {
  background: #eef2f7;
  color: var(--text-dark);
  padding: 6px 12px;
  border-radius: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #d1d5db;
  text-shadow: none;
}

.card-date:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

/* Button Styling with Brand Green */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(167, 194, 88, 0.25);
}

/* Text Colors with Brand Green */
.text-primary {
  color: var(--primary-dark) !important;
  /* Use darker green for better contrast on white backgrounds */
}

/* Alternative high-contrast green text */
.text-primary-contrast {
  color: var(--primary-dark) !important;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
}
/* Accessible contrast enhancement for green headings site-wide */
/* Applies subtle dual-layer shadow (light + soft dark) for readability on varied backgrounds */
h1.text-primary,
h2.text-primary,
h3.text-primary,
h4.text-primary,
h5.text-primary,
h6.text-primary,
.mission-heading,
.history-heading,
.about-title,
.card-title.text-primary,
.heading-contrast {
  /* light halo + faint darker anchor */
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.85), 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Utility class in case a heading lacks .text-primary but needs the treatment */
.heading-contrast {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Section Styling */
.section-title {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Navigation Enhancement */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #ffffff !important;
}

.navbar-brand {
  font-weight: 600;
  color: var(--primary-color) !important;
  /* Dual-layer shadow for improved contrast on light backgrounds */
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.85), 0 1px 3px rgba(0, 0, 0, 0.25);
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Badge Enhancement */
.badge.bg-primary {
  background-color: var(--primary-color) !important;
  color: white;
  border-radius: 20px;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Card Improvements */
.card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--primary-light);
}

/* Alternative high-contrast green backgrounds for better accessibility */
.card-date-alt {
  background: var(--secondary-color);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-primary-alt {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-primary-alt:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

/* Improved contrast for green elements with white text */
.high-contrast-green {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-color) 100%
  );
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* About Page Specific Styles */
.mission-text {
  line-height: 1.7;
}

/* Recovered orphaned declarations: they belong to .about-header */
.about-header {
  background: linear-gradient(90deg, var(--primary-light) 0%, #ffffff 100%);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.about-logo {
  width: 170px;
  max-width: 30vw;
  height: auto;
  border: 4px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.about-title {
  font-weight: 600;
  color: var(--secondary-color);
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
}

@media (max-width: 576px) {
  .about-header {
    flex-direction: column;
    text-align: center;
  }
  .about-title {
    font-size: 2.25rem;
  }
  .about-logo {
    width: 210px;
  }
}

.mission-section {
  background: transparent;
  padding: 0 0.5rem 0.5rem 0.5rem;
  border-left: 5px solid var(--primary-color);
}

.mission-heading {
  color: var(--primary-dark);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.85);
}

.mission-section .mission-text {
  font-size: 1.05rem;
}
/* History section styling parallels mission */
.history-section {
  /* Removed decorative left border per request */
  padding: 0 0 0.75rem 0;
  background: transparent;
  margin-top: 0.5rem;
}
.history-heading {
  color: var(--primary-dark);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.85);
}

/* Members Page Card List Styling */
.member-section {
  margin-bottom: 3rem;
}
.member-card {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}
.member-card-header {
  background: linear-gradient(
    90deg,
    var(--primary-light),
    var(--primary-color)
  );
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.member-card-header i {
  color: var(--secondary-color);
}
.member-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.member-list li {
  margin: 0;
  padding: 0;
}
.member-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.member-list li:not(:last-child) a {
  border-bottom: 1px solid var(--border-color);
}
.member-list a:hover {
  background: #f6f9ef;
  color: var(--secondary-color);
}
.member-list a .ext-icon {
  color: var(--primary-dark);
  opacity: 0.8;
  font-size: 0.95rem;
}
.member-list a:hover .ext-icon {
  color: var(--primary-color);
  opacity: 1;
}
@media (min-width: 992px) {
  .member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}
