/* About Intro Section */
.hero {
  background: url("../images/about-banner.png");
  height: 520px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff;
  text-align: left;
}

/* Hero Animation */
.hero h1,
.hero p {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.hero h1.animate-in,
.hero p.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.hero p {
  transition-delay: 0.2s;
}

.about-intro {
  padding: 80px 0;
  background-color: #fff;
}

.intro-flex-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 60px;
}

.intro-content {
  flex: 1;
}

.about-intro h2 {
  font-size: 32px;
  font-weight: bold;
  color: #000;
  margin-bottom: 40px;
  text-align: left;
}

.intro-desc {
  font-size: 16px;
  line-height: 2;
  color: #333;
  text-align: justify;
  margin-bottom: 30px;
}

.highlight-points {
  margin: 30px 0;
}

.point-item {
  font-size: 16px;
  line-height: 2;
  color: #0045ff;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: left;
}

.intro-image {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.image-placeholder {
  width: 100%;
  height: 300px;
  background-color: #d9d9d9;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
  font-size: 24px;
  border-radius: 4px;
}

.image-placeholder span {
  font-weight: bold;
}

/* History Section */
.history-section {
  position: relative;
  width: 100%;
  height: 600px;
  background: #002db3; /* Fallback */
  background-image: url("../images/hero-bg4.png"); /* Assuming this is the mesh background */
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
  padding-top: 100px;
}

/* Add an overlay to ensure text readability if needed, or to match the exact blue tone */
.history-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(30, 94, 255, 0.8) 0%,
    rgba(0, 45, 179, 0.9) 100%
  );
  z-index: 1;
}

.history-section .container {
  position: relative;
  z-index: 2;
  height: 100%;
}

.history-content-wrapper {
  position: relative;
  height: 100%;
}

/* Navigation Arrows */
.history-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.history-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.history-nav-btn svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.prev-btn {
  left: -60px; /* Outside container or adjust */
}

.next-btn {
  right: -60px;
}

/* Static Logo */
.history-logo {
  position: absolute;
  right: 100px; /* Adjusted from 0 to align better */
  top: 80px;
  z-index: 10;
}

.history-logo img {
  height: 60px;
  opacity: 1;
}

/* Panels */
.history-panels {
  position: relative;
  height: 350px;
  width: 70%;
  margin-left: 50px; /* Add some spacing from left arrow */
}

.history-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

.history-panel.active {
  opacity: 1;
  visibility: visible;
}

.history-panel .year {
  font-size: 100px; /* Increased size */
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1;
  opacity: 0;
  transform: translateY(-40px);
  transition: all 0.6s ease-out;
  font-family: "Helvetica Neue", Arial, sans-serif; /* Clean thin font */
}

.history-panel .title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(-40px);
  transition: all 0.6s ease-out;
  transition-delay: 0.1s;
}

.history-panel .desc {
  font-size: 16px;
  line-height: 2;
  opacity: 0;
  max-width: 600px;
  transform: translateY(-40px);
  transition: all 0.6s ease-out;
  transition-delay: 0.2s;
  color: rgba(255, 255, 255, 0.9);
}

