/* Services Page Header Styling - Matches Regional Hub / Davao Layout & Styling */

.services-page-wrap {
  padding-top: 140px;
}
@media (max-width: 768px) {
  .services-page-wrap {
    padding-top: 110px;
  }
}

.services-hero {
  padding: 48px 20px 56px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.services-h1,
.services .uk-header-row-title {
  font-size: clamp(28px, 4vw, 42px) !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  padding-bottom: 0 !important;
  text-align: left !important;
}

.services-hero-desc,
.services .uk-header-row-text {
  max-width: 900px;
  font-size: 17px !important;
  color: #334155 !important;
  line-height: 1.7 !important;
  text-align: left;
}

.services-hero-desc p,
.services .uk-header-row-text p {
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: #334155 !important;
  margin-bottom: 16px;
}

.services-hero-desc p:last-child,
.services .uk-header-row-text p:last-child {
  margin-bottom: 0;
}

.services-hero-desc strong,
.services .uk-header-row-text strong {
  color: #0f172a;
  font-weight: 700;
}

.services .uk-section {
  padding-top: 0;
  padding-bottom: 40px;
}

.services-cards-section {
  padding: 48px 20px 80px;
  background: #ffffff;
}

.services-cards-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-cards-container .uk-grid {
  gap: 14px;
}

/* Service Cards - Sharp Corners */
.services .uk-card-spotlight,
.services .uk-card-spotlight .uk-card-img-wrap,
.services .uk-card-spotlight .uk-card-img {
  border-radius: 0 !important;
}

/* Service Cards - Slide-up Explore Service Overlay */
.services .uk-card-spotlight .uk-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.services .uk-card-spotlight-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.3;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
}

.services .uk-card-spotlight:hover .uk-card-spotlight-overlay,
.services .uk-card-spotlight:focus .uk-card-spotlight-overlay,
.services .uk-card-spotlight:focus-visible .uk-card-spotlight-overlay {
  transform: translateY(0);
  opacity: 1;
}

.services .uk-card-spotlight-overlay span {
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  box-shadow: none !important;
  transform: none !important;
  display: inline-block;
}

/* ========================================================
   Systems Article Modal - Zero Border Radius & Circular Close Button
   ======================================================== */
#articleModal1 .uk-modal-content,
.uk-modal-container .uk-modal-content {
  border-radius: 0 !important;
}

#articleModal1 .uk-modal-close,
.uk-modal-container .uk-modal-close {
  position: absolute !important;
  top: 24px !important;
  right: 24px !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  box-sizing: border-box !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.05) !important;
  color: #111827 !important;
  cursor: pointer !important;
  z-index: 10 !important;
  border: none !important;
  outline: none !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  overflow: hidden !important;
  transition: all 0.2s ease !important;
}

#articleModal1 .uk-modal-close:hover,
.uk-modal-container .uk-modal-close:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  transform: scale(1.08) !important;
}

#articleModal1 .uk-modal-close svg,
.uk-modal-container .uk-modal-close svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  aspect-ratio: 1 / 1 !important;
  display: block !important;
  flex-shrink: 0 !important;
  margin: auto !important;
  stroke-width: 2.5 !important;
}

@media (max-width: 640px) {
  #articleModal1 .uk-modal-close,
  .uk-modal-container .uk-modal-close {
    top: 16px !important;
    right: 16px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
  }

  #articleModal1 .uk-modal-close svg,
  .uk-modal-container .uk-modal-close svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
  }
}

