/* 
  File: index.css
  Component: yawei_service
  Description: Styles for the Yawei After-Sales Service component.
*/

.yawei-service {
  padding: 80px 0;
  background-color: #FFFFFF;
  font-family: 'Arimo', sans-serif;
}

.yawei-service .container {
  padding-left: 15px;
  padding-right: 15px;
}
@media (min-width: 1900px) {
  .yawei-service .container {
    max-width: calc(100% - 422px);
    padding-left: 0;
    padding-right: 0;
  }
}

.yawei-service__wrapper {
  display: flex;
  gap: 52px;
}

/* Left Panel */
.yawei-service__left {
  flex: 0 0 446px;
}

.yawei-service__title {
  color: #0A0A0A;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.48px;
  margin: 0 0 34px 0;
}

.yawei-service__subtitle {
  color: #0A0A0A;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.24px;
  margin: 0 0 34px 0;
  font-family: var(--font-family);
}

.yawei-service__divider {
  width: 100%;
  height: 3px;
  background-color: #1D1D1D;
  margin-bottom: 34px;
}

.yawei-service__nav-item {
  color: #838383;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.41;
  letter-spacing: -0.24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-family: var(--title-font-family);
  
}
.yawei-service__nav-item + .yawei-service__nav-item {
  margin-top: 26px;
}
.yawei-service__nav-item:hover {
  color: #E6002D;
}

.yawei-service__nav-item.active {
  color: #E6002D;
  font-weight: 700;
  padding-left: 30px;
}

.yawei-service__nav-item.active::before {
  content: '>>';
  position: absolute;
  left: 0;
  color: #E6002D;
}

/* Right Panel */
.yawei-service__right {
  flex: 1;
  min-width: 0;
  position: relative;
}

.yawei-service__content-panel {
  display: none;
  width: 100%;
  background-color: #fff;
  /* border-radius: 8px; */
  overflow: hidden;
  /* Use flex to layout image and text vertically */
  flex-direction: column;
}

.yawei-service__content-panel.active {
  display: flex;
}

.yawei-service__content-bg {
  /* Removed absolute positioning, now in normal document flow */
  height: 470px;
  width: 100%;
  flex-shrink: 0;
}

.yawei-service__content-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yawei-service__content-overlay {
  /* This is now the text content area below the image */
  padding: 40px 0 0 0;
  display: flex;
  flex-direction: column;
  flex: 1; /* Allow it to grow */
}

.yawei-service__content-header {
  margin-bottom: 40px;
}

.yawei-service__content-title {
  /* Color changed for light background */
  color: #121212;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.36px;
}

.yawei-service__content-category {
  /* Color changed for light background */
  color: #676767;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.18px;
  display: block;
}

.yawei-service__accordion {
  flex: 1;
  /* overflow-y: auto; */
}

.yawei-service__accordion-item {
  /* Color changed for light background */
  border-bottom: 1px solid #E0E0E0;
}
.yawei-service__accordion-item + .yawei-service__accordion-item {
  margin-top: 33px;
}

.yawei-service__accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
  margin-bottom: 30px;
}

.yawei-service__accordion-title {
  /* Color changed for light background */
  color: #191919;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.5px;
  font-family: var(--title-font-family);
}

.yawei-service__accordion-arrow {
  /* Color changed for light background */
  color: #191919;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.yawei-service__accordion-header.active .yawei-service__accordion-arrow {
  transform: rotate(90deg);
}

.yawei-service__accordion-content {
  display: none;
  padding: 0 0 20px 0;
  /* Color changed for light background */
  color: #676767;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.45px;
}

/* Responsive */
@media (max-width: 1200px) {
  .yawei-service__wrapper {
    gap: 30px;
  }
  .yawei-service__left {
    flex: 0 0 350px;
  }
  .yawei-service__content-bg {
    height: 400px;
  }
}

@media (max-width: 992px) {
  .yawei-service__wrapper {
    flex-direction: column;
  }
  .yawei-service__left {
    flex: 0 0 auto;
  }
  .yawei-service__content-bg {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .yawei-service__content-overlay{
    padding-top: 16px;
  }
  .yawei-service__content-header{
    margin-bottom: 16px;
  }
  .yawei-service__accordion-header{
    margin-bottom: 10px;
  }
  .yawei-service {
    padding: 22px 0;
  }
  .yawei-service__title {
    font-size: 24px;
  }
  .yawei-service__subtitle {
    font-size: 18px;
  }
  .yawei-service__nav-item {
    font-size: 18px;
  }
  .yawei-service__content-bg {
    height: 180px;
  }
  .yawei-service__content-title {
    font-size: 24px;
  }
  .yawei-service__accordion-title {
    font-size: 18px;
  }
  .yawei-service__accordion-content {
    font-size: 16px;
    padding-bottom: 12px;
  }
  .yawei-service__accordion-item + .yawei-service__accordion-item{
    margin-top: 7px;
  }
  .yawei-service__nav-item + .yawei-service__nav-item{
    margin-top: 0;
  }
  .yawei-service__title{
    margin-bottom: 5px;
  }
  .yawei-service__subtitle{
    margin-bottom: 5px;
  }
  .yawei-service__divider{
    margin-bottom: 20px;
    height: 2px;
  }
  .yawei-service__wrapper{
    gap: 20px;
  }
}
