/* Detay sayfası stilleri */
.news-detail-wrapper {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.news-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #222;
}

.news-meta {
    padding: 10px 0;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.meta-left, .meta-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-date, .news-views, .news-author {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    /* color: #666; */
}

.news-date i, .news-views i, .news-author i {
    margin-right: 6px;
    opacity: 0.8;
}

.news-category span {
    background: #d32f2f;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-main-image {
    position: relative;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.news-main-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-caption {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 15px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
}

.news-content-full {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}
.news-content-full img {
    max-width:100%
}

.news-content-full p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.news-content-full h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #1976d2;
    border-left: 4px solid #1976d2;
    padding-left: 15px;
}

.related-news-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.related-news-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #d32f2f;
    border-radius: 1.5px;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.related-news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.related-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-news-image {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.related-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-news-card:hover .related-news-image img {
    transform: scale(1.05);
}

.related-news-content-full {
    padding: 15px;
}

.related-news-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.related-news-category {
    font-size: 0.75rem;
    color: #d32f2f;
    font-weight: 500;
}

.sidebar-widget {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 25px;
}

.sidebar-widget-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.sidebar-widget-title::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #1976d2;
    border-radius: 1.5px;
}

.sidebar-post {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.sidebar-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-post-img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-content {
    padding-left: 15px;
}

.sidebar-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.sidebar-post-title a {
    color: #333;
    text-decoration: none;
}

.sidebar-post-title a:hover {
    color: #1976d2;
}

.sidebar-post-meta {
    font-size: 0.8rem;
    /* color: #888; */
}

.sidebar-post-meta i {
    margin-right: 5px;
}

.sidebar-post-meta span {
    margin-right: 10px;
}

/* Dark mode */
[data-theme="dark"] .news-detail-wrapper,
[data-theme="dark"] .sidebar-widget,
[data-theme="dark"] .related-news-card {
    background-color: var(--header-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .news-title,
[data-theme="dark"] .news-content-full,
[data-theme="dark"] .related-news-title,
[data-theme="dark"] .sidebar-widget-title,
[data-theme="dark"] .sidebar-post-title a {
    color: #e1e1e1;
}

[data-theme="dark"] .news-content-full p {
    color: #ccc;
}

[data-theme="dark"] .sidebar-post-title a:hover {
    color: #64b5f6;
}

/* Responsive ayarları */
@media (max-width: 992px) {
    .news-title {
        font-size: 1.8rem;
    }
    
    .news-content-full {
        font-size: 1rem;
    }
    
    .related-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-detail-wrapper {
        padding: 15px;
    }
    
    .news-title {
        font-size: 1.5rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .meta-left, .meta-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .news-content-full {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .related-news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .news-category span {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .news-date, .news-views, .news-author {
        font-size: 0.8rem;
    }
    
    .sidebar-post-img {
        width: 60px;
        height: 60px;
    }
    
    .sidebar-post-title {
        font-size: 0.9rem;
    }
}

iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}
.ad-container.p-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
}


 .xfieldimagegallery.galery { display: none !important; }
#gallery-slider-container {
  width: 100%;
  margin-bottom: 18px;
}
.gallery-slider {
  position: relative;
  width: 100%;
  width: 100%;
  margin: 0 auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: linear-gradient(120deg, #f8fafc 60%, #e3e8ee 100%); */
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(30,40,90,0.13);
  /* min-height: 340px; */
  /* min-width: 220px; */
  padding: 18px 0 24px 0;
  overflow: visible;
}
.gallery-slider-main-image {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow: hidden;
  min-height: 260px;
  min-width: 220px;
  position: relative;
  flex-direction: column;
  align-items: center;
}
.gallery-slider-main-image img {
  max-width: 100%;
  /* max-height: 340px; */
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(30,40,90,0.13);
  transition: opacity 0.5s cubic-bezier(.4,0,.2,1), transform 0.5s cubic-bezier(.4,0,.2,1);
  object-fit: contain;
  background: #fff;
  opacity: 0;
  transform: scale(0.98);
  z-index: 1;
  cursor: pointer;
  /* width: 100%; */
  /* height: 100%; */
  /* object-fit: cover; */
  /* display: block; */
}
.gallery-slider-main-image img.active {
  opacity: 1;
  transform: scale(1);
}
.gallery-slider-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1rem;
  padding: 10px 18px 8px 18px;
  border-radius: 0 0 14px 14px;
  z-index: 2;
  min-height: 28px;
  text-align: center;
  width: 100%;
  display: none;
}
.gallery-slider-main-image.has-caption .gallery-slider-caption {
  display: block;
}
.gallery-slider-counter {
  position: absolute;
  top: 10px; right: 18px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.95rem;
  padding: 3px 12px;
  border-radius: 12px;
  z-index: 3;
  font-weight: 500;
}
.gallery-slider-autoplay {
  position: absolute;
  top: 10px; left: 18px;
  background: rgba(25,118,210,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.85;
  z-index: 3;
  transition: background 0.2s, opacity 0.2s;
}
.gallery-slider-autoplay:hover { background: #1976d2; opacity: 1; }
.gallery-slider-prev,
.gallery-slider-next {
  background: rgba(34,34,34,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.7;
  transition: background 0.2s, opacity 0.2s, box-shadow 0.2s;
  z-index: 2;
  margin: 0 12px;
  box-shadow: 0 2px 8px rgba(30,40,90,0.10);
}
.gallery-slider-prev:hover,
.gallery-slider-next:hover {
  background: #1976d2;
  opacity: 1;
  box-shadow: 0 4px 16px rgba(25,118,210,0.18);
}
.gallery-slider-thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 12px auto 0 auto;
  max-width: 700px;
  flex-wrap: wrap;
}
.gallery-slider-thumbnails img {
  width: 60px;
  height: 44px;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 1px 6px rgba(30,40,90,0.10);
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
  transition: border 0.2s, opacity 0.2s, transform 0.2s;
  background: #fff;
}
.gallery-slider-thumbnails img.active {
  border: 2px solid #1976d2;
  opacity: 1;
  transform: scale(1.08);
  z-index: 1;
}
@media (max-width: 900px) {
  .gallery-slider, .gallery-slider-thumbnails { max-width: 98vw; }
}
@media (max-width: 600px) {
  .gallery-slider {
    min-height: 160px;
    padding: 6px 0 12px 0;
  }
  .gallery-slider-main-image img {
    max-height: 160px;
    border-radius: 8px;
  }
  .gallery-slider-prev,
  .gallery-slider-next {
    width: 32px;
    height: 32px;
    font-size: 15px;
    margin: 0 4px;
  }
  .gallery-slider-thumbnails img {
    width: 38px;
    height: 28px;
    border-radius: 4px;
  }
  .gallery-slider-caption {
    font-size: 0.92rem;
    padding: 7px 8px 6px 8px;
  }
  .gallery-slider-counter {
    font-size: 0.85rem;
    padding: 2px 8px;
  }
}


.frating .fas {
  font-size: 16px;
  position: relative;
}

.fdislike .fas {
  top: 2px;
}

.frating {
display:flex
}

.frating:not(.starrate) a {
  display: block;
  padding: 0 15px;
  height: 30px;
  line-height: 30px;
  border-radius: 4px;
  background-color: #6ab04c;
  color: #fff;
  text-align: center;
  font-size: 12px;
}

.fdislike a {
  background-color: #eb4d4b !important;
  margin-left: 15px;
}

.frating-counter {
  display: inline-block;
  border-left: 1px solid rgba(0, 0, 0, .15);
  padding-left: 10px;
  margin-left: 10px;
}

.frating a:hover {
  color: #fff;
}

.frating .flike a:hover {
  background-color: #5e9c43;
}

.frating .fdislike a:hover {
  background-color: #da4846 !important;
}

.frating.type-3 .frating-counter {
  display: inline-block;
  margin-left: 10px;
  line-height: 30px;
  background: #f0f0f0;
  border-left: none;
  text-align: center;
  padding: 0 10px;
  border-radius: 4px;
}

.frating.type-3 .fdislike a {
  margin-left: 10px;
}