/* Section: Dịch vụ — clone souce_code_mau.html */

.hc-section-services.section {
  padding: 80px 0;
}

.hc-section-services .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Elementor-native services intro */
.hc-section-services .elementor-element.services-intro-stack {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 48px;
  justify-self: center;
}

.hc-section-services .elementor-element.services-intro-stack > .elementor-container {
  width: 100%;
}

.hc-section-services .elementor-element.services-intro-stack .elementor-widget-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hc-section-services .services-content-col > .elementor-widget-wrap > .services-more-btn {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  text-align: center;
}

.hc-section-services .elementor-element.eyebrow {
  display: block;
  width: 100%;
  margin: 0 0 16px;
}

.hc-section-services .elementor-element.eyebrow .elementor-heading-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hc-red-light);
  color: var(--hc-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  line-height: 1.4;
  margin: 0;
}

.hc-section-services .elementor-element.eyebrow .elementor-heading-title i {
  font-size: 0.9rem;
  color: var(--hc-red);
  line-height: 1;
}

.hc-section-services .elementor-element.section-title {
  width: 100%;
  margin-bottom: 16px;
}

.hc-section-services .elementor-element.section-title .elementor-heading-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 auto 16px;
  color: var(--hc-text);
  max-width: 480px;
}

.hc-section-services .elementor-element.section-title .text-red {
  color: var(--hc-red);
}

.hc-section-services .elementor-element.section-desc {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hc-section-services .elementor-element.section-desc .elementor-widget-container {
  max-width: 520px;
  margin: 0 auto;
}

.hc-section-services .elementor-element.section-desc p {
  font-size: 1.05rem;
  color: var(--hc-text-muted);
  margin: 0;
  line-height: 1.65;
}

.hc-section-services .services-content-col > .elementor-widget-wrap {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: stretch;
}

.hc-section-services .services-content-col > .elementor-widget-wrap > .elementor-element.service-card {
  width: 100% !important;
  max-width: none !important;
}

.hc-section-services .elementor-element.service-card a.elementor-icon-box-wrapper,
.hc-section-services .elementor-element.service-card .elementor-icon-box-wrapper {
  display: block;
  text-decoration: none;
  color: inherit;
}

.hc-section-services .elementor-element.service-card .elementor-icon-box-wrapper {
  background: #fff;
  border-radius: var(--hc-radius);
  padding: 28px 24px;
  border: 1.5px solid var(--hc-border);
  transition: var(--hc-transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  text-align: left;
}

.hc-section-services .elementor-element.service-card .elementor-icon-box-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--hc-red-light), var(--hc-yellow-light));
  opacity: 0;
  transition: var(--hc-transition);
  pointer-events: none;
}

.hc-section-services .elementor-element.service-card .elementor-icon-box-icon,
.hc-section-services .elementor-element.service-card .elementor-icon-box-content {
  position: relative;
  z-index: 2;
}

.hc-section-services .elementor-element.service-card .elementor-icon-box-wrapper::after {
  content: '↗';
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 2;
  color: var(--hc-border);
  font-size: 1.1rem;
  transition: var(--hc-transition);
}

.hc-section-services .elementor-element.service-card:hover .elementor-icon-box-wrapper {
  transform: translateY(-6px);
  box-shadow: var(--hc-shadow);
  border-color: var(--hc-red);
}

.hc-section-services .elementor-element.service-card:hover .elementor-icon-box-wrapper::before {
  opacity: 1;
}

.hc-section-services .elementor-element.service-card-cta .elementor-icon-box-wrapper::before {
  display: none;
}

.hc-section-services .elementor-element.service-card .elementor-icon-box-icon {
  margin-bottom: 18px;
  line-height: 1;
  position: relative;
  z-index: 3;
}

.hc-section-services .elementor-element.service-card .elementor-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--hc-red-light);
  color: var(--hc-red) !important;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--hc-transition);
  padding: 0;
  --e-icon-box-icon-margin: 0;
}

.hc-section-services .elementor-element.service-card .elementor-icon i,
.hc-section-services .elementor-element.service-card .elementor-icon svg {
  color: inherit;
  fill: currentColor;
  width: 1em;
  height: 1em;
}

.hc-section-services .elementor-element.service-icon-yellow .elementor-icon {
  background: var(--hc-yellow-light);
  color: var(--hc-yellow-dark) !important;
}

.hc-section-services .elementor-element.service-icon-green .elementor-icon {
  background: #e8f5e9;
  color: var(--hc-green) !important;
}

.hc-section-services .elementor-element.service-icon-purple .elementor-icon {
  background: #f3e5f5;
  color: var(--hc-purple) !important;
}

.hc-section-services .elementor-element.service-icon-blue .elementor-icon {
  background: #e3f2fd;
  color: var(--hc-blue) !important;
}

/* Hover: nền đỏ + icon trắng (override Elementor primary_color inline) */
.hc-section-services .elementor-element.service-card:not(.service-card-cta):hover .elementor-icon {
  background: var(--hc-red) !important;
  color: #fff !important;
  transform: scale(1.1);
}

.hc-section-services .elementor-element.service-card:not(.service-card-cta):hover .elementor-icon i,
.hc-section-services .elementor-element.service-card:not(.service-card-cta):hover .elementor-icon svg,
.hc-section-services .elementor-element.service-card:not(.service-card-cta):hover .elementor-icon svg path {
  color: #fff !important;
  fill: #fff !important;
}

