.list-page .container {
    width: 100%;
    padding-top: 30px;
    padding-bottom: 50px;
}

.list-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.list-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
}

/* Filtreleme/Sıralama - category.php'den miras alındı */
.filter-sort-options select {
    background-color: var(--secondary-blue);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
}

.filter-sort-options select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.content-listing-section {
    margin-bottom: 40px;
}

/* Grid - main.css'den miras alındı, ancak özel adlandırma */
.list-grid {
     display: grid !important; /* Override main.css content-row flex */
     grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
     gap: 20px; 
     overflow: visible !important; /* Kaydırmayı devre dışı bırak */
     padding: 0 !important;
     margin: 0 !important; /* Margin sıfırlama */
     width: 100%; /* Tam genişlik */
}

/* list-grid içindeki content-card'ları da düzelt */
.list-grid .content-card {
     flex: unset !important;
     min-width: unset !important;
     width: 100%;
}

/* Sayfalama Stilleri - category.php'den miras alındı */
.pagination-section {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-item {
    margin: 0; 
}

.page-link {
    display: block;
    padding: 10px 15px;
    background-color: var(--secondary-blue);
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: -1px; 
    font-size: 14px;
}

.page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

.page-item:last-child .page-link {
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}


.page-item:not(.disabled) .page-link:hover {
    background-color: var(--accent-blue);
    color: #fff;
    z-index: 2;
    position: relative; 
}

.page-item.active .page-link {
    background-color: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
    z-index: 3;
    position: relative;
}

.page-item.disabled .page-link {
    color: rgba(224, 224, 224, 0.5);
    background-color: var(--card-bg);
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}

/* Responsive Ayarlamalar (category.php'den benzer) */
@media (max-width: 768px) {
    .list-title {
        font-size: 24px;
    }
    .list-grid {
         display: grid !important;
         grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
         gap: 15px;
    }
    .page-link {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .list-header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
     .list-title {
        font-size: 20px;
    }
    .filter-sort-options select {
        width: 100%;
    }
    .list-grid {
         display: grid !important;
         grid-template-columns: repeat(2, 1fr); /* Mobil için 2 sütun */
         gap: 15px;
    }
     .page-link {
        padding: 6px 10px;
    }
}

/* Liste sayfaları için hero-section düzenlemeleri */
.list-page .hero-section {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    padding: 40px 0;
}

.list-page .hero-section .container {
    max-width: 1000px;
    flex: 1;
    min-width: 0;
    margin: 0;
}

.list-page {
    width: 100%;
}

/* Banner'lar liste sayfalarında da görünsün */
.list-page .hero-banner {
    flex-shrink: 0;
    max-width: 300px;
    width: 100%;
    position: sticky;
    top: 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.list-page .hero-banner img {
    width: 100%;
    height: auto;
    max-height: 800px;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.list-page .hero-banner:hover img {
    transform: scale(1.02);
}

.list-page .hero-banner a {
    display: block;
    text-decoration: none;
}

/* Responsive ayarlar */
@media (min-width: 1600px) {
    .list-page .hero-banner {
        max-width: 350px;
    }
    
    .list-page .hero-section .container {
        max-width: 1100px;
    }
}

@media (min-width: 1201px) and (max-width: 1400px) {
    .list-page .hero-banner {
        max-width: 250px;
    }
    
    .list-page .hero-section .container {
        max-width: 900px;
    }
}

@media (min-width: 1280px) and (max-width: 1336px) {
    .list-page .hero-banner {
        max-width: 200px;
    }
    
    .list-page .hero-banner img {
        max-height: 600px;
    }
    
    .list-page .hero-section .container {
        max-width: 850px;
    }
}

@media (max-width: 1336px) {
    .list-page .hero-section {
        gap: 10px;
    }
}

@media (max-width: 1200px) {
    .list-page .hero-banner {
        display: none !important;
    }
    
    .list-page .hero-section {
        display: block !important;
    }
    
    .list-page .hero-section .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

/* 1280px - 1336px arası için ek ayarlar */
@media (min-width: 1280px) and (max-width: 1336px) {
    .list-page .hero-section .container {
        padding: 0 15px; /* Kenarlardan biraz boşluk */
    }
}

/* 1366px ve altı için */
@media (max-width: 1366px) and (min-width: 1201px) {
    .list-page .hero-section .container {
        padding: 0 20px;
    }
}

/* 1280x720 için özel ayar */
@media (max-width: 1280px) and (min-width: 1201px) {
    .list-page .hero-section .container {
        padding: 0 10px;
        max-width: 800px;
    }
    
    .list-page .hero-banner {
        max-width: 180px;
    }
}
