/* ========================================
   INDUSTRY PAGE TEMPLATE STYLES
   Requires: header.css (for variables)
   Template: Reusable across all industry pages
   ======================================== */

/* ========================================
   HEADER COLOR OVERRIDES
   White text theme for dark hero background
   Only affects non-scrolled desktop state
   ======================================== */
:root {
  --header-nav-list-bg: rgba(0, 0, 0, 0.1);
  --header-nav-list-border: rgba(255, 255, 255, 0.1);
  --header-nav-link-color: var(--color-white);
  --header-dropdown-arrow-color: var(--color-white);
  --header-lang-bg: var(--color-white);
  --header-lang-text-color: var(--color-white);
  --header-btn-login-color: var(--color-white);
  --header-btn-login-bg: transparent;
  --header-btn-login-border: rgba(255, 255, 255, 0.6);
  --header-btn-login-hover-bg: rgba(255, 255, 255, 0.15);
}

/* Globe icon white for dark hero */
.header-country-globe {
  filter: brightness(0) invert(1);
}

.header-zenhr.is-scrolled .header-country-globe {
  filter: none;
}

/* Let's Meet link white for dark hero */
.header-meet-link {
  color: var(--color-white);
}

/* ========================================
   UTILITIES & RESETS
   ======================================== */

/* HubSpot Form Overrides */
.hsfc-Step .hsfc-Step__Content {
  padding: 0 !important;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Button resets */
button.hero-form-modal-close {
  appearance: none;
  margin: 0;
  font: inherit;
}

button.video-modal-close,
button.video-modal-close-mobile {
  appearance: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

/* Focus visible styles */
button.hero-form-modal-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #4da8da;
}

button.video-modal-close:focus-visible {
  outline: 2px solid var(--primary-color, #0b57d0);
  outline-offset: 2px;
}

button.video-modal-close-mobile:focus-visible {
  outline: 2px solid var(--primary-color, #0b57d0);
  outline-offset: 2px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  margin-top: calc(var(--header-height) * -1);
}

/* Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile-first: show mobile, hide desktop */
.hero-bg-image--mobile {
  display: block;
}

.hero-bg-image--desktop {
  display: none;
}

@media (min-width: 992px) {
  .hero-bg-image--mobile {
    display: none;
  }

  .hero-bg-image--desktop {
    display: block;
  }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(15, 23, 42, 0.8) 50%,
    rgba(15, 23, 42, 0.6) 100%
  );
}

/* RTL: Flip gradient direction */
[dir="rtl"] .hero-bg-overlay {
  background: linear-gradient(
    to left,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(15, 23, 42, 0.8) 50%,
    rgba(15, 23, 42, 0.6) 100%
  );
}

/* Container */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

/* Content */
.hero-content {
  max-width: 560px;
}

.hero-headline {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
}

.hero-subheadline {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* Features */
.hero-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-feature-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}

.hero-feature-text {
  font-size: 15px;
  line-height: 1;
  color: var(--color-white);
}

[dir="rtl"] .hero-feature-text {
  line-height: 1.5 !important;
}

/* CTAs */
.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 32px;
  color: var(--color-white);
  transition: all var(--transition-fast);
}

.hero-cta-primary-text {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  line-height: 1 !important;
}

.hero-cta-primary:hover .hero-cta-primary-text {
  color: var(--color-white);
}

.hero-cta-primary-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* RTL: Flip arrow icons */
[dir="rtl"] .hero-cta-primary-icon,
[dir="rtl"] .hero-form-cta-icon {
  transform: scaleX(-1);
}

.hero-cta-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-white);
}

.hero-cta-video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--color-white);
  border: 1px solid #f1f3f4;
  border-radius: 32px;
  transition: all var(--transition-fast);
}

.hero-cta-video:hover {
  background: #f8f9fa;
  color: var(--color-dark);
}

.hero-play-img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.hero-cta-video-text {
  color: var(--color-dark);
  font-size: 16px;
  font-weight: 600;
}

/* Mobile Form Trigger (visible on mobile, hidden on desktop) */
.hero-mobile-form-trigger {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.hero-separator {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-form-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--color-white);
  border: 1px solid #f1f3f4;
  border-radius: 32px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-form-cta:hover {
  background: #f8f9fa;
  color: var(--color-primary);
}

.hero-form-cta-text {
  color: var(--color-dark);
  font-size: 16px;
  font-weight: 600;
  line-height: 1 !important;
}

.hero-form-cta-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Form Card (hidden on mobile, visible on desktop) */
.hero-form-wrap {
  display: none;
  width: 100%;
}

.hero-form-card {
  width: 100%;
  max-width: 500px;
  min-height: auto;
  padding: 32px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(64px);
  -webkit-backdrop-filter: blur(64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.hero-form-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 24px;
  text-align: start;
}

/* HubSpot Form Embed */
.hero-form-embed {
  width: 100%;
  min-height: 520px;
}

/* Mobile Form Modal - Full Screen */
.hero-form-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.3s,
    opacity 0.3s;
}

.hero-form-modal.is-open {
  visibility: visible;
  opacity: 1;
}

/* Background Image */
.hero-form-modal-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-form-modal-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content Container */
.hero-form-modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Header: Logo left, Close right */
.hero-form-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 15px;
  flex-shrink: 0;
}

.hero-form-modal-logo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.hero-form-modal-logo img {
  height: 22px;
  width: auto;
  display: block;
}

/* Close Button */
.hero-form-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 32px;
  border: 1px solid #ffffff;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-form-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-form-modal-close-icon {
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 6L18 18M18 6L6 18' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Body: Title + Form */
.hero-form-modal-body {
  padding: 0 15px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-form-modal-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 24px 0;
}

/* ----------------------------------------
   Hero Tablet (768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
  .hero-section {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
  }

  .hero-headline {
    font-size: 42px;
  }

  .hero-subheadline {
    font-size: 18px;
  }

  .hero-cta-wrap {
    flex-direction: row;
    align-items: center;
  }

  .hero-form-card {
    padding: 40px 32px;
  }

  .hero-form-title {
    font-size: 24px;
  }
}

/* ----------------------------------------
   Hero Desktop (992px+)
   ---------------------------------------- */
@media (min-width: 992px) {
  .hero-section {
    padding-top: var(--header-height);
    padding-bottom: 0;
    min-height: 100vh;
  }

  .hero-inner {
    padding: 0 15px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .hero-headline {
    font-size: 48px;
  }

  /* Hide mobile form trigger on desktop */
  .hero-mobile-form-trigger {
    display: none;
  }

  /* Show form card on desktop */
  .hero-form-wrap {
    display: block;
    max-width: 440px;
    justify-self: end;
  }

  /* Desktop form height - prevent CLS */
  .hero-form-embed {
    min-height: 420px;
  }

  /* Hide modal on desktop */
  .hero-form-modal {
    display: none;
  }
}

/* ----------------------------------------
   Hero Large Desktop (1200px+)
   ---------------------------------------- */
@media (min-width: 1200px) {
  .hero-headline {
    font-size: 52px;
  }

  .hero-grid {
    gap: 80px;
  }
}

/* ========================================
   VIDEO MODAL
   ======================================== */

.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 400ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 400ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}

.video-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.video-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1170px;
  max-height: 90vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 20px;
  overflow: hidden;
  transform: scale(0.9);
  opacity: 0;
  transition:
    transform 400ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.5),
    0 16px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

@media (max-width: 767px) {
  .video-modal-card {
    max-height: calc(100vh - 40px);
    height: auto;
    min-height: 300px;
  }
}

.video-modal-overlay.is-active .video-modal-card {
  transform: scale(1);
  opacity: 1;
}

/* Desktop Close Button */
.video-modal-close {
  display: none;
}

@media (min-width: 768px) {
  .video-modal-close {
    position: absolute;
    inset-block-start: 24px;
    inset-inline-end: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .video-modal-close:hover {
    background: #ffffff;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  }

  .video-modal-close:active {
    transform: scale(0.95) rotate(90deg);
  }
}

.video-modal-body {
  padding: 0;
  position: relative;
  flex: 1;
  min-height: 0;
}

/* Video Container - 16:9 Aspect Ratio */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000000;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .video-container {
    border-radius: 20px;
  }
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: inherit;
}

/* Video Loading State */
.video-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  color: rgba(255, 255, 255, 0.9);
}

.video-loading p {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

.video-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: video-spin 0.8s linear infinite;
}

@keyframes video-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile Sticky Footer */
.video-modal-sticky-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.8) 0%,
    rgba(26, 26, 26, 0.95) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
  flex-shrink: 0;
  z-index: 10;
}

@media (min-width: 768px) {
  .video-modal-sticky-footer {
    display: none;
  }
}

.video-modal-close-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 12px;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-modal-close-mobile:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.video-modal-close-mobile:active {
  transform: translateY(0);
}

/* ========================================
   EMPOWER SECTION
   ======================================== */

.empower-section {
  padding: 60px 0;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--color-white);
  border-bottom: 1px solid var(--color-white);
}

.empower-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.empower-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 700px;
}

