/**
 * CSS File: news-single.css
 * 2026-05-22| Final checked
 */

.news-single-wrapper {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  padding-top: 0;
  z-index: var(--z_0-base);
}

.news-single-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-single-hero__image-container {
  width: 100%;
  height: 100%;
}

.news-single-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.news-single-main-section {
  position: relative;
  padding: 15px 10px 80px;
}

.news-single-main-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #fffafa, #f0f4ff, #edfff1, #fffded);
  background-size: 300% 300%;
  animation: singleRainbowHueRotate 20s linear infinite;
  opacity: 0.8;
}

@keyframes singleRainbowHueRotate {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

.news-single-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.news-single-card {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.98),
    rgba(255, 250, 250, 0.95)
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 25px 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  filter: hue-rotate(0deg);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.news-single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.news-single-date {
  color: #999;
  font-size: 0.8rem;
  font-weight: 500;
}

.news-single-category {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 50px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}

.news-single-category-recruit {
  background-color: #f69381;
}
.news-single-category-notice {
  background-color: #60a5fa;
}

.news-single-entry-title {
  font-size: 1.4rem;
  color: #333;
  margin: 0 0 25px;
  line-height: 1.4;
  font-weight: 900;
  word-break: break-all;
}

.news-single-content {
  line-height: 1.8;
  color: #444;
  font-size: 1.15rem;
}

.news-single-content h2 {
  font-size: 1.25rem;
  color: #004098;
  margin: 2.5rem 0 1.5rem;
  padding: 8px 0 8px 15px;
  font-weight: 900;
  position: relative;
  background: rgba(0, 64, 152, 0.03);
  border-radius: 6px;
}

.news-single-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, #f69381, #ff7eb3, #60a5fa);
  border-radius: 3px;
}

.news-single-content p {
  margin-bottom: 1.5rem;
}

.news-single-content img {
  border-radius: 12px;
  margin: 0 auto;
  max-width: 80%;
  height: auto;
}

.news-single-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  table-layout: fixed;
}

.news-single-content th {
  background: #f9faff;
  color: #004098;
  padding: 12px 10px;
  width: 85px;
  font-size: 0.8rem;
  font-weight: 800;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  white-space: nowrap;
}

.news-single-content td {
  padding: 12px 10px;
  font-size: 0.85rem;
  border-bottom: 1px solid #eee;
  background: #fff;
  word-break: break-all;
}

.news-single-related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px dashed #e0e0e0;
}

.news-single-related__title {
  font-size: 1.3rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.news-single-related__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-single-related__item {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eee;
  overflow: hidden;
}

.news-single-related__link {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}

.news-single-related__item-title {
  font-size: 1rem;
  margin: 10px 0;
  font-weight: 800;
  line-height: 1.4;
}

.news-single-footer {
  text-align: center;
  margin-top: 50px;
}

.news-single-btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  height: 50px;
  border: 2px solid #f69381;
  color: #f69381;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.9rem;
}

.img-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: var(--z_900-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.img-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.img-modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.is-active .img-modal-content {
  transform: scale(1);
}

.news-single-main-section {
  background-image:
    linear-gradient(rgba(0, 64, 152, 0.08) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(0, 64, 152, 0.08) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
  background-attachment: fixed;
  position: relative;
}

.news-single-main-section::before {
  opacity: 0.6;
}

.news-single-main-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.news-single-container {
  position: relative;
  z-index: 10;
}

@media screen and (min-width: 768px) {
  .news-single-hero {
    aspect-ratio: 10 / 1;
    background-color: #fff;
    display: flex;
    justify-content: center;
  }

  .news-single-hero__image-container {
    max-width: 1280px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
  }

  .news-single-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .news-single-main-section {
    padding: 20px 15px 100px;
  }

  .news-single-content img {
  }

  .news-single-card {
    padding: 60px 80px;
    border-radius: 30px;
  }

  .news-single-entry-title {
    font-size: 2.5rem;
    margin-bottom: 35px;
  }

  .news-single-content h2 {
    font-size: 1.5rem;
    padding: 10px 0 10px 20px;
  }

  .news-single-content th {
    width: 30%;
    padding: 20px;
    font-size: 1rem;
  }

  .news-single-content td {
    padding: 20px;
    font-size: 1rem;
  }

  .news-single-related__title {
    font-size: 1.6rem;
  }

  .news-single-related__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .news-single-btn-back {
    width: auto;
    padding: 0 50px;
    height: 56px;
    font-size: 1rem;
  }

  .news-single-btn-back:hover {
    background-color: #f69381;
    color: #fff;
    box-shadow: 0 4px 12px rgba(246, 147, 129, 0.3);
    transform: translateY(-2px);
  }
}

@media screen and (min-width: 768px) {
  #news-single-page .news-single-content.wp-content {
    display: block;
  }

  #news-single-page
    .news-single-content.wp-content
    p:has(> img:not(.aligncenter)),
  #news-single-page .news-single-content.wp-content .wp-block-image {
    display: block;
    float: left;
    width: calc(50% - 15px);
    margin-right: 30px;
    margin-left: 0;
    margin-bottom: 30px;
    clear: none;
  }

  #news-single-page .news-single-content.wp-content p:has(img.aligncenter) {
    float: none;
    width: 100%;
    margin: 0 auto 30px;
  }
  #news-single-page .news-single-content.wp-content p:has(img.aligncenter) img {
    max-width: 500px;
    margin: 0 auto;
  }

  #news-single-page
    .news-single-content.wp-content
    p:has(> img:not(.aligncenter)):nth-of-type(2n),
  #news-single-page
    .news-single-content.wp-content
    .wp-block-image:nth-of-type(2n) {
    margin-right: 0;
  }

  #news-single-page .news-single-content.wp-content p:not(:has(img)),
  #news-single-page .news-single-content.wp-content table,
  #news-single-page .news-single-content.wp-content h2 {
    clear: both;
    float: none;
    width: 100%;
  }

  #news-single-page
    .news-single-content.wp-content
    p:has(img:not(.aligncenter))
    img,
  #news-single-page .news-single-content.wp-content .wp-block-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
  }
}

#news-single-page .news-single-content.wp-content a {
  color: #004098;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.2s ease;
}

#news-single-page .news-single-content.wp-content a:hover {
  color: #f69381;
  text-decoration: none;
}
