/* Haber Detay Sayfas� */
.news-detail {
    /* padding-top: 80px; */
    min-height: 100vh;
}

/* Header Styles */
.news-detail__header {
    background: linear-gradient(135deg, var(--selcuk-blue) 0%, var(--selcuk-blue-hover) 100%);
    padding: 2rem 0;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-detail__header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.news-detail__breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

    .news-detail__breadcrumb a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
    }

    .news-detail__breadcrumb span {
        color: rgba(255, 255, 255, 0.7);
        margin: 0 0.5rem;
    }

.news-detail__header .news-detail__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: center;
}

.news-detail__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: start;
}

.news-detail__info {
    display: flex;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.news-detail__date,
.news-detail__author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-detail__share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .news-detail__share a {
        color: #fff;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transition: all 0.3s ease;
        text-decoration: none;
    }

        .news-detail__share a:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

/* Content Layout */
.news-detail__content {
    background: #f8f9fa;
    padding: 2rem 0;
}

.news-detail__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

/* Main Content */
.news-detail__main {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.news-detail__gallery {
    margin-bottom: 1.5rem;
}

    .news-detail__gallery img {
        width: 100%;
        /* height: 500px; */
        object-fit: contain;
        background: #000;
    }

.news-detail__thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.news-detail__thumb {
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

    .news-detail__thumb.active {
        border-color: var(--selcuk-blue);
    }

    .news-detail__thumb img {
        width: 100%;
        height: 70px;
        object-fit: cover;
    }

.news-detail__text {
    padding: 2rem;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--selcuk-blue);
    text-align: justify;
}

/* Sidebar */
.news-detail__sidebar {
    align-self: start;
    position: sticky;
    top: 100px;
}

.news-detail__sidebar-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--selcuk-blue);
}

.news-detail__sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-detail__sidebar-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .news-detail__sidebar-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.news-detail__sidebar-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/3;
}

    .news-detail__sidebar-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(100%);
        transition: all 0.3s ease;
    }

.news-detail__sidebar-item:hover .news-detail__sidebar-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.news-detail__sidebar-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-detail__sidebar-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-detail__sidebar-item:hover .news-detail__sidebar-item-title {
    color: var(--selcuk-blue);
}

.news-detail__sidebar-date {
    font-size: 0.85rem;
    color: #666;
}

/* Responsive */
@media (max-width: 1200px) {
    .news-detail__gallery img {
        height: 400px;
    }
}

@media (max-width: 992px) {
    .news-detail__container {
        grid-template-columns: 1fr;
    }

    .news-detail__sidebar {
        position: static;
    }

    .news-detail__header .news-detail__title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .news-detail {
        /* padding-top: 60px;*/
    }

    .news-detail__header {
        padding: 1.5rem 0;
    }

    .news-detail__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .news-detail__gallery img {
        height: 300px
    }

    .news-detail__info {
        flex-direction: column;
        gap: 0.75rem;
    }

    .news-detail__text {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .news-detail__sidebar-item {
        grid-template-columns: 100px 1fr;
    }
}

@media (max-width: 576px) {
    .news-detail__container {
        padding: 0 1rem;
    }

    .news-detail__header .news-detail__title {
        font-size: 1.5rem;
    }

    .news-detail__gallery img {
        height: 250px;
    }

    .news-detail__thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .news-detail__thumb img {
        height: 60px;
    }

    .news-detail__sidebar-list {
        gap: 0.75rem;
    }

    .news-detail__sidebar-item {
        grid-template-columns: 80px 1fr;
        padding: 0.75rem;
    }

    .news-detail__sidebar-item-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }

    .news-detail__share {
        width: 100%;
        justify-content: space-between;
    }

        .news-detail__share a {
            width: 28px;
            height: 28px;
        }
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 1rem;
}

.carousel-control-next {
    right: 1rem;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background: rgba(0, 0, 0, 0.7);
    }

/* Print Styles */
@media print {
    .news-detail {
        padding-top: 0;
    }

    .news-detail__header {
        background: none;
        color: #000;
        box-shadow: none;
        padding: 1rem 0;
    }

    .news-detail__breadcrumb,
    .news-detail__share,
    .news-detail__sidebar,
    .news-detail__thumbnails {
        display: none;
    }

    .news-detail__container {
        display: block;
    }

    .news-detail__main {
        box-shadow: none;
    }

    .news-detail__text {
        font-size: 12pt;
        line-height: 1.6;
    }

    .news-detail__gallery img {
        height: auto;
    }
}

/* Content Styling */
.news-detail__text p {
    margin-bottom: 1.5rem;
}

.news-detail__text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.news-detail__text a {
    color: var(--selcuk-blue);
    text-decoration: none;
}

    .news-detail__text a:hover {
        text-decoration: underline;
    }

.news-detail__text blockquote {
    border-left: 4px solid var(--selcuk-blue);
    margin: 1.5rem 0;
    padding: 1rem 0 1rem 1.5rem;
    font-style: italic;
    color: #666;
}

.news-detail__text ul,
.news-detail__text ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.news-detail__text li {
    margin-bottom: 0.5rem;
}

/* Custom Scrollbar for Thumbnails */
.news-detail__thumbnails {
    scrollbar-width: thin;
    scrollbar-color: var(--selcuk-blue) #f8f9fa;
}

    .news-detail__thumbnails::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    .news-detail__thumbnails::-webkit-scrollbar-track {
        background: #f8f9fa;
    }

    .news-detail__thumbnails::-webkit-scrollbar-thumb {
        background-color: var(--selcuk-blue);
        border-radius: 3px;
    }

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-detail__sidebar-item {
    animation: fadeIn 0.3s ease forwards;
}

    .news-detail__sidebar-item:nth-child(n) {
        animation-delay: calc(n * 0.1s);
    }