.empower-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

.empower-subtitle {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.empower-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.empower-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empower-card {
  position: relative;
  overflow: hidden;
  background: var(--color-gray-100);
  border-radius: 16px;
  /* 204:260 actual image ratio */
  aspect-ratio: 204 / 260;
}

.empower-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  pointer-events: none;
  z-index: 2;
}

.empower-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.empower-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.empower-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.05);
}

.empower-card:hover .empower-card-img {
  transform: scale(1.05);
}

.empower-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.empower-cta-text {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 600px;
}

.empower-card-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-dark);
  text-align: center;
}

/* ----------------------------------------
   Empower Tablet (768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
  .empower-section {
    padding: 80px 0;
  }

  .empower-inner {
    gap: 40px;
  }

  .empower-header {
    gap: 16px;
  }

  .empower-title {
    font-size: 36px;
  }

  .empower-subtitle {
    font-size: 17px;
  }

  .empower-card-title {
    font-size: 14px;
  }

  .empower-cards {
    gap: 16px;
  }
}

/* ----------------------------------------
   Empower Desktop (992px+)
   ---------------------------------------- */
@media (min-width: 992px) {
  .empower-section {
    padding: 100px 0;
  }

  .empower-inner {
    align-items: flex-start;
    gap: 48px;
  }

  .empower-header {
    align-items: flex-start;
    text-align: start;
    gap: 20px;
    max-width: 800px;
  }

  .empower-title {
    font-size: 42px;
  }

  .empower-subtitle {
    font-size: 18px;
  }

  .empower-cards {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }

  .empower-cta-group {
    align-items: flex-start;
    gap: 24px;
  }

  .empower-cta-text {
    text-align: start;
  }

  .empower-card-title {
    font-size: 14px;
  }
}

/* ========================================
   ZENHR UAE MODULES SECTION
   6 HR module cards with gradient backgrounds
   ======================================== */

.zenhr-uae-modules-section {
  position: relative;
  padding: 48px 0;
  background-color: #f8fafc;
  overflow: hidden;
}

.zenhr-uae-modules-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.zenhr-uae-modules-bg-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* RTL: Fix centering for RTL */
[dir="rtl"] .zenhr-uae-modules-bg-img {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

.zenhr-uae-modules-bg-img--mobile {
  display: block;
}

.zenhr-uae-modules-bg-img--desktop {
  display: none;
}

.zenhr-uae-modules-inner {
  position: relative;
  z-index: 1;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.zenhr-uae-modules-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 32px;
}

.zenhr-uae-modules-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-dark);
  margin: 0;
}

.zenhr-uae-modules-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary, #64748b);
  margin: 0;
  max-width: 720px;
}

