/* Dış Konteyner Taşma Koruması */
.carousel-outer-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Esnek Kart Konteyneri - Kesin Yatay Kaydırma Yapısı */
.card-container-flex {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding: 10px 5px 25px 5px !important;
    margin: 0 !important;
    scrollbar-width: none;
    
    /* RESİM VE METİN SEÇİMİNİ / SÜRÜKLENMESİNİ ENGELLER (KİLİTLENMEYİ ÖNLER) */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Scrollbar Gizleme (Chrome/Safari/Edge) */
.card-container-flex::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Resim Sürüklemeyi CSS Tarafında da Engelleme */
.card-container-flex img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

/* Masaüstü Kart Genişlikleri */
.professional-card-item {
    flex: 0 0 calc(25% - 15px) !important;
    width: calc(25% - 15px) !important;
    min-width: calc(25% - 15px) !important;
    max-width: calc(25% - 15px) !important;
    margin-right: 15px !important;
    margin-bottom: 10px !important;
    background: #111a24;
    border-radius: 15px;
    border: 1px solid #1e2d3d;
    overflow: visible;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

/* Hover Efekti */
.professional-card-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: #2c4257;
    transform: translateY(-4px);
}

/* 1. Üst Başlık Alanı */
.professional-card-header {
    padding: 10px 10px 8px 10px;
    text-align: center;
    border-radius: 15px 15px 0 0;
    background: #111a24;
}

.professional-card-title {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.professional-card-item:hover .professional-card-title {
    color: #38bdf8;
}

/* 2. Resim Alanı */
.professional-card-img-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.professional-card-img-container img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

/* 3. Alt Div */
.professional-card-footer {
    height: 22px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111a24;
    border-radius: 0 0 15px 15px;
}

/* YouTube PNG Butonu */
.yt-img-btn {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    line-height: 0;
    background-color: #ffffff;
    border: 1px solid #1e2d3d;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 5;
}

.yt-img-btn img {
    display: block;
    width: 41px;
    height: 35px;
    object-fit: contain;
}

.yt-img-btn:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
}

/* MOBİL DÜZENİ */
@media (max-width: 767px) {
    .professional-card-item {
        flex: 0 0 calc(46% - 10px) !important;
        width: calc(46% - 10px) !important;
        min-width: calc(46% - 10px) !important;
        max-width: calc(46% - 10px) !important;
        margin-right: 10px !important;
    }

    .professional-card-title {
        font-size: 12.5px;
        letter-spacing: -0.1px;
    }

    .professional-card-header {
        padding: 8px 5px 6px 5px;
    }

    .professional-card-img-container img {
        height: 150px;
    }
}