/* ============================================
   MODERN PROCESS SECTION - Google Benefits Style
   ============================================ */

.process-modern {
  background: #f8f9fa;
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

/* Circuit Board pattern from heropatterns.com */
.process-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 304 304' width='304' height='304'%3E%3Cpath fill='%232563eb' d='M44.1 224a5 5 0 1 1 0 2H0v-2h44.1zm160 48a5 5 0 1 1 0 2H82v-2h122.1zm57.8-46a5 5 0 1 1 0-2H304v2h-42.1zm0 16a5 5 0 1 1 0-2H304v2h-42.1zm6.2-114a5 5 0 1 1 0 2h-86.2a5 5 0 1 1 0-2h86.2zm-256-48a5 5 0 1 1 0 2H0v-2h12.1zm185.8 34a5 5 0 1 1 0-2h86.2a5 5 0 1 1 0 2h-86.2zM258 12.1a5 5 0 1 1-2 0V0h2v12.1zm-64 208a5 5 0 1 1-2 0v-54.2a5 5 0 1 1 2 0v54.2zm48-198.2V80h62v2h-64V21.9a5 5 0 1 1 2 0zm16 16V64h46v2h-48V37.9a5 5 0 1 1 2 0zm-128 96V208h16v12.1a5 5 0 1 1-2 0V210h-16v-76.1a5 5 0 1 1 2 0zm-5.9-21.9a5 5 0 1 1 0 2H114v48H85.9a5 5 0 1 1 0-2H112v-48h12.1zm-6.2 130a5 5 0 1 1 0-2H176v-74.1a5 5 0 1 1 2 0V242h-60.1zm-16-64a5 5 0 1 1 0-2H114v48h10.1a5 5 0 1 1 0 2H112v-48h-10.1zM66 284.1a5 5 0 1 1-2 0V274H50v30h-2v-32h18v12.1zM236.1 176a5 5 0 1 1 0 2H226v94h48v32h-2v-30h-48v-98h12.1zm25.8-30a5 5 0 1 1 0-2H274v44.1a5 5 0 1 1-2 0V146h-10.1zm-64 96a5 5 0 1 1 0-2H208v-80h16v-14h-42.1a5 5 0 1 1 0-2H226v18h-16v80h-12.1zm86.2-210a5 5 0 1 1 0 2H272V0h2v32h10.1zM98 101.9V146H53.9a5 5 0 1 1 0-2H96v-42.1a5 5 0 1 1 2 0zM53.9 34a5 5 0 1 1 0-2H80V0h2v34H53.9zm60.1 3.9V66H82v64H69.9a5 5 0 1 1 0-2H80V64h32V37.9a5 5 0 1 1 2 0zM101.9 82a5 5 0 1 1 0-2H128V37.9a5 5 0 1 1 2 0V82h-28.1zm16-64a5 5 0 1 1 0-2H146v44.1a5 5 0 1 1-2 0V18h-26.1zm102.2 270a5 5 0 1 1 0 2H98v14h-2v-16h124.1zM242 149.9V160h16v34h-16v62h48v48h-2v-46h-48v-66h16v-30h-16v-12.1a5 5 0 1 1 2 0zM53.9 18a5 5 0 1 1 0-2H64V2H48V0h18v18H53.9zm112 32a5 5 0 1 1 0-2H192V0h50v2h-48v48h-28.1zm-48-48a5 5 0 0 1-9.8-2h2.07a3 3 0 1 0 5.66 0H178v34h-18V21.9a5 5 0 1 1 2 0V32h14V2h-58.1z'%3E%3C/path%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Section Header */
.section-header {
  margin-bottom: 60px;
}

.section-heading {
  font-size: 36px;
  font-weight: 400;
  color: #5f6368;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.section-subheading {
  font-size: 16px;
  color: #80868b;
  margin: 0;
}

/* Process Cards */
.process-card-modern {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 40px 24px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-card-modern:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* Icon Wrapper */
.process-icon-wrapper {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.process-icon-modern {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  filter: contrast(1.1) brightness(1.05);
}

/* Title */
.process-title-modern {
  font-size: 20px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 12px;
}

/* Description */
.process-desc-modern {
  font-size: 14px;
  line-height: 1.6;
  color: #5f6368;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
  .process-modern {
    padding: var(--section-padding-sm) 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-heading {
    font-size: 32px;
  }

  .process-card-modern {
    padding: 32px 20px;
  }
}

@media (max-width: 767px) {
  .process-modern {
    padding: var(--section-padding-xs) 0;
  }

  .section-heading {
    font-size: 28px;
  }

  .section-subheading {
    font-size: 15px;
  }

  .process-card-modern {
    margin-bottom: 16px;
  }
}

/* ============================================
   PROCESS SECTION - Card & Timeline Overrides
   (Merged from custom.css)
   ============================================ */

/* Process Cards */
.process-section {
    padding: var(--section-padding) 0;
    background: #f9f9fb;
    /* Very subtle off-white to contrast with the white cards */
}

.process-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft premium shadow */
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    /* Blue glow on hover */
}

.process-step {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sn-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.process-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: contrast(1.1) brightness(1.05);
}

.process-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nav-color);
    margin-bottom: 15px;
}

.process-desc {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1rem;
}

/* Connecting Line (Desktop Only) */
@media (min-width: 992px) {
    .process-line {
        position: absolute;
        top: 140px;
        /* Adjust based on icon position */
        left: 0;
        right: 0;
        height: 2px;
        background: repeating-linear-gradient(to right,
                var(--sn-primary) 0,
                var(--sn-primary) 10px,
                transparent 10px,
                transparent 20px);
        opacity: 0.2;
        z-index: 0;
        display: none;
        /* Disabled for card layout, cleaner without it for now */
    }
}

/* Vertical Timeline - Text Only */
.timeline-section {
    position: relative;
    padding: var(--section-padding) 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* Central Blue Dashed Line */
.timeline::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-image: linear-gradient(to bottom, var(--sn-primary-light) 60%, transparent 40%);
    background-size: 2px 14px;
    opacity: 0.6;
}

.timeline-container {
    position: relative;
    width: 50%;
    display: flex;
    align-items: center;
}

.left-container {
    justify-content: flex-end;
    padding-right: 60px;
}

.right-container {
    justify-content: flex-start;
    padding-left: 60px;
    left: 50%;
}

/* The Dot */
.timeline-dot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 16px;
    background-color: #fff;
    border: 3px solid var(--sn-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    z-index: 2;
}

.left-container .timeline-dot {
    right: -8px;
}

.right-container .timeline-dot {
    left: -8px;
}

/* Content (Clean Text) */
.timeline-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    position: relative;
    box-shadow: none;
    border: none;
    transition: transform 0.3s ease;
    max-width: 420px;
}

.timeline-content:hover {
    transform: translateY(-2px);
}

/* Typography & Alignment */
.left-container .timeline-content {
    text-align: right;
}

.right-container .timeline-content {
    text-align: left;
}

/* Steps (Capitalized) */
.timeline-step {
    color: var(--sn-primary);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.timeline-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.timeline-content p {
    color: #4b5563;
    margin-bottom: 0;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Arrows (Removed) */
.left-container .timeline-content::before,
.right-container .timeline-content::before,
.timeline-container::before {
    display: none;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {

    /* Line moves to left */
    .timeline::after {
        left: 24px;
        transform: none;
    }

    .timeline-container {
        width: 100%;
        padding-left: 72px;
        padding-right: 20px;
        justify-content: flex-start;
    }

    .left-container,
    .right-container {
        left: 0;
    }

    /* Dots move to left */
    .timeline-dot,
    .right-container .timeline-dot {
        left: 16px !important;
        right: auto !important;
    }

    /* Reset text alignment */
    .left-container .timeline-content {
        text-align: left;
    }
}
