/* --- SECTION & SLIDER --- */
.news-section {
    background: var(--bg-secondary);
    overflow: hidden;
    padding: 80px 0;
}

.slider-container-wrapper {
    position: relative;
    padding: 0 20px;
    margin-bottom: 40px;
}

.slider-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 350px;
    scroll-snap-align: start;
}

/* --- CARD DESIGN --- */
.news-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    height: 500px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
    position: relative;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-main);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Resim Alanı */
.card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-main);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.news-card:hover .image-overlay {
    opacity: 1;
}

.read-text {
    color: white;
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
}

/* Play Icon Overlay */
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 4;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: all 0.3s;
}

.news-card:hover .play-icon-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    color: #ff0000;
}

/* İçerik Alanı */
.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    flex-shrink: 0;
}

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

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

.card-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: auto;
}

/* Footer */
.card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 30px;
    height: 30px;
    background: var(--bg-tertiary);
    color: var(--primary-main);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-weight: 700;
    font-size: 0.8rem;
}

.card-arrow {
    color: var(--primary-main);
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.news-card:hover .card-arrow {
    transform: translateX(5px);
}

/* --- NAVIGATION BUTTONS --- */
.nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

.nav-btn:hover:not(:disabled) {
    background: var(--primary-main);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* --- MOBILE CONTROLS --- */
.mobile-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 0 20px;
    gap: 15px;
}

.mobile-controls .nav-btn {
    position: static;
    transform: none;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.mobile-controls .nav-btn:hover:not(:disabled) {
    transform: scale(1.1);
    background: var(--primary-main);
    color: white;
}

.progress-container {
    flex: 1;
    max-width: 300px;
    height: 6px;
    background: rgba(var(--primary-main-rgb, 26, 126, 99), 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-main);
    transition: width 0.3s ease;
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 0;
}

/* --- MODAL STYLES --- */
.custom-modal-content {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(26, 126, 99, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-main);
}

.btn-close-custom {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.btn-close-custom:hover {
    color: var(--text-primary);
}

.modal-video-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.custom-nav-pills {
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.custom-nav-pills .nav-link {
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 20px;
    transition: all 0.3s;
}

.custom-nav-pills .nav-link:hover {
    background: var(--bg-tertiary);
}

.custom-nav-pills .nav-link.active {
    background: var(--primary-main);
    color: white;
    border-color: var(--primary-main);
}

.parameter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.param-item {
    background: var(--bg-primary);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.param-item i {
    color: var(--primary-main);
}

.info-card, .tech-card {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.info-title {
    font-weight: 600;
    color: var(--text-primary);
}

.content-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* Lightbox Styles */
#imageLightbox .modal-content {
    background-color: rgba(0, 0, 0, 0.95) !important;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 1055;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.lightbox-close::before {
    content: "×";
}

.lightbox-close:hover {
    background-color: var(--primary-main);
    color: #ffffff;
    transform: rotate(90deg);
    border-color: var(--primary-main);
}

/* --- RESPONSIVE DÜZENLEMELER --- */
@media (max-width: 992px) {
    .news-card {
        height: 480px;
    }

    .slider-container-wrapper {
        padding: 0 10px;
    }

    .prev-btn, .next-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 40px 0;
    }

    .slide {
        flex: 0 0 85vw;
    }

    .slider-track {
        gap: 15px;
    }

    .news-card {
        height: auto;
        min-height: 480px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-summary {
        font-size: 0.85rem;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .mobile-controls {
        gap: 10px;
    }

    .progress-container {
        max-width: 150px;
    }
}

@media (max-width: 576px) {
    .slide {
        flex: 0 0 90vw;
    }

    .card-image {
        height: 200px;
    }

    .card-content {
        padding: 15px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-summary {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .modal-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}