/* ================== GLOBAL THEME ================== */
body {
  background: linear-gradient(to bottom right, #0b3d2e, #1a472a);
  color: #f4f4f4;
  font-family: "Segoe UI", sans-serif;
}

header {
  background: #14532d;
  border-radius: 12px;
  padding: 12px 20px;
}

/* ================== NAVIGATION ================== */
header .nav-link {
  color: #d9f99d !important;
  transition: all 0.3s ease;
  padding: 8px 16px;
  margin: 0 4px;
  border-radius: 6px;
}

header .nav-link:hover {
  color: #facc15 !important;
  background: rgba(34, 197, 94, 0.1);
}

header .nav-link.active {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff !important;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

header .nav-link.active:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #fef08a !important;
}

header .btn-primary {
  background: #22c55e;
  border: none;
  transition: 0.3s;
}

header .btn-primary:hover {
  background: #16a34a;
  transform: scale(1.05);
}

/* ================== SECTION TITLES ================== */
h2 {
  color: #d9f99d;
  font-weight: bold;
}

/* ==================================================== */
/* =========== FEATURE CARD (Container Query) ========= */
/* ==================================================== */

.features-container {
  container-type: inline-size;
}

.feature-card {
  background: linear-gradient(to bottom right, #fef9c3, #facc15);
  border-radius: 12px;
  padding: 20px;
  transition: 0.3s;
  cursor: pointer;
  height: 100%;
  color: #14532d;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.feature-card:hover {
  background: linear-gradient(to bottom right, #facc15, #fde047);
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.5);
}

/* ===== FEATURE CARD – Container Query Behavior ===== */
@container (max-width: 550px) {
  .feature-card h4 {
    font-size: 1rem;
  }
  .feature-card p {
    font-size: 0.85rem;
  }
  .feature-card {
    padding: 15px;
  }
}

/* ==================================================== */
/* =================== MODAL THEME ==================== */
/* ==================================================== */

.feature-modal {
  background: linear-gradient(to bottom right, #14532d, #0b3d2e);
  border-radius: 15px;
  border: 2px solid #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.feature-modal .modal-header {
  background: #166534;
  border-bottom: 2px solid #22c55e;
  color: #facc15;
  font-weight: bold;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.feature-modal .modal-body {
  color: #fef9c3;
  font-size: 1rem;
  line-height: 1.6;
}

.feature-modal .btn-close {
  filter: brightness(0) invert(1);
}

/* ==================================================== */
/* ======================= FOOTER ====================== */
/* ==================================================== */
footer {
  background: #14532d;
  border-radius: 12px;
  padding: 20px;
  margin-top: 40px;
}

footer .nav-link {
  color: #d9f99d !important;
}

footer .nav-link:hover {
  color: #facc15 !important;
}

footer p {
  color: #fef9c3;
}

/* ==================================================== */
/* ================= GLOBAL MEDIA QUERY =============== */
/* ==================================================== */

@media (max-width: 991.98px) {
  /* Navbar collapse spacing */
  .navbar-collapse .navbar-nav {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(250, 204, 21, 0.3);
  }

  .navbar-collapse .d-flex {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(250, 204, 21, 0.3);
  }
}
