
/* ========================================
   SUB VISUAL
======================================== */

.sub-visual {
  position: relative;
  width: 100%;
  height: 350px;

  display: flex;
  align-items: flex-end;

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* 배경 어둡게 */
.sub-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

/* 내부 정렬 */
.sub-visual-inner {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: var(--inner);
  margin: 0 auto;
  padding: 0 0px 35px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

/* 타이틀 */
.sub-visual h2 {
  margin: 0;
  color: var(--color-white);
  font-size: var(--font-visual);
  font-weight: 600;
  line-height: 1.2;
}

/* 현재 위치 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;

  color: rgba(255, 255, 255, 0.65);
  font-size: var(--font-base);
}

.breadcrumb span::after {
  content: "/";
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb strong {
  color: var(--color-white);
  font-weight: 500;
}

/* ========================================
   PAGE BACKGROUND
======================================== */

.sub-about {
  background-image: url('/images/sub_about.png');
}

.sub-product {
  background-image: url('/images/sub_product.png');
}

.sub-contact {
  background-image: url('/images/sub_contact.png');
}

.sub-esg{
  background-image: url('/images/sub_esg.png');
}

.sub-privacy{
   background-image: url('/images/sub_privacy.png');
}

/* ========================================
   SUB NAVIGATION
======================================== */

.sub-nav {
  width: 100%;
  background: var(--color-blue-nav);
}

.sub-nav-inner {
  max-width: var(--inner);
  margin: 0 auto;


  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sub-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 60px;
  color: rgba(255, 255, 255, 0.6);

  font-size: var(--font-base);
  font-weight: 500;
  text-align: center;
  text-decoration: none;

  transition: color 0.3s;
}

.sub-nav a:hover,
.sub-nav a.active {
  color: var(--color-white);
}

.sub-nav a.active {
  font-weight: 600;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1024px) {
  .sub-visual {
    height: 300px;
  }

  .sub-visual h2 {
    font-size: var(--font-title-md);
  }

  .sub-nav-inner {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sub-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .sub-nav a {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: var(--font-sm);
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {
  .sub-visual {
    height: 260px;
  }

  .sub-visual-inner {
    padding: 0 20px 25px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .sub-visual h2 {
    font-size: var(--font-title-md);
  }

  .breadcrumb {
    font-size: var(--font-xs);
  }

  .sub-nav-inner {
    padding: 0 20px;
    gap: 28px;
  }

  .sub-nav a {
    min-height: 52px;
    font-size: var(--font-xs);
  }
}