.history-panel.active .year,
.history-panel.active .title,
.history-panel.active .desc {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline */
.history-timeline {
  position: absolute;
  bottom: 80px;
  left: 50px;
  right: 50px;
  width: auto; /* Use auto width with left/right */
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 0 50px; */
}

.timeline-line {
  position: absolute;
  top: 14px; /* Center with smaller dots */
  left: 0;
  right: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
  cursor: pointer;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 80px; /* Fixed height to accommodate animations */
  justify-content: flex-start; /* Align from top */
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin-bottom: 25px; /* Space between dot and text */
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  margin-top: 8px; /* Align with line */
  border: 2px solid transparent;
}

.timeline-year {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  position: absolute;
  top: 40px; /* Fixed position below dot */
}

/* Active State */
.timeline-item.active .timeline-dot {
  width: 24px;
  height: 24px;
  background-color: #0045ff;
  border: 4px solid #fff;
  opacity: 1;
  margin-top: 2px; /* Center vertically */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.timeline-item.active .timeline-dot::after {
  display: none;
}

.timeline-item.active .timeline-dot::before {
  display: none;
}

.timeline-item.active .timeline-year {
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  top: 50px; /* Push down slightly */
}

/* Hover effects */
.timeline-item:not(.active):hover .timeline-dot {
  opacity: 0.8;
  transform: scale(1.2);
}
.timeline-item:not(.active):hover .timeline-year {
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1300px) {
  .history-nav-btn.prev-btn {
    left: 10px;
  }
  .history-nav-btn.next-btn {
    right: 10px;
  }
  .history-section .container {
    width: 100%;
    padding: 0 60px;
  }
}

/* Service Assurance Section */
.service-assurance {
  padding: 80px 0;
  background: #f9fafb linear-gradient(to bottom, #f9fafb 0%, #fff 100%);
  overflow: hidden;
}

.service-assurance .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.service-assurance .section-header h2 {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

/* Sub-module styles */
.assurance-sub-module {
  max-width: 1200px;
  margin: 0 auto;
}

.landing-module {
  margin-top: 80px;
}

.sub-module-header {
  text-align: center;
  margin-bottom: 50px;
}

.sub-module-header h3 {
  font-size: 24px;
  color: #333;
  font-weight: bold;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.sub-module-header h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: #00bcd4;
  border-radius: 2px;
}

.assurance-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.assurance-column {
  flex: 1;
}

.center-column {
  flex: 0 0 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.diagram-box {
  width: 100%;
  padding: 20px;
  border: none;
  border-radius: 4px;
  background: transparent;
  position: relative;
}

.diagram-box img {
  width: 100%;
  display: block;
}

.assurance-item {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}

.assurance-item:last-child {
  margin-bottom: 0;
}

.item-text h3 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.item-text p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.item-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Left Column Specifics */
.left-column .assurance-item {
  justify-content: flex-end;
  text-align: right;
  /* padding-right: 20px; */
}

.left-column .item-text {
  margin-right: 20px;
}

/* Right Column Specifics */
.right-column .assurance-item {
  justify-content: flex-start;
  text-align: left;
  /* padding-left: 20px; */
}

.right-column .item-text {
  margin-left: 20px;
}

/* Footer text */
.assurance-footer {
  text-align: center;
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}

/* Responsive for Service Assurance */
@media (max-width: 1024px) {
  .assurance-content {
    flex-direction: column;
  }
  .center-column {
    margin: 40px 0;
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
  }
  .left-column .assurance-item {
    justify-content: center;
    text-align: center;
    flex-direction: column-reverse;
    padding-right: 0;
  }
  .left-column .item-text {
    margin-right: 0;
    margin-top: 10px;
  }
  .right-column .assurance-item {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding-left: 0;
  }
  .right-column .item-text {
    margin-left: 0;
    margin-top: 10px;
  }
}

/* Animations */
.diagram-box {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
}

.diagram-box.animate-in {
  opacity: 1;
  transform: scale(1);
}

.left-column .assurance-item {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease-out;
}

.right-column .assurance-item {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease-out;
}

.assurance-item.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.left-column .assurance-item:nth-child(1) {
  transition-delay: 0.1s;
}
.left-column .assurance-item:nth-child(2) {
  transition-delay: 0.2s;
}
.left-column .assurance-item:nth-child(3) {
  transition-delay: 0.3s;
}

.right-column .assurance-item:nth-child(1) {
  transition-delay: 0.1s;
}
.right-column .assurance-item:nth-child(2) {
  transition-delay: 0.2s;
}
.right-column .assurance-item:nth-child(3) {
  transition-delay: 0.3s;
}

/* Solution Landing Assurance Styles (Merged) */
.landing-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-item {
  flex: 1;
  position: relative;
  padding: 0 15px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.landing-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.landing-item:nth-child(1) {
  transition-delay: 0.1s;
}
.landing-item:nth-child(2) {
  transition-delay: 0.2s;
}
.landing-item:nth-child(3) {
  transition-delay: 0.3s;
}
.landing-item:nth-child(4) {
  transition-delay: 0.4s;
}

.landing-icon-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Dashed border effect for icon wrapper */
.landing-icon-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 4px; /* Optional rounded corners */
}

/* Add corner marks using pseudo elements if needed for exact look, 
   but dashed border is close enough. Let's add the little corner L shapes if possible.
   For simplicity, we use dashed border first.
*/

.landing-icon {
  width: 80px;
  height: 80px;
  position: relative;
  z-index: 1;
}

.landing-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.landing-item h3 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.landing-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.arrow-icon {
  position: absolute;
  right: -10px;
  top: 30%; /* Adjust vertical alignment */
  width: 24px;
  height: 24px;
  color: #00bcd4; /* Cyan color */
  transform: translateX(50%);
}

.arrow-icon svg {
  width: 24px;
  height: 24px;
  stroke: #00bcd4;
  fill: #00bcd4; /* If using fill */
}

/* Hide arrow for last item */
.landing-item:last-child .arrow-icon {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .landing-grid {
    flex-direction: column;
    align-items: center;
  }

  .landing-item {
    margin-bottom: 60px;
    width: 100%;
    max-width: 400px;
  }

  .arrow-icon {
    right: 50%;
    bottom: -40px;
    top: auto;
    transform: translateX(50%) rotate(90deg); /* Point down on mobile */
  }
}

/* Talent Values Section */
.talent-values {
  padding: 80px 0;
  background-color: #fff;
}

.talent-values .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.talent-values .section-header h2 {
  font-size: 32px;
  font-weight: bold;
  color: #333;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(280px, auto));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.values-item {
  position: relative;
  overflow: hidden;
  height: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.values-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.values-item:nth-child(1) {
  transition-delay: 0.1s;
}
.values-item:nth-child(2) {
  transition-delay: 0.2s;
}
.values-item:nth-child(3) {
  transition-delay: 0.3s;
}
.values-item:nth-child(4) {
  transition-delay: 0.4s;
}
.values-item:nth-child(5) {
  transition-delay: 0.5s;
}
.values-item:nth-child(6) {
  transition-delay: 0.6s;
}

/* Image Items */
.values-item.image-item {
  background-color: #f0f0f0; /* Placeholder background */
}

.values-item.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text Items */
.values-item.text-item {
  padding: 40px 30px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.bg-text {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 40px;
  font-weight: bold;
  color: #b3a9a9; /* Very faint color */
  z-index: 0;
  letter-spacing: 2px;
  pointer-events: none;
}

.values-item.text-item h3 {
  font-size: 22px;
  font-weight: bold;
  color: #3b5de7; /* Blue accent color matching UI */
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.values-item.text-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  text-align: justify;
}

/* Responsive */
@media (max-width: 992px) {
  .values-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }

  .values-item {
    min-height: auto;
  }

  .values-item.image-item {
    height: 250px;
  }
}

/* Recruiting Section */
.recruiting-section {
  padding: 80px 0;
  background-color: #f4f8fb; /* Light blue background matching UI */
}

.recruiting-section .section-header {
  text-align: left;
  margin-bottom: 50px;
}

.recruiting-section .section-header h2 {
  font-size: 36px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.recruiting-section .section-header p {
  font-size: 16px;
  color: #666;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.job-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 420px; /* Fixed height */

  /* Animation props */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out,
    box-shadow 0.3s ease;
}

.job-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.job-card.animate-in:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Job Card Stagger */
.job-card:nth-child(1) {
  transition-delay: 0.1s;
}
.job-card:nth-child(2) {
  transition-delay: 0.2s;
}
.job-card:nth-child(3) {
  transition-delay: 0.3s;
}
.job-card:nth-child(4) {
  transition-delay: 0.4s;
}
.job-card:nth-child(5) {
  transition-delay: 0.1s;
} /* Row 2 repeats delays */
.job-card:nth-child(6) {
  transition-delay: 0.2s;
}
.job-card:nth-child(7) {
  transition-delay: 0.3s;
}
.job-card:nth-child(8) {
  transition-delay: 0.4s;
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-shrink: 0; /* Prevent header from shrinking */
}

.job-card-header h3 {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  flex: 1;
}

.accent-dot {
  width: 6px;
  height: 6px;
  background-color: #3b5de7; /* Blue accent dot */
  border-radius: 50%;
  margin-top: 8px;
  margin-left: 10px;
  flex-shrink: 0;
}

.job-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px; /* Space for scrollbar */
}

/* Custom Scrollbar for Job Content */
.job-content::-webkit-scrollbar {
  width: 3px;
}

.job-content::-webkit-scrollbar-track {
  background: transparent;
}

.job-content::-webkit-scrollbar-thumb {
  background-color: #d0d9f5; /* Light blue matching image */
  border-radius: 10px;
}

.job-content::-webkit-scrollbar-thumb:hover {
  background-color: #3b5de7; /* Active color on hover */
}

.job-block {
  margin-bottom: 20px;
}

.job-block:last-child {
  margin-bottom: 0;
}

.job-block h4 {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.job-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-block ul li {
  font-size: 12px;
  color: #888;
  line-height: 1.8;
  margin-bottom: 4px;
  text-align: justify;
}

.recruiting-footer {
  text-align: left;
  font-size: 14px;
  color: #888;
  margin-top: 20px;
}

/* Responsive for Recruiting */
@media (max-width: 1200px) {
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .recruiting-section .section-header h2 {
    font-size: 28px;
  }
}