.hc-section-services .elementor-element.service-card-cta:hover .elementor-icon {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  transform: scale(1.1);
}

.hc-section-services .elementor-element.service-card:hover .elementor-icon-box-wrapper::after {
  color: var(--hc-red);
  transform: translate(3px, -3px);
}

body.elementor-editor-active .hc-section-services .elementor-element.service-card .elementor-icon-box-wrapper::before,
body.elementor-editor-active .hc-section-services .elementor-element.service-card:hover .elementor-icon-box-wrapper::before {
  opacity: 0 !important;
}

body.elementor-editor-active .hc-section-services .elementor-element.service-card:hover .elementor-icon-box-wrapper {
  transform: none !important;
}

.hc-section-services .elementor-element.service-card .elementor-icon-box-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px;
  padding: 0;
  color: var(--hc-text);
}

.hc-section-services .elementor-element.service-card .elementor-icon-box-description {
  font-size: 0.88rem;
  color: var(--hc-text-muted);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.hc-section-services .elementor-element.service-card .elementor-widget-container {
  height: 100%;
}

.hc-section-services .elementor-element.service-card-cta .elementor-icon-box-wrapper {
  background: linear-gradient(135deg, var(--hc-red), var(--hc-red-dark));
  border-color: transparent;
}

.hc-section-services .elementor-element.service-card-cta .elementor-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hc-section-services .elementor-element.service-card-cta .elementor-icon-box-title {
  color: #fff;
}

.hc-section-services .elementor-element.service-card-cta .elementor-icon-box-description {
  color: rgba(255, 255, 255, 0.8);
}

.hc-section-services .elementor-element.service-card-cta .elementor-icon-box-wrapper::after {
  color: rgba(255, 255, 255, 0.4);
}

.hc-section-services .elementor-element.services-more-btn {
  margin-top: 36px;
}

.hc-section-services .elementor-element.services-more-btn .elementor-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 700;
  transition: var(--hc-transition);
}

.hc-section-services .elementor-element.services-more-btn .elementor-button:hover {
  background: var(--hc-red) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.hc-section-services .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hc-red-light);
  color: var(--hc-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.hc-section-services .section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--hc-text);
}

.hc-section-services .section-desc {
  font-size: 1.05rem;
  color: var(--hc-text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

.hc-section-services .text-red {
  color: var(--hc-red);
}

.hc-section-services .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.hc-section-services .service-card {
  background: #fff;
  border-radius: var(--hc-radius);
  padding: 28px 24px;
  border: 1.5px solid var(--hc-border);
  transition: var(--hc-transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.hc-section-services .service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--hc-red-light), var(--hc-yellow-light));
  opacity: 0;
  transition: var(--hc-transition);
}

.hc-section-services .service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hc-shadow);
  border-color: var(--hc-red);
}

.hc-section-services .service-card:hover::before {
  opacity: 1;
}

.hc-section-services .service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--hc-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--hc-red);
  margin-bottom: 18px;
  transition: var(--hc-transition);
  position: relative;
  z-index: 1;
}

.hc-section-services .service-icon.icon-yellow {
  background: var(--hc-yellow-light);
  color: var(--hc-yellow-dark);
}

.hc-section-services .service-icon.icon-green {
  background: #e8f5e9;
  color: var(--hc-green);
}

.hc-section-services .service-icon.icon-purple {
  background: #f3e5f5;
  color: var(--hc-purple);
}

.hc-section-services .service-icon.icon-blue {
  background: #e3f2fd;
  color: var(--hc-blue);
}

.hc-section-services .service-card:hover .service-icon {
  background: var(--hc-red);
  color: #fff;
  transform: scale(1.1);
}

.hc-section-services .service-card-cta {
  background: linear-gradient(135deg, var(--hc-red), var(--hc-red-dark));
  color: #fff;
  border-color: transparent;
}

.hc-section-services .service-card-cta .service-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hc-section-services .service-card-cta .service-title {
  color: #fff;
}

.hc-section-services .service-card-cta .service-desc {
  color: rgba(255, 255, 255, 0.8);
}

.hc-section-services .service-card-cta .service-arrow {
  color: rgba(255, 255, 255, 0.4);
}

.hc-section-services .service-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.hc-section-services .service-desc {
  font-size: 0.88rem;
  color: var(--hc-text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.hc-section-services .service-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 1;
  color: var(--hc-border);
  font-size: 1.1rem;
  transition: var(--hc-transition);
}

.hc-section-services .service-card:hover .service-arrow {
  color: var(--hc-red);
  transform: translate(3px, -3px);
}

.hc-section-services .services-more {
  margin-top: 36px;
}

.hc-section-services .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--hc-transition);
  text-decoration: none;
}

.hc-section-services .btn-outline {
  border: 2px solid var(--hc-red);
  color: var(--hc-red);
  background: transparent;
}

.hc-section-services .btn-outline:hover {
  background: var(--hc-red);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .hc-section-services .services-content-col > .elementor-widget-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hc-section-services.section,
  .hc-section-services.elementor-section {
    padding: 56px 0;
  }

  .hc-section-services .services-content-col > .elementor-widget-wrap {
    grid-template-columns: 1fr;
  }
}
