/* Global font family */
* {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Override Bootstrap's primary color */
:root {
  --bs-primary: #2C7D3A;
  --bs-primary-rgb: 44, 125, 58;
  --bs-secondary: #F3F2E9;
  --bs-secondary-rgb: 243, 242, 233;
  --bs-link-color: #2C7D3A;
  --bs-link-hover-color: #1e5629;
  --bs-link-color-rgb: 44, 125, 58;
  --bs-link-hover-color-rgb: 30, 86, 41;
}

/* Links */
a {
  color: var(--bs-link-color);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--bs-link-hover-color);
}

/* Buttons */
.btn-primary {
  --bs-btn-bg: #2C7D3A;
  --bs-btn-border-color: #2C7D3A;
  --bs-btn-hover-bg: #236530;
  --bs-btn-hover-border-color: #1e5629;
  --bs-btn-active-bg: #1e5629;
  --bs-btn-active-border-color: #194622;
  --bs-btn-disabled-bg: #2C7D3A;
  --bs-btn-disabled-border-color: #2C7D3A;
}

.btn-secondary {
  --bs-btn-bg: #F3F2E9;
  --bs-btn-border-color: #F3F2E9;
  --bs-btn-hover-bg: #e8e7e0;
  --bs-btn-hover-border-color: #e8e7e0;
  --bs-btn-active-bg: #e8e7e0;
  --bs-btn-active-border-color: #e8e7e0;
  --bs-btn-disabled-bg: #F3F2E9;
  --bs-btn-disabled-border-color: #F3F2E9;
  color: #212529;
}

/* Navbar */
.navbar {
  --bs-navbar-active-color: #2C7D3A;
  --bs-nav-link-hover-color: #236530;
}

.nav-pills {
  --bs-nav-pills-link-active-bg: #2C7D3A;
  --bs-nav-pills-link-active-color: #fff;
}

.nav-link {
  color: #495057;
  transition: color 0.2s ease-in-out;
}

.nav-link:hover,
.nav-link:focus {
  color: #2C7D3A;
}

.nav-link.active {
  color: #fff;
  background-color: #2C7D3A;
  border-color: #2C7D3A;
}

/* Dropdowns */
.dropdown-item:active,
.dropdown-item.active {
  background-color: #2C7D3A;
  color: #fff;
}

/* Pagination */
.page-link {
  color: #2C7D3A;
}

.page-link:hover {
  color: #1e5629;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.page-item.active .page-link {
  background-color: #2C7D3A;
  border-color: #2C7D3A;
}

/* Utility classes */
.text-primary {
  color: #2C7D3A !important;
}

.bg-primary {
  background-color: #2C7D3A !important;
}

.border-primary {
  border-color: #2C7D3A !important;
}

/* Focus states */
.btn-primary:focus,
.btn-primary:active:focus,
.form-control:focus,
.form-select:focus,
.page-link:focus,
.nav-link:focus {
  box-shadow: 0 0 0 0.25rem rgba(44, 125, 58, 0.25);
  border-color: #2C7D3A;
}

/* Adaptation Cards */
.adaptation-card {
  background: linear-gradient(135deg, #447B42 0%, #5a9c57 50%, #447B42 100%);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(68, 123, 66, 0.3);
  transition: all 0.3s ease;
  color: white;
  overflow: hidden;
  position: relative;
}

.adaptation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.adaptation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(68, 123, 66, 0.4);
}

.adaptation-card:hover::before {
  opacity: 1;
}

.adaptation-card .card-body {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
}

.adaptation-card .card-title {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0;
}

.adaptation-card .icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.adaptation-card .icon-container svg {
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.adaptation-card:hover .icon-container {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .adaptation-card .card-title {
    font-size: 0.85rem;
  }

  .adaptation-card .icon-container {
    width: 48px;
    height: 48px;
  }

  .adaptation-card .icon-container svg {
    width: 32px;
    height: 32px;
  }
}

/* Objectives and Indicators Styles */
.objective-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid #447B42;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.objective-section:hover {
  box-shadow: 0 4px 16px rgba(68, 123, 66, 0.15);
  transform: translateY(-2px);
}

.objective-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.objective-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #447B42 0%, #5a9c57 100%);
  border-radius: 50%;
  flex-shrink: 0;
  color: white;
  box-shadow: 0 2px 8px rgba(68, 123, 66, 0.3);
}

.objective-title {
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

.indicators-list {
  margin-left: 4rem;
}

.indicator-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.indicator-item:last-child {
  border-bottom: none;
}

.indicator-item:hover {
  background: rgba(68, 123, 66, 0.05);
  border-radius: 8px;
  padding-left: 0.75rem;
  margin-left: -0.75rem;
}

.indicator-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #e9ecef;
  border-radius: 6px;
  color: #447B42;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.indicator-item:hover .indicator-icon {
  background: #447B42;
  color: white;
  transform: scale(1.1);
}

.indicator-link {
  color: #495057;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: all 0.2s ease;
  flex: 1;
}

.indicator-link:hover {
  color: #447B42;
  text-decoration: none;
  font-weight: 500;
}

/* Responsive adjustments for objectives */
@media (max-width: 768px) {
  .objective-header {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .objective-icon {
    align-self: center;
  }

  .indicators-list {
    margin-left: 0;
    margin-top: 1rem;
  }

  .indicator-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
  }

  .indicator-icon {
    align-self: flex-start;
  }
}
