.partner-logos {
  background-color: white;
  /* 배경 흰색 */
}

#logo-container {
  margin-top: 51px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.partner-logos .logo-col {
  height: 45px;
  border-bottom: 1px solid #ddd;
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 2px;
    right: 0;
    width: 1px;
    background-color: #ddd;
  }

  a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
}

/* PC용 */
@media (min-width: 768px) {
  .card {
    display: none !important;
  }
}

/* 모바일용 */
@media (max-width: 767px) {
  .card {
    display: flex !important; /* 또는 block, 상황에 따라 */
  }
}

.partner-logos .logo-col {
  height: 45px;
  border-bottom: 1px solid #ddd;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  /* 세로 구분선 */
  position: relative;
}
.partner-logos .logo-col::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  right: 0;
  width: 1px;
  background-color: #ddd;
}

/* 이미지가 가운데 정렬되도록 */
.partner-logos .logo-col img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.logo-col:nth-child(7n) {
  &::before {
    display: none;
  }
}

.logo-img {
  height: 13px;
}
.logo-img2 {
  height: 21px;
}
.logo-img3 {
  height: 19px;
}
.logo-img4 {
  height: 22px;
}
.logo-img5 {
  height: 20px;
}
.logo-img6 {
  height: 27px;
}
.logo-img7 {
  height: 16px;
}
.partner-logos .logo-col:nth-child(8) a img {
  height: 8px;
}
.partner-logos .logo-col:nth-child(18) a img {
  height: 11px;
}
.partner-logos .logo-col:nth-child(28) a img {
  height: 11px;
}
.partner-logos .logo-col:nth-child(20) a img {
  height: 28px;
}
.partner-logos .logo-col:nth-child(34) a img {
  height: 20px;
}
.partner-logos .logo-col:nth-child(35) a img {
  height: 20px;
}

.partner-logos .logo-col:nth-child(40) a img {
  height: 20px;
}
.partner-logos .logo-col:nth-child(43) a img {
  height: 20px;
}
.partner-logos .logo-col:nth-child(44) a img {
  height: 24px;
}
.partner-logos .logo-col:nth-child(45) a img {
  height: 20px;
}
.partner-logos .logo-col:nth-child(46) a img {
  height: 8px;
}
.partner-logos .logo-col:nth-child(47) a img {
  height: 20px;
}

.responsive-image {
}

.middle-container {
  /* justify-content: flex-end; */
  /* display: flex; */
  gap: 88px;
  margin-top: 125px;
  display: flex;
  gap: 48px;
  align-items: center;
}
.middle-container2 {
  /* justify-content: flex-end; */
  /* display: flex; */
  gap: 88px;
  margin-top: 22px;
  display: flex;
  gap: 0px;
  align-items: flex-start;
}

/* 협력사 초청행사 */
.event-title {
  font-family: "HyundaiSansHead";
  font-weight: 500;
  border-top: 2px solid #ffffff;
  font-size: 20px;
  color: #fff;
  padding-top: 23px;
  margin-bottom: 13px;
  span {
    color: #6fd8ff;
    font-size: 13px;
    font-family: "HyundaiSansHead";
    font-weight: 400;
  }
}


/* 협력사 초청행사 */
.event-title-bottom {
  font-family: "HyundaiSansHead";
  font-weight: 500;
  border-top: 2px solid #ffffff;
  font-size: 20px;
  color: #fff;
  padding-top: 23px;
  margin-bottom: 13px;
  span {
    color: #6fd8ff;
    font-size: 13px;
    font-family: "HyundaiSansHead";
    font-weight: 400;
  }
}
.event-modal-title {
  font-family: "HyundaiSansHead";
  font-weight: bold;
  border-top: 2px solid #ffffff;
  font-size: 40px;
  color: #000;

  span {
    color: #000;
    font-size: 13px;
    font-family: "HyundaiSansHead";
    font-weight: 400;
  }
}

.event-modal {
  font-family: "HyundaiSansHead";
  font-weight: bold;
  border-top: 2px solid #ffffff;
  font-size: 26px;
  color: #000;

  span {
    color: #000;
    font-size: 13px;
    font-family: "HyundaiSansHead";
    font-weight: 400;
  }
}

.event-details {
  li {
    color: #fff;
    font-size: 16px;
    margin: 6px 0;

    b {
      font-family: "HyundaiSansHead";
      font-weight: 400;
      margin-right: 15px;
    }

    span {
      font-family: "HyundaiSansHead";
      font-weight: 300;
    }
  }
}

.event-info-l {
  width: 518px;

  a {
    display: flex;
    width: 271px;
    border: 1px solid #ffffff;
    border-radius: 8px;
    padding: 13px 16px;
    align-items: center;
    p {
      border-left: 1px solid #fff;
      font-weight: 400;
      padding-left: 15px;
      margin-left: 15px;
      font-family: "HyundaiSansHead";
      font-size: 14px;
    }
  }
}
.ybk {
  display: none;
}

body {
  height: 100vh;
  background: #0b0f12 url("../img/main/main_bg.png") no-repeat center;
  background-size: cover;
}

/* body {



    background-image: url("../img/main/main_bg.png");
    background-repeat: no-repeat;
    background-size: cover;
  } */
