/* Duyuru ve Etkinlikler Detay Sayfası Stilleri */
.duyuru-detay-page {
    background: #f8f9fa;
    min-height: 100vh;
    font-family: 'Open Sans', sans-serif;
    padding: 0;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.duyuru-detay-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 1.2rem 2.5rem 1.2rem;
    box-sizing: border-box;
}

.duyuru-detay-title {
    color: #222;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 0;
    line-height: 1.2;
}

.duyuru-detay-date {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.duyuru-detay-date i {
    font-size: 16px;
    color: #666;
}

.duyuru-detay-mainimg {
    width: 100%;
    max-width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    margin-bottom: 1.5rem;
    display: block;
    background: #eaeaea;
    border: 1px solid #e3e9ef;
    overflow: hidden;
}

.duyuru-detay-mainimg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.duyuru-detay-icerik-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 1.5rem 1.2rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.duyuru-detay-icerik {
    color: #222;
    font-size: 1.05rem;
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    box-sizing: border-box;
}

.duyuru-detay-icerik p {
    margin-bottom: 0.8rem;
    max-width: 100%;
    overflow: hidden;
    text-align: justify;
}

.duyuru-detay-icerik img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.8rem 0;
}

.duyuru-detay-icerik table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
    margin: 0.8rem 0;
}

.duyuru-detay-icerik pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 4px;
    margin: 0.8rem 0;
}

.duyuru-detay-gallery-title {
    font-size: 1.50rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.7rem;
    margin-top: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: block;
    width: 100%;
}

.duyuru-detay-gallery-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.duyuru-detay-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
    justify-items: center;
}
.duyuru-detay-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    aspect-ratio: 16/9;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.duyuru-detay-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.duyuru-detay-gallery-item:hover img {
    transform: scale(1.05);
}
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    cursor: pointer;
    overflow: hidden;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

.duyuru-detay-gallery-empty {
    width: 100%;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

.duyuru-detay-gallery-empty p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
} 


@media (max-width: 1200px) {
    .duyuru-detay-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .duyuru-detay-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .duyuru-detay-content {
        padding: 2rem 1rem;
    }

    .duyuru-detay-title {
        font-size: 1.8rem;
    }

    .duyuru-detay-icerik {
        font-size: 1rem;
    }

}

@media (max-width: 576px) {
    .duyuru-detay-gallery {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 0 1.5rem;
        margin: 2rem 0;
        width: 100%;
        box-sizing: border-box;
    }
    .duyuru-detay-gallery-item {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        flex: 0 0 200px;
        height: 113px;
    }
    .duyuru-detay-content {
        padding: 1.5rem 1rem;
    }

    .duyuru-detay-title {
        font-size: 1.5rem;
    }

    .duyuru-detay-mainimg {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .duyuru-detay-content {
        padding: 1.5rem 1rem;
    }

    .duyuru-detay-title {
        font-size: 1.5rem;
    }

    .duyuru-detay-mainimg {
        height: 150px;
    }

    .duyuru-detay-gallery-item {
        flex: 0 0 200px;
        height: 113px; /* 16:9 oranı için */
    }
}
/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}