/* ===== IT Outstaffing Page Specific Styles ===== */

/* Hero Section Adjustments */
.os-hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
}

.os-hero-section .cs-hero-svg-container {
  min-height: 350px;
  padding: 20px;
}

.os-hero-section .cs-hero-svg-illustration {
  width: 100%;
  max-width: 580px;
  height: auto;
  aspect-ratio: 650 / 420;
  object-fit: contain;
}

@media (max-width: 991px) {
  .os-hero-section .cs-hero-svg-container {
    min-height: 300px;
    padding: 15px;
  }
  .os-hero-section .cs-hero-svg-illustration {
    max-width: 450px;
  }
}

@media (max-width: 767px) {
  .os-hero-section .cs-hero-svg-container {
    min-height: 250px;
    padding: 10px;
  }
  .os-hero-section .cs-hero-svg-illustration {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .os-hero-section .cs-hero-svg-container {
    min-height: 200px;
  }
}

/* Benefits Section */
.os-benefits-section {
  background: #f8f9fb;
}

/* ==================== Comparison Section ==================== */
.os-comparison-section {
  background: #ffffff;
}

.os-comparison-table-wrapper {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.os-comparison-table {
  width: 100%;
  background: #fff;
}

.os-comparison-header {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.os-comparison-header-item {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  font-family: p_m;
  text-align: center;
}

.os-comparison-header-item.os-feature-col {
  text-align: left;
  color: rgba(255, 255, 255, 0.8);
}

.os-badge-highlight {
  background: #ce403d;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.os-comparison-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  border-bottom: 1px solid #eef0f4;
  transition: background 0.3s ease;
}

.os-comparison-row:last-child {
  border-bottom: none;
}

.os-comparison-row:hover {
  background: rgba(206, 64, 61, 0.03);
}

.os-comparison-cell {
  padding: 18px 24px;
  font-size: 14px;
  color: #444;
  font-family: p_r;
  display: flex;
  align-items: center;
  gap: 10px;
}

.os-comparison-cell.os-feature-col {
  font-weight: 600;
  color: #141414;
  font-family: p_m;
}

.os-comparison-cell.os-outstaff-col {
  background: rgba(206, 64, 61, 0.05);
  color: #141414;
  font-weight: 500;
  justify-content: center;
  text-align: center;
}

.os-comparison-cell.os-outsource-col {
  color: #636368;
  justify-content: center;
  text-align: center;
}

.os-check-icon {
  width: 18px;
  height: 18px;
  stroke: #ce403d;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .os-comparison-table-wrapper {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  }

  .os-comparison-header {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .os-comparison-header-item.os-feature-col {
    display: none;
  }

  .os-comparison-header-item {
    padding: 14px 12px;
    font-size: 13px;
  }

  .os-comparison-row {
    grid-template-columns: 1fr;
    border-bottom: none;
    margin-bottom: 1px;
  }

  .os-comparison-cell {
    padding: 14px 16px;
    font-size: 13px;
  }

  .os-comparison-cell.os-feature-col {
    background: #f1f3f6;
    font-size: 13px;
    font-weight: 600;
    border-bottom: none;
  }

  .os-comparison-cell.os-outstaff-col,
  .os-comparison-cell.os-outsource-col {
    padding-left: 16px;
    justify-content: flex-start;
    text-align: left;
    flex-wrap: wrap;
  }

  .os-comparison-cell.os-outstaff-col::before {
    content: 'Outstaffing: ';
    font-weight: 600;
    color: #ce403d;
    margin-right: 6px;
  }

  .os-comparison-cell.os-outsource-col::before {
    content: 'Outsourcing: ';
    font-weight: 600;
    color: #636368;
    margin-right: 6px;
  }

  .os-comparison-cell .os-check-icon {
    display: none;
  }
}

/* ==================== Process/How It Works Section ==================== */
.os-process-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}

.os-process-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(206, 64, 61, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.os-process-section .tp-section-title {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* New Process Cards Layout */
.os-process-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}

.os-process-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px 25px;
  width: calc(20% - 16px);
  min-width: 200px;
  text-align: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.os-process-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(206, 64, 61, 0.5);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(206, 64, 61, 0.2);
}

.os-process-card-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ce403d 0%, #e05a57 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-family: p_m;
  box-shadow: 0 4px 15px rgba(206, 64, 61, 0.5);
}

.os-process-card-icon {
  width: 70px;
  height: 70px;
  background: rgba(206, 64, 61, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px auto 20px;
  transition: all 0.3s ease;
}

.os-process-card:hover .os-process-card-icon {
  background: #ce403d;
  transform: scale(1.1);
}

.os-process-card-icon svg {
  width: 32px;
  height: 32px;
  stroke: #ce403d;
  transition: stroke 0.3s ease;
}

.os-process-card:hover .os-process-card-icon svg {
  stroke: #fff;
}

.os-process-card-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  font-family: p_m;
  line-height: 1.3;
}

.os-process-card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-family: p_r;
  margin: 0;
}

.os-process-card-arrow {
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.os-process-card-arrow svg {
  width: 24px;
  height: 24px;
  stroke: #ce403d;
  opacity: 0.6;
}

.os-process-card-last .os-process-card-arrow {
  display: none;
}

@media (max-width: 1199px) {
  .os-process-card {
    width: calc(33.333% - 20px);
  }
  .os-process-card-arrow {
    display: none;
  }
}

@media (max-width: 767px) {
  .os-process-card {
    width: calc(50% - 10px);
    min-width: 150px;
    padding: 25px 15px;
  }
  .os-process-card-icon {
    width: 60px;
    height: 60px;
  }
  .os-process-card-icon svg {
    width: 28px;
    height: 28px;
  }
  .os-process-card-title {
    font-size: 15px;
  }
  .os-process-card-desc {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .os-process-card {
    width: 100%;
  }
}

/* ==================== Roles/Tech Stack Section ==================== */
.os-roles-section {
  background: #ffffff;
}

.os-roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1199px) {
  .os-roles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .os-roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .os-roles-grid {
    grid-template-columns: 1fr;
  }
}

.os-role-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #eef0f4;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.os-role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ce403d 0%, #e05a57 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.os-role-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(206, 64, 61, 0.12);
  border-color: rgba(206, 64, 61, 0.2);
}

.os-role-card:hover::before {
  transform: scaleX(1);
}

.os-role-icon {
  width: 60px;
  height: 60px;
  background: rgba(206, 64, 61, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: all 0.3s ease;
}

.os-role-card:hover .os-role-icon {
  background: #ce403d;
}

.os-role-icon svg {
  width: 28px;
  height: 28px;
  stroke: #ce403d;
  transition: stroke 0.3s ease;
}

.os-role-card:hover .os-role-icon svg {
  stroke: #fff;
}

.os-role-title {
  font-size: 18px;
  font-weight: 600;
  color: #141414;
  margin-bottom: 16px;
  font-family: p_m;
}

.os-role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  min-height: 60px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.os-role-tags span {
  font-size: 12px;
  padding: 5px 12px;
  background: #f8f9fb;
  color: #555;
  border-radius: 15px;
  font-family: p_r;
  border: 1px solid #eef0f4;
  transition: all 0.3s ease;
}

.os-role-card:hover .os-role-tags span {
  background: rgba(206, 64, 61, 0.08);
  border-color: rgba(206, 64, 61, 0.2);
  color: #ce403d;
}

/* Role Card as Link */
a.os-role-card {
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.os-role-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eef0f4;
  opacity: 1;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

/* .os-role-card:hover .os-role-cta {
  opacity: 1;
  transform: translateY(0);
} */

.os-role-cta span {
  font-size: 14px;
  font-weight: 600;
  color: #ce403d;
  font-family: p_m;
}

.os-role-cta svg {
  width: 16px;
  height: 16px;
  stroke: #ce403d;
  transition: transform 0.3s ease;
}

.os-role-card:hover .os-role-cta svg {
  transform: translateX(5px);
}

/* ==================== Tech Stack Section ==================== */
.os-techstack-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}

.os-techstack-section::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(206, 64, 61, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.os-techstack-section .tp-section-title {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.os-techstack-section .cs-why-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.os-techstack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.os-techstack-category {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 25px;
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  transition: all 0.3s ease;
}

.os-techstack-category:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(206, 64, 61, 0.3);
  transform: translateY(-5px);
}

.os-techstack-category-title {
  font-size: 14px;
  font-weight: 600;
  color: #ce403d;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  font-family: p_m;
  text-align: center;
}

.os-techstack-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.os-techstack-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.os-techstack-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.os-techstack-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.os-techstack-item span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-family: p_r;
}

@media (max-width: 991px) {
  .os-techstack-category {
    min-width: 150px;
    max-width: none;
    flex: 1 1 calc(33.333% - 20px);
  }
}

@media (max-width: 767px) {
  .os-techstack-category {
    flex: 1 1 calc(50% - 15px);
  }
}

@media (max-width: 480px) {
  .os-techstack-category {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ==================== FAQ Section (Optional) ==================== */
.os-faq-section {
  background: #f8f9fb;
}

.os-faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid #eef0f4;
  overflow: hidden;
  transition: all 0.3s ease;
}

.os-faq-item:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.os-faq-question {
  padding: 20px 25px;
  font-size: 16px;
  font-weight: 600;
  color: #141414;
  font-family: p_m;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.os-faq-question:hover {
  color: #ce403d;
}

.os-faq-question svg {
  width: 20px;
  height: 20px;
  stroke: #636368;
  transition: transform 0.3s ease;
}

.os-faq-item.active .os-faq-question svg {
  transform: rotate(180deg);
  stroke: #ce403d;
}

.os-faq-answer {
  padding: 0 25px 20px;
  font-size: 15px;
  color: #636368;
  line-height: 1.7;
  font-family: p_r;
  display: none;
}

.os-faq-item.active .os-faq-answer {
  display: block;
}

/* ==================== Stats Section ==================== */
.os-stats-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  padding: 40px 0;
}

.os-stat-box {
  text-align: center;
}

.os-stat-number {
  font-size: 48px;
  font-weight: 700;
  color: #ce403d;
  font-family: p_m;
  line-height: 1;
  margin-bottom: 10px;
}

.os-stat-number span {
  font-size: 32px;
}

.os-stat-label {
  font-size: 14px;
  color: #636368;
  font-family: p_r;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 767px) {
  .os-stats-row {
    gap: 30px;
  }

  .os-stat-number {
    font-size: 36px;
  }

  .os-stat-number span {
    font-size: 24px;
  }
}

/* ==================== Override for Industries Section ==================== */
.os-hero-section + .cs-challenges-section {
  margin-top: 0;
}

/* Animation visibility fix */
.os-comparison-table-wrapper,
.os-process-step,
.os-role-card {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}
