/* Interview Page - News List Styles - 2 items per row */
.t-test2__contents {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.t-test2__item {
  width: 50%;
  /* 2 items per row with gap */
  max-width: 48%;
}

.a-catalog__back {
  padding-bottom: 0px !important;
}

.ul {
  text-decoration: underline;
}

.ym {
  background: linear-gradient(transparent 10%, #ff547c76 10%) !important;
}

@media (max-width: 768px) {
  .slider-item-subtitle {
    margin: 0 !important;
  }

  .interview__content_middle {
    padding: 30px;
  }

  .interview__chat {
    padding: 0 30px;
  }

  .interview__text {
    padding: 20px;
  }

  .interview__content {
    margin-top: 20px;
    padding: 20px;
  }

  .t-test2__item {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0px !important;
    padding: 15px;
  }

  .t-test2__item--box {
    display: flex !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 0 !important;
  }

  .t-test2__item--img {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  .t-test2__item--text {
    flex: 0 0 calc(50% - 12px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  .t-test2__item--title {
    margin-bottom: 8px !important;
    min-height: auto !important;
  }

  .slider-item-subtitle {
    margin-top: auto !important;
  }

  .a-catalog__look {
    padding: 20px;
  }
}

.t-test2__item.hidden {
  display: none;
}

/* News item structure and layout */
.t-test2__item {
  letter-spacing: 0.1em;
  line-height: 1.75;
  padding-bottom: 1em;
  transition: 0.325s ease-in-out;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .t-test2__item {
    margin-top: 40px;
  }
}

.t-test2__item:not(:nth-child(1)) {
  margin-top: 16px;
}

@media (min-width: 768px) {
  .t-test2__item:not(:nth-child(1)) {
    margin-top: 40px;
  }
}

.t-test2__item--box {
  display: block;
}

.t-test2__item--day {
  font-size: 13px;
  text-align: left;
  border-top: 1px solid #aaa;
  max-width: 150px;
}

@media (min-width: 768px) {
  .t-test2__item--day {
    font-size: 14px;
    max-width: 240px;
  }
}

.t-test2__item--title {
  text-align: left;
  font-size: 15px;
  font-weight: bold;
  min-height: 56px;
  max-width: 100% !important;
  line-height: 1.4;
  padding-top: 4px;
}

@media (min-width: 768px) {
  .t-test2__item--title {
    font-size: 18px;
    max-width: 100% !important;
    line-height: 1.3;
    padding: 8px 0;
  }
}

.t-test2__item--title:hover {
  color: #cb1b45;
  transition: 0.8s;
}

.t-test2__item--img {
  max-width: 100% !important;
}

@media (min-width: 768px) {
  .t-test2__item--img {
    max-width: 100% !important;
  }
}

.t-test2__item--article {
  text-align: left;
  max-width: 150px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  padding-bottom: 1em;
  font-size: 13px;
}

@media (min-width: 768px) {
  .t-test2__item--article {
    max-width: 100% !important;
    font-size: 14px;
  }
}

/* Pagination Styles */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .pagination {
    margin-bottom: 64px;
  }
}

.pagination > * + * {
  margin-left: 12px;
}

.pagination-item__under {
  list-style: none;
}

.pagination-item__under-Link {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 35px;
  height: 35px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.15s linear;
  color: #c41b45;
  cursor: pointer;
}

.pagination-item__under-Link-Icon {
  width: 20px;
}

.pagination-item__under-Link.isActive {
  pointer-events: none;
  background: #fff;
  color: #000;
}

.pagination-item__under-Link:not(.isActive):hover {
  background: linear-gradient(135deg, #cb1b45, #90000a);
  color: #fff;
}

/* News icon style */
.newsicon {
  background: #cb1b45;
  color: #fff;
  padding: 0 6px;
  font-size: 13px;
  font-weight: bold;
}

@media (min-width: 768px) {
  .interview__content {
    margin-top: 80px;
  }
}

.interview__title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 3px dashed #cb1b45;
  text-align: left;
}

@media (min-width: 768px) {
  .interview__title {
    font-size: 26px;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }
}

.interview__text p {
  font-size: 14px;
  margin-bottom: 1em;
  color: #333;
  text-align: left;
  line-height: 1.9em;
}

@media (min-width: 768px) {
  .interview__text p {
    font-size: 16px;
    margin-bottom: 1.2em;
  }
}

.interview__chat {
  margin-top: 0px;
  /* margin-bottom: 60px; */
}

.interview__chat_img {
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: center;
}

.interview__chat_img img {
  /* border: 3px solid #cb1b45; */
  /* border-image: linear-gradient(90deg, #cb1b45 0%, #90000a 100%); */
  /* border-radius: 12px; */
  width: 100%;
}

@media (min-width: 768px) {
  .interview__chat {
    width: 100%;
    margin-top: 0px;
    /* margin-bottom: 80px; */
  }
  .interview__chat_img img {
    /* border-radius: 16px; */
    width: 70%;
  }
}

.chat-message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 10px;
}

@media (min-width: 768px) {
  .chat-message {
    gap: 20px;
    margin-bottom: 20px;
  }
}

/* Right-aligned message (interviewer) */
.chat-message--right {
  flex-direction: row-reverse;
}

.chat-message--right .chat-message__content {
  align-items: flex-start;
}

.chat-message--right .chat-message__name {
  text-align: right;
  align-self: flex-end;
}

/* Left-aligned message (interviewee) */
.chat-message--left {
  flex-direction: row;
}

.chat-message--left .chat-message__content {
  align-items: flex-start;
}

.chat-message--left .chat-message__name {
  text-align: left;
}

/* Avatar */
.chat-message__avatar {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
}

@media (min-width: 768px) {
  .chat-message__avatar {
    width: 70px;
    height: 70px;
  }
}

.chat-message__avatar svg {
  width: 100%;
  height: 100%;
}

/* Content container */
.chat-message__content {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

@media (min-width: 768px) {
  .chat-message__content {
    max-width: 100%;
  }
}

/* Name label */
.chat-message__name {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .chat-message__name {
    font-size: 14px;
    margin-bottom: 10px;
  }
}

/* Message bubble */
.chat-message__bubble {
  background: #fff;
  border: 1px solid #b8b8b8;
  border-radius: 12px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  position: relative;
}

@media (min-width: 768px) {
  .chat-message__bubble {
    padding: 18px 24px;
    font-size: 16px;
    line-height: 1.9;
    border-radius: 16px;
  }
}

/* Button container - centered */
.ask_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  margin: 30px 0;
  width: 100%;
}

@media (min-width: 768px) {
  .ask_btn {
    padding: 60px 20px;
    margin: 40px 0;
    width: 100%;
  }
}

.ask_btn__button {
  background: #fff;
  border: 2px solid #cb1b45;
  color: #cb1b45;
  padding: 16px 15px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  font-family: "Noto Sans JP", sans-serif;
  text-align: center;
}

@media (min-width: 768px) {
  .ask_btn__button {
    padding: 18px 60px;
    font-size: 18px;
  }
}

.ask_btn__button:hover {
  background: #cb1b45;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(203, 27, 69, 0.3);
}
