/* Modern Careers Page Styles */

/* Hero Section */
.careers-hero {
  position: relative;
  height: 60vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0A1F3D 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.career-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
}

.pattern-element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s linear infinite;
}

.pattern-element.element-1 {
  width: 120px;
  height: 120px;
  background: var(--accent-color);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.pattern-element.element-2 {
  width: 80px;
  height: 80px;
  background: var(--secondary-color);
  top: 60%;
  right: 15%;
  animation-delay: -5s;
}

.pattern-element.element-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
  top: 10%;
  right: 25%;
  animation-delay: -10s;
}

.pattern-element.element-4 {
  width: 100px;
  height: 100px;
  background: var(--accent-color);
  bottom: 20%;
  left: 20%;
  animation-delay: -15s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
  25% { transform: translateY(-20px) translateX(10px) rotate(90deg); }
  50% { transform: translateY(0px) translateX(20px) rotate(180deg); }
  75% { transform: translateY(20px) translateX(10px) rotate(270deg); }
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, rgba(49, 61, 75, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(49, 61, 75, 0.15) 0%, transparent 50%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(49, 61, 75, 0.2);
  border: 1px solid rgba(49, 61, 75, 0.3);
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-badge i {
  color: var(--accent-color);
  font-size: 1.1rem;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 25px;
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-subtitle {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: scale(0.9);
  animation: scaleIn 0.8s ease-out 0.8s forwards;
}

/* Fix outline button contrast on dark background */
.hero-actions .btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  transform: translateY(-2px);
}

/* Why K2 Section */
.why-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
}

.why-content {
  text-align: center;
}

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

.intro-content {
  max-width: 800px;
  margin: 0 auto;
}

.intro-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 25px;
}

.intro-content p:last-child {
  margin-bottom: 0;
}

/* Benefits Section */
.benefits-section {
  padding: 80px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.benefits-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(19, 41, 75, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(49, 61, 75, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Center section headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  position: relative;
  z-index: 2;
}

.benefit-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

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

/* Fixed benefit icon visibility - much better contrast */
.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  border-radius: 20px;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(19, 41, 75, 0.3);
  border: 3px solid var(--accent-color);
}

.benefit-icon i {
  font-size: 2.2rem;
  color: var(--white);
  font-weight: 900;
}

.benefit-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.benefit-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* Positions Section */
.positions-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.positions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.position-card {
  background: var(--white);
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.position-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(49, 61, 75, 0.02) 0%, rgba(49, 61, 75, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.position-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.position-card:hover::before {
  opacity: 1;
}

.position-header {
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
}

.position-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.position-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.position-type {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--accent-color), #E6A500);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.position-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary-color);
  font-weight: 500;
  font-size: 1rem;
}

.position-location i {
  color: var(--accent-color);
}

.position-requirements {
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.position-requirements h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.position-requirements ul {
  list-style: none;
  padding: 0;
}

.position-requirements li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-color);
}

.position-requirements li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
}

.more-requirements {
  font-style: italic;
  color: var(--secondary-color) !important;
  font-weight: 500;
}

.position-footer {
  position: relative;
  z-index: 2;
}

.position-footer .btn {
  width: 100%;
  justify-content: center;
  gap: 10px;
}

/* Process Section - Fixed alignment and visibility */
.process-section {
  padding: 80px 0;
  background: var(--white);
  position: relative;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
  position: relative;
}

.process-step {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 50px 30px 35px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  z-index: 2;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Fixed step number positioning and visibility */
.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), #0A1F3D);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 6px 20px rgba(19, 41, 75, 0.4);
  border: 3px solid var(--accent-color);
  z-index: 3;
}

/* Fixed step icon visibility and alignment */
.step-icon {
  width: 80px;
  height: 80px;
  margin: 25px auto 30px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--accent-color);
  box-shadow: 0 4px 20px rgba(19, 41, 75, 0.3);
}

.step-icon i {
  font-size: 2rem;
  color: var(--white);
  font-weight: 900;
}

.step-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.step-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* CTA Section - Fixed contrast issues */
.careers-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0A1F3D 100%);
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-elements {
  position: relative;
  width: 100%;
  height: 100%;
}

.float-element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.float-element.element-1 {
  width: 100px;
  height: 100px;
  background: var(--accent-color);
  top: 20%;
  left: 10%;
  animation: float 25s linear infinite;
}

.float-element.element-2 {
  width: 150px;
  height: 150px;
  background: var(--secondary-color);
  top: 60%;
  right: 15%;
  animation: float 30s linear infinite reverse;
}

.float-element.element-3 {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
  bottom: 20%;
  left: 70%;
  animation: float 35s linear infinite;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: rgba(49, 61, 75, 0.2);
  border: 2px solid rgba(49, 61, 75, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.cta-icon i {
  font-size: 2rem;
  color: var(--accent-color);
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.cta-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-info {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.cta-actions {
  max-width: 300px;
  margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .positions-grid {
    grid-template-columns: 1fr;
  }
  
  .process-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .careers-hero {
    height: 50vh;
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .why-section,
  .benefits-section,
  .positions-section,
  .process-section,
  .careers-cta-section {
    padding: 60px 0;
  }
  
  .benefits-grid,
  .positions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .process-flow {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .position-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 15px;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .careers-hero {
    height: 45vh;
    min-height: 450px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .why-section,
  .benefits-section,
  .positions-section,
  .process-section,
  .careers-cta-section {
    padding: 40px 0;
  }
  
  .benefit-card,
  .position-card,
  .process-step {
    padding: 25px 20px;
  }
  
  .process-step {
    padding: 40px 20px 25px;
  }
  
  .positions-grid {
    grid-template-columns: 1fr;
  }
  
  .position-card {
    min-width: auto;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}
