/*--------------------------------------------------------------
# Featured Services

--------------------------------------------------------------*/
.feature-services {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.departments {
  overflow: hidden;
}

.departments .nav-tabs {
  border: 0;
}

.departments .nav-link {
  border: 0;
  padding: 12px 15px 2px 0;
  transition: 0.3s;
  color: var(--heading-color);
  border-radius: 0;
  border-right: 2px solid color-mix(in srgb, var(--heading-color), transparent 90%);
  font-weight: 500;
  font-size: 1rem;
  font-family: var(--default-font);
}

.departments .nav-link:hover {
  color: var(--accent-color);
}

.departments .nav-link.active {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background-color: var(--background-color);
}

.departments .tab-pane.active {
  animation: fadeIn 0.5s ease-out;
}

.departments .details h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.departments .details p {
  color: color-mix(in srgb, var(--heading-color), transparent 20%);
}

.departments .details p:last-child {
  margin-bottom: 0;
}

.hight-text {
  line-height: 1.7rem;
}

@media (max-width: 992px) {
  .departments .nav-link {
    border: 0;
    padding: 15px;
  }

  .departments .nav-link.active {
    color: white;
    background: var(--accent-color);
  }
}

.btn-color a {
  background-color: var(--accent-color);
  border: var(--accent-color);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
}

.btn-color a:hover {
  background-color: var(--secondary-color);
  border: var(--secondary-color);
  color: var(--heading-color);
}

.btn-color:active {
  border: none;
  outline: none;
}

/* ===============================
   Modal Overlay
================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===============================
   Modal Box
================================ */
.modal-box {
  background: #ffffff;
  width: 90%;
  /* max-width: 720px; */
  max-height: 95vh;
  padding: 30px;
  border-radius: 12px;
  position: relative;

  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-overlay.show .modal-box {
  transform: scale(1);
  opacity: 1;
}

/* /* ===============================
   Close Button
================================ */
.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

.close-btn:hover {
  color: #000;
}

*/

/* ===============================
   Service Modal Content
================================ */
.service-modal {
  overflow-y: auto;
  text-align: left;
}

.service-modal h2 {
  margin-bottom: 6px;
  color: var(--accent-color);
  font-size: 24px;
}

.service-modal h4 {
  font-size: 15px;
  color: black;
}

.service-modal h5 {
  margin-top: 5px;
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 1rem;
}

.service-modal p {
  color: black;
  margin-bottom: 0px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-modal ul,
.service-modal ol {
  padding-left: 22px;
  font-size: 0.9rem;
  color: black;
  margin-bottom: 0px;
}

.service-modal ul {
  list-style-type: disc;
}

.service-modal ol {
  list-style-type: decimal;
  color: black;
  font-size: 0.9rem;
  margin-bottom: 0px;
}

/* ===============================
   Notes / Highlight Box
================================ */
.note {
  background: #f8f9fa;
  padding: 12px;
  border-left: 4px solid var(--accent-color);
  font-size: 14px;
  margin: 14px 0;
}

/* ===============================
   Modal Actions
================================ */
.modal-actions {
  text-align: center;
  margin-top: 13px;
}

#serviceModal .modal-actions .btn {
  background: linear-gradient(135deg,
      var(--secondary-color),
      var(--accent-color));
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
}

.modal-actions .btn:hover {
  background: linear-gradient(135deg,
      var(--accent-color),
      var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

/* ===============================
   Mobile Optimization
================================ */
@media (max-width: 576px) {
  .modal-box {
    padding: 20px;
    max-width: 95%;
  }

  .service-modal h2 {
    font-size: 20px;
  }
}


.login-link {
  background: #007bff;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}

.login-link:hover {
  background: #0056b3;
}
.service-modal {
    overflow-y: auto;
    text-align: left;
}