@media (max-width: 767px) {
  body {
    background-image: url("../img/main/mobile_main_background1.png");
    background-repeat: no-repeat;
    background-size: cover; /* 화면에 꽉 채우기 */
    background-position: center top; /* 항상 위쪽 기준으로 고정 */
    background-attachment: scroll; /* 모바일에서 fixed는 비권장 */
  }
  .main_title {
    img {
      max-width: 97%;
    }
  }
  



  #main_title {
    margin-top: 60px;
  }
  .event-title {
    padding-top: 0px;
    margin-bottom: 0px;
    border-bottom: 2px solid #000;
  }
  .event-title-bottom {
    padding-top: 33px;
    margin-bottom: 0px;
    border-bottom: 2px solid #000;
  }

  .event-details {
    li {

      color: #fff;
      font-size: 14px;
      margin: 6px 0;
      font-weight: 400;
      line-height: 22px;

      b {
        font-family: "HyundaiSansHead";
        font-weight: 400;
        margin-right: 20px;
      }

      span {
        font-family: "HyundaiSansHead";
        font-weight: 300;
        line-height: 22px;

      }
    }
  }

  .middle-container {
    display: block;
    padding: 19px 16px;
    background-color: #fff;
    margin-top: 160px;
    .event-info-l {
      width: 100%;
      a {
        margin-top: 11px;
        margin-bottom: 30px;
        width: 100%;
        border: 1px solid #000;
        .ybk {
          width: 50%;
          text-align: center;
          display: block;
        }
        p {
          border-left: 1px solid #000;
          width: 50%;
          text-align: center;
          padding-left: 0;
          margin-left: 0;
        }
        .pc-yout-img {
          display: none;
        }
      }
      .d-flex {
        display: block;
      }
    }
    * {
      color: #000;
    }
  }
  .middle-container {
    display: none;
  }
  .middle-container2 {
    margin-top: 153px;
    display: block;
    padding: 22px 15px 20px 15px;
    background-color: #fff;
    .event-info-l {
      width: 100%;
      a {
        margin-top: 11px;
        margin-bottom: 30px;
        width: 100%;
        border: 1px solid #000;
        .ybk {
          width: 50%;
          text-align: center;
          display: block;
        }
        p {
          border-left: 1px solid #000;
          width: 50%;
          text-align: center;
          padding-left: 0;
          margin-left: 0;
        }
        .pc-yout-img {
          display: none;
        }
      }
      .d-flex {
        display: block;
      }
    }
    * {
      color: #000;
    }
  }
  #logo-container {
    grid-template-columns: repeat(5, 1fr);
  }
  .logo-col:nth-child(7n) {
    &::before {
      display: block;
    }
  }
}
@media (max-width: 767px) {
  #logo-container {
    display: none;
    grid-template-columns: repeat(2, 1fr);
  }
}

.tab-text.active {
  background-color: #6fd8ff; /* 활성화된 탭의 배경 색 */
}

.tab-text {
  cursor: pointer;
  padding: 10px;
  display: inline-block;
  border: 1px solid #ccc; /* 기본 테두리 */
  margin-right: 5px;
  background-color: transparent; /* 기본 배경색 투명 */
  transition: background-color 0.3s ease; /* 클릭 시 배경색 전환 효과 */
}

#mainmodal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#mainmodal .event-modal-title,
#mainmodal .event-modal {
  text-align: left;
  max-width: 800px;
}

.mobody {
  font-family: "Hyundai Sans Head", sans-serif; /* 폰트 지정 */
  background-color: #fff;
  padding: 20px;
}

.card {
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  border: 1px solid #000;
  border-radius: 8px;
  padding: 12px 16px;
  max-width: 767px;
  background-color: #fff;
  font-family: "HyundaiSansHead", sans-serif; /* 디자이너가 지정한 폰트 */
}

/* 왼쪽 (아이콘 + 라벨) */
.card .left {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 16px;
}

.card .icon {
  width: 130px; /* 아이콘 크기 */
  height: auto;
}

.card .label {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700; /* Bold */
}

/* 오른쪽 (날짜 + 시간) */
.card .right {
  flex: 1;
}

.card .title {
  font-size: 13px;
  font-weight: 700; 
  /* margin-bottom: 4px; */
}

.card .date {
  font-weight: 700; /* Regular */
}

.card .week {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 400;
  color: #444;
}

.card .time {
  font-size: 14px;
  font-weight: 400;
}

.divider {
  width: 1px;
  height: 40px;
  background-color: #000; /* 선 색상 */
}

.card .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.card .info {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  font-family: "HyundaiSansHead", sans-serif;
}






.button-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.custom-close-btn {
    background: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
}

/* 콘텐츠 영역 */
.content-area {
    padding: 38px;
}

.event-title {
    letter-spacing: -0.04em;
    font-size: 20px;
    margin-bottom: 20px;
}

.event-schedule {
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.event-contact {
    margin-top: 30px;
}

.contact-name {
    font-weight: bold;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.contact-person {
    font-weight: bold;
    font-size: 21px;
    letter-spacing: -0.04em;
}

.contact-info {
    font-weight: normal;
    font-size: 20px;
    letter-spacing: -0.04em;
}

.flowchart-container {
    text-align: center;
    margin: 20px 0;
}

.flowchart-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 모바일 반응형 */
@media (max-width: 767px) {
    #alertModalMobile .modal-dialog {
        max-width: 90%;
        margin: 20px auto;
    }

    .custom-close-btn {
        width: 30px;
        height: 30px;
    }

    .content-area {
        padding: 20px;
    }

    .event-title {
        font-size: 16px;
    }

    .contact-name {
        font-size: 20px;
    }

    .contact-person {
        font-size: 18px;
    }

    .contact-info {
        font-size: 14px;
        word-break: break-all;
    }
}