/* Cards Grid - Mobile: 1 column */
.zenhr-uae-modules-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card Base Styles */
.zenhr-uae-module-card {
  position: relative;
  border-radius: 28px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

/* Card Gradients via custom attribute */
[card-color="payroll"] {
  background: linear-gradient(180deg, #125a66 0%, #258698 100%);
}

[card-color="attendance-and-time-tracking"] {
  background: linear-gradient(180deg, #494ab4 0%, #6f6fd1 100%);
}

[card-color="employee-self-service"] {
  background: linear-gradient(180deg, #1d3144 0%, #42556a 100%);
}

[card-color="employee-management"] {
  background: linear-gradient(180deg, #121c66 0%, #256698 100%);
}

[card-color="performance-and-evaluation"] {
  background: linear-gradient(180deg, #965b0a 0%, #b67e30 100%);
}

[card-color="reporting-and-analytics"] {
  background: linear-gradient(180deg, #772d51 0%, #9f6581 100%);
}

[card-color="applicant-tracking-system"] {
  background: linear-gradient(180deg, #3b0764 0%, #86198f 100%);
  background-blend-mode: soft-light;
}

/* Card Header */
.zenhr-uae-module-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.zenhr-uae-module-card-icon-wrap {
  order: -1;
}

.zenhr-uae-module-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  gap: 6px;
  flex: 1;
}

.zenhr-uae-module-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
}

.zenhr-uae-module-card-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.zenhr-uae-module-card-icon-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 80px;
}

/* RTL: Flip the wrapper */
[dir="rtl"] .zenhr-uae-module-card-icon-wrap {
  transform: scaleX(-1);
}

.zenhr-uae-module-card-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
}

/* Card Body - Features + CTA */
.zenhr-uae-module-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  align-self: stretch;
  flex: 1;
}

/* Card Features */
.zenhr-uae-module-card-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zenhr-uae-module-feature {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.zenhr-uae-module-feature img {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  opacity: 0.9;
  aspect-ratio: 1 / 1;
}

.zenhr-uae-module-feature p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Card CTA */
.zenhr-uae-module-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.zenhr-uae-module-card-cta:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

/* Card Hover State */
.zenhr-uae-module-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Section CTA */
.zenhr-uae-modules-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.zenhr-uae-modules-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--color-primary);
  border-radius: 100px;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.zenhr-uae-modules-cta-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
}

.zenhr-uae-modules-cta-icon {
  width: 18px;
  height: 18px;
  color: var(--color-white);
  transition: transform 0.25s ease;
}

/* RTL: Flip arrow icon */
[dir="rtl"] .zenhr-uae-modules-cta-icon {
  transform: scaleX(-1);
}

.zenhr-uae-modules-cta:hover {
  background: var(--color-primary-hover);
}

.zenhr-uae-modules-cta:hover .zenhr-uae-modules-cta-icon {
  transform: translateX(4px);
}

/* RTL: Flip arrow direction (combine with base scaleX flip) */
[dir="rtl"] .zenhr-uae-modules-cta:hover .zenhr-uae-modules-cta-icon {
  transform: scaleX(-1) translateX(4px);
}

/* ----------------------------------------
   ZenHR UAE Modules Tablet (768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
  .zenhr-uae-modules-section {
    padding: 64px 0;
  }

  .zenhr-uae-modules-bg-img--mobile {
    display: none;
  }

  .zenhr-uae-modules-bg-img--desktop {
    display: block;
  }

  .zenhr-uae-modules-header {
    gap: 20px;
    margin-bottom: 40px;
  }

  .zenhr-uae-modules-title {
    font-size: 32px;
  }

  .zenhr-uae-modules-subtitle {
    font-size: 18px;
  }

  /* 2 column grid */
  .zenhr-uae-modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .zenhr-uae-module-card {
    border-radius: 32px;
    padding: 28px;
    gap: 24px;
  }

  .zenhr-uae-module-card-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
  }

  .zenhr-uae-module-card-icon-wrap {
    order: 0;
  }

  .zenhr-uae-module-card-info {
    align-items: flex-start;
    text-align: start;
  }

  .zenhr-uae-module-card-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .zenhr-uae-module-card-title {
    font-size: 20px;
  }

  .zenhr-uae-module-card-desc {
    font-size: 14px;
  }

  .zenhr-uae-module-feature img {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
  }

  .zenhr-uae-module-feature p {
    font-size: 14px;
  }

  .zenhr-uae-module-card-cta {
    display: inline-flex;
    width: auto;
    padding: 14px 24px;
    font-size: 15px;
  }

  .zenhr-uae-modules-cta-wrap {
    margin-top: 40px;
  }

  .zenhr-uae-modules-cta {
    padding: 16px 32px;
  }

  .zenhr-uae-modules-cta-text {
    font-size: 16px;
  }

  .zenhr-uae-modules-cta-icon {
    width: 20px;
    height: 20px;
  }
}

/* ----------------------------------------
   ZenHR UAE Modules Desktop (992px+)
   ---------------------------------------- */
@media (min-width: 992px) {
  .zenhr-uae-modules-section {
    padding: 80px 0;
  }

  .zenhr-uae-modules-header {
    gap: 24px;
    margin-bottom: 48px;
  }

  .zenhr-uae-modules-title {
    font-size: 38px;
  }

  .zenhr-uae-modules-subtitle {
    font-size: 20px;
    max-width: 800px;
  }

  .zenhr-uae-modules-grid {
    gap: 24px;
  }

  .zenhr-uae-module-card {
    border-radius: 36px;
    padding: 32px;
  }

  .zenhr-uae-module-card-title {
    font-size: 22px;
  }

  .zenhr-uae-module-card-desc {
    font-size: 15px;
  }

  .zenhr-uae-module-feature img {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
  }

  .zenhr-uae-modules-cta-wrap {
    margin-top: 48px;
  }
}

/* ----------------------------------------
   ZenHR UAE Modules Large Desktop (1200px+)
   ---------------------------------------- */
@media (min-width: 1200px) {
  .zenhr-uae-modules-title {
    font-size: 42px;
  }

  .zenhr-uae-modules-subtitle {
    font-size: 24px;
    max-width: 900px;
  }

  .zenhr-uae-modules-grid {
    gap: 28px;
  }

  .zenhr-uae-module-card {
    border-radius: 40px;
    padding: 36px;
  }

  .zenhr-uae-module-card-title {
    font-size: 24px;
  }

  .zenhr-uae-module-card-desc {
    font-size: 16px;
  }

  .zenhr-uae-module-card-cta {
    padding: 14px 28px;
    font-size: 15px;
  }
}

