/**
 * News Detail Page Styles
 * 
 * @package YL_Theme
 * @since 1.0.0
 */

/* Breadcrumbs */
.page-container-full-w.news-single {
  padding-left: 4rem;
  padding-right: 4rem;
}

.page-container {
  padding: 0;
}

/* Hero Section */
.yl-news-detail-hero {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: stretch;
  color: #fff;
  margin-bottom: 0;
  overflow: hidden;
}

/* Breadcrumbs inside hero */
.yl-news-detail-hero-breadcrumbs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 20px 40px;
  background: transparent;
}

.yl-news-detail-hero-breadcrumbs .breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.yl-news-detail-hero-breadcrumbs .breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yl-news-detail-hero-breadcrumbs .breadcrumb-item a,
.yl-news-detail-hero-breadcrumbs .breadcrumb-item span {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
}

.yl-news-detail-hero-breadcrumbs .breadcrumb-item a:hover {
  opacity: 0.8;
}

.yl-news-detail-hero-breadcrumbs .breadcrumb-item span.active {
  font-weight: 500;
}

.yl-news-detail-hero-breadcrumbs .breadcrumb-item svg {
  width: 5px;
  height: 9px;
  fill: #fff;
  opacity: 0.8;
}

/* Hero Left Section (2/3 width) */
.yl-news-detail-hero-left {
  flex: 0 0 50%;
  background: #7F98B3;
  display: flex;
  align-items: center;
  padding: 80px 100px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.yl-news-detail-hero-content {
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

/* Hero Right Section (1/3 width) */
.yl-news-detail-hero-right {
  flex: 0 0 50%;
  position: relative;
  overflow: visible;
  z-index: 2;
  background: #7F98B3;
}

.yl-news-detail-hero-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: visible;
}


.yl-news-detail-hero-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 2;
  border-bottom-left-radius: 64px;
}

.yl-news-detail-date {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 24px;
  color: #ffffff;
  opacity: 1;
  font-family: inherit;
}

.yl-news-detail-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 28px 0;
  color: #fff;
  font-family: inherit;
  word-wrap: break-word;
  max-width: 100%;
}

.yl-news-detail-summary {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0;
  color: #ffffff;
  opacity: 0.95;
  flex: 1;
}

.yl-news-detail-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
}