/* ========================================
   MODULE CARD - INDUSTRY ADDITIONS
   ======================================== */

.zenhr-uae-module-features-title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
}

.zenhr-uae-module-card-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
}

@media (min-width: 992px) {
  .zenhr-uae-module-card-footer {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }
}

.zenhr-uae-module-card-summary {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  flex: 1;
}

.zenhr-uae-module-card-footer .zenhr-uae-module-card-cta {
  flex-shrink: 0;
}

/* ========================================
   WHY SECTION
   ======================================== */

.why-section {
  padding: 0;
  background: var(--color-white);
  overflow: hidden;
}

@media (min-width: 992px) {
  .why-section {
    overflow: visible;
  }
}

.why-inner {
  max-width: 1170px;
  margin: 0 auto;
}

.why-layout {
  display: flex;
  flex-direction: column;
}

/* Image Column */
.why-image-wrap {
  position: relative;
}

.why-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.why-map {
  position: absolute;
  bottom: -40px;
  right: -20px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--color-white);
  object-fit: cover;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Content Column */
.why-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 60px 15px 60px;
}

.why-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

.why-desc {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.why-desc strong {
  font-weight: 700;
  color: var(--color-dark);
}

.why-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.why-checklist li img {
  flex-shrink: 0;
}

.why-checklist-text {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-dark);
}

.why-closing {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ----------------------------------------
   Why Tablet (768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
  .why-content {
    padding: 60px 30px;
  }

  .why-title {
    font-size: 36px;
  }

  .why-map {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 0;
  }
}

/* ----------------------------------------
   Why Desktop (992px+)
   ---------------------------------------- */
@media (min-width: 992px) {
  .why-inner {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .why-layout {
    flex-direction: row;
    align-items: stretch;
  }

  .why-image-wrap {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .why-image {
    width: 100%;
    height: 100%;
    max-height: 864px;
    object-fit: cover;
  }

  .why-map {
    width: 220px;
    height: 220px;
    bottom: -64px;
    right: -46px;
  }

  .why-content {
    flex: 1;
    max-width: 585px;
    padding: 80px 60px;
    gap: 24px;
  }

  .why-title {
    font-size: 42px;
  }

  .why-desc {
    font-size: 17px;
  }

  .why-checklist-text {
    font-size: 15px;
  }

  .why-closing {
    font-size: 17px;
  }
}

/* ========================================
   UPGRADE SECTION
   ======================================== */

.upgrade-section {
  padding: 60px 0;
  background: #e5ecff;
}

.upgrade-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.upgrade-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.upgrade-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

.upgrade-subtitle {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Cards Container */
.upgrade-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.upgrade-cards-row {
  display: grid;
  gap: 8px;
}

.upgrade-cards-row--2col {
  grid-template-columns: repeat(2, 1fr);
}

.upgrade-cards-row--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* Card */
.upgrade-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.upgrade-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.05);
}

.upgrade-card-image {
  width: 100%;
  overflow: hidden;
}

.upgrade-card-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.upgrade-card:hover .upgrade-card-img {
  transform: scale(1.05);
}

.upgrade-card-title {
  margin: 0;
  padding: 8px 10px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-dark);
}

/* CTA Group */
.upgrade-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.upgrade-cta-text {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ----------------------------------------
   Upgrade Tablet (768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
  .upgrade-section {
    padding: 80px 0;
  }

  .upgrade-inner {
    gap: 40px;
  }

  .upgrade-title {
    font-size: 36px;
  }

  .upgrade-cards {
    gap: 16px;
  }

  .upgrade-cards-row {
    gap: 16px;
  }

  .upgrade-card {
    border-radius: 24px;
  }

  .upgrade-card-title {
    font-size: 17px;
    padding: 16px 24px 24px;
  }
}

/* ----------------------------------------
   Upgrade Desktop (992px+)
   ---------------------------------------- */
@media (min-width: 992px) {
  .upgrade-section {
    padding: 100px 0;
  }

  .upgrade-inner {
    gap: 48px;
  }

  .upgrade-title {
    font-size: 42px;
  }

  .upgrade-subtitle {
    font-size: 18px;
  }

  .upgrade-cta-group {
    gap: 20px;
  }

  .upgrade-cta-text {
    font-size: 18px;
  }
}

/* ========================================
   INDUSTRY PAGE OVERRIDES
   Use .industry-page parent for style tweaks
   ======================================== */