.yl-news-detail-author-avatar-small {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.yl-news-detail-author-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  font-size: 24px;
  flex-shrink: 0;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.yl-news-detail-author-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yl-news-detail-author-label {
  font-size: 14px;
  color: #dcdcdc;
  opacity: 1;
  line-height: 1.2;
  font-weight: 400;
}

.yl-news-detail-author-name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

/* Author Information Section */
.yl-news-detail-author-section {
  background: #f8f3ed;
  padding: 40px;
  margin: 0;
}

.yl-news-detail-author-wrapper {
  display: flex;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.yl-news-detail-author-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.yl-news-detail-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.yl-news-detail-author-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #666;
  font-size: 32px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.yl-news-detail-author-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yl-news-detail-intro {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.yl-news-detail-intro p {
  margin: 0;
}

/* Entry Content Background */
.entry-content {
  background-image: url('../img/background-blog.png');
  background-repeat: repeat;
  background-position: top left;
  background-size: auto;
}

/* Content Section */
.yl-news-detail-content {
  padding: 60px 40px;
  line-height: 1.8;
  color: #333;
  position: relative;
  background: #fff;
}

.yl-news-detail-content-wrapper {
  max-width: 1400px;
  padding-bottom: 5rem;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
  align-items: start;
}

.yl-news-detail-main {
  min-width: 0;
}

.yl-news-detail-content-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 24px 0;
  color: #1e1e1e;
}

.yl-news-detail-content-text {
  color: #333;
}

.yl-news-detail-content-text p {
  margin-bottom: 1.5em;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.yl-news-detail-content-text h2,
.yl-news-detail-content-text h3,
.yl-news-detail-content-text h4 {
  margin-top: 2em;
  margin-bottom: 1em;
  color: #1e1e1e;
  line-height: 1.3;
  font-weight: bold;
}

.yl-news-detail-content-text h2 {
  font-size: 32px;
}

.yl-news-detail-content-text h3 {
  font-size: 28px;
}

.yl-news-detail-content-text h4 {
  font-size: 24px;
}

.yl-news-detail-content-text img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
}

.yl-news-detail-content-text ul,
.yl-news-detail-content-text ol {
  margin-left: 30px;
  margin-bottom: 1.5em;
}

.yl-news-detail-content-text li {
  margin-bottom: 0.8em;
}

/* Related News Sidebar */
.yl-news-detail-sidebar {
  background: #EFF2F6;
  padding: 30px 24px;
  border-radius: 8px;
  position: sticky;
  top: 20px;
}

.yl-news-detail-sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e1e1e;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.yl-news-detail-related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yl-news-detail-related-item {
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.yl-news-detail-related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.yl-news-detail-related-date {
  font-size: 14px;
  color: #999;
}

.yl-news-detail-related-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 0rem !important;
  margin-bottom: 4px;
}

.yl-news-detail-related-title a {
  color: #1e1e1e;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}

.yl-news-detail-related-title a:hover {
  color: #B88917;
}

.yl-news-detail-related-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0 !important;
}

.yl-news-detail-not-found {
  text-align: center;
  padding: 80px 20px;
  color: #666;
  background: #f8f3ed;
}

.yl-news-detail-not-found h2 {
  font-size: 36px;
  color: #1e1e1e;
  margin-bottom: 20px;
}

.yl-news-detail-not-found p {
  font-size: 18px;
  margin-bottom: 30px;
}

.news-error {
  text-align: center;
  padding: 80px 20px;
  color: #666;
  background: #f8f3ed;
}

.news-error h2 {
  font-size: 36px;
  color: #1e1e1e;
  margin-bottom: 20px;
}

.news-error p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .yl-news-detail-hero {
    flex-direction: column;
    min-height: auto;
  }

  .yl-news-detail-hero-right {
    padding: 0 20px 40px 20px;
  }

  .yl-news-detail-hero-left {
    flex: 1;
    padding: 40px 20px;
  }

  .yl-news-detail-content {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .page-container-full-w.news-single {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .yl-news-detail-breadcrumb {
    padding: 0 20px;
  }

  .yl-news-detail-hero-breadcrumbs {
    padding: 15px 20px;
  }

  .yl-news-detail-hero-breadcrumbs .breadcrumb-item a,
  .yl-news-detail-hero-breadcrumbs .breadcrumb-item span {
    font-size: 12px;
  }

  .yl-news-detail-hero-image img {
    border-bottom-left-radius: 25px;
  }
  
  .yl-news-detail-hero-right {
    flex: 1;
    min-height: 300px;
    margin-top: -1px;
  }

  .yl-news-detail-hero-image::before {
    display: none;
  }

  .yl-news-detail-title {
    font-size: 32px;
  }

  .yl-news-detail-summary {
    font-size: 14px;
  }

  .yl-news-detail-author-section {
    padding: 30px 20px;
  }

  .yl-news-detail-author-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .yl-news-detail-content {
    padding: 40px 20px;
  }

  .yl-news-detail-content-wrapper {
    padding-left: 0;
    display: block;
  }

  .yl-news-detail-content-wrapper::before {
    display: none;
  }

  .yl-news-detail-content-wrapper h2 {
    font-size: 28px;
  }

  .yl-news-detail-content-wrapper h3 {
    font-size: 22px;
  }

  .yl-news-detail-content-wrapper h4 {
    font-size: 18px;
  }

  .page-headline::before {
    background: none;
  }
}

@media (max-width: 480px) {
  .page-container-full-w.news-single {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .yl-news-detail-hero-breadcrumbs {
    padding: 12px 15px;
  }

  .yl-news-detail-hero-breadcrumbs .breadcrumb-item a,
  .yl-news-detail-hero-breadcrumbs .breadcrumb-item span {
    font-size: 11px;
  }

  .yl-news-detail-hero-left {
    padding: 30px 20px 20px 20px;
  }

  .yl-news-detail-hero-right {
    min-height: 250px;
  }

  .yl-news-detail-title {
    font-size: 24px;
  }

  .yl-news-detail-summary {
    font-size: 14px;
  }

  .yl-news-detail-author {
    gap: 12px;
  }

  .yl-news-detail-author-avatar-small {
    width: 48px;
    height: 48px;
  }

  .yl-news-detail-author-label {
    font-size: 12px;
  }

  .yl-news-detail-author-name {
    font-size: 16px;
  }

  .yl-news-detail-content {
    padding: 30px 15px;
  }

  .yl-news-detail-content-title {
    font-size: 24px;
  }
  .yl-news-detail-hero-right {
    padding: 1rem;
  }
}

.page-headline > .back-link {
  display: none;
}

