/**
 * Tüm Eğitimler Sayfası CSS
 * BÜYEM - Filtreleme + Grid Layout
 */

/* Ana Wrapper */
.egitimler-page-wrapper {
    min-height: calc(100vh - 200px);
    background: #f8f9fa;
    padding: 30px 0 60px 0;
}

.egitimler-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sayfa Başlığı */
.page-header {
    background: linear-gradient(135deg, #1c458b 0%, #2a5298 100%);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(28, 69, 139, 0.15);
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title i {
    font-size: 40px;
}

.page-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

/* Ana Layout: Sidebar + İçerik */
.main-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

/* SOL TARAF - FİLTRELER SIDEBAR */
.filters-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear-all {
    padding: 6px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-clear-all:hover {
    background: #c82333;
}

/* Filtre Kutuları */
.filter-box {
    margin-bottom: 24px;
}

.filter-box-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-box-label i {
    color: #1c458b;
    font-size: 14px;
}

/* Arama Input */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.search-input-wrapper input {
    width: 100%;
    padding: 10px 50px 10px 38px;
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: #1c458b;
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1c458b 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-btn:hover {
    background: linear-gradient(135deg, #163a75 0%, #1e4080 100%);
}

.search-btn i {
    font-size: 14px;
    color: white;
    position: static;
    transform: none;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #495057;
}

.radio-label:hover {
    border-color: #1c458b;
    background: #f8f9fa;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: #1c458b;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    transition: all 0.2s;
}

.checkbox-label:hover {
    background: #f8f9fa;
    border-radius: 4px;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Select Full Width */
.filter-select-full {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select-full:hover {
    border-color: #1c458b;
}

.filter-select-full:focus {
    outline: none;
    border-color: #1c458b;
}

/* SAĞ TARAF - İÇERİK ALANI */
.content-area {
    min-height: 500px;
}

/* İçerik Header: Sonuç + Sıralama */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.results-info {
    font-size: 15px;
    color: #495057;
}

.results-info strong {
    font-size: 18px;
    color: #1c458b;
    font-weight: 700;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-wrapper label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.sort-select {
    padding: 8px 14px;
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 250px;
}

.sort-select:hover {
    border-color: #1c458b;
}

.sort-select:focus {
    outline: none;
    border-color: #1c458b;
}

/* EĞİTİM GRID - HER SATIRDA 3 */
.egitimler-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Eğitim Kartı - SABİT YÜKSEKLİK */
.egitim-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    /*height: 560px; /* SABİT YÜKSEKLİK - KAYMANI ENGELLER */
}

/* Loading State */
.egitimler-grid.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.egitimler-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1c458b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.egitim-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Kart Görseli */
.card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    display: block;
}

/* Tıklanabilir görsel linki */
a.card-image-wrapper,
a.card-image-link {
    cursor: pointer;
    text-decoration: none;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s;
    display: block;
}

.egitim-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

/* Başlık Linki */
.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.card-title a:hover {
    color: #1565C0;
}

/* Badge'ler */
.type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.type-badge.type-online {
    background: linear-gradient(135deg, #4facfe 0%, #4facfe);
}

.type-badge.type-yuz-yuze {
    background: linear-gradient(135deg, #4facfe 0%, #4facfe);
}

.type-badge.type-hibrit {
    background: linear-gradient(135deg, #4facfe 0%, #4facfe);
}

.category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #1c458b;
    z-index: 2;
}

/* Kart İçeriği - OVERFLOW KONTROLÜ */
.card-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Specificity artırıldı - main.min.css ile çakışmayı önler */
.egitimler-page-wrapper .egitim-card .card-content .card-title {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 10px 0;
    line-height: 1.4;
    height: 51px; /* 2 satır için sabit yükseklik */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.egitimler-page-wrapper .egitim-card .card-content .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.egitimler-page-wrapper .egitim-card .card-content .card-title a:hover {
    color: #1c458b;
}

.egitimler-page-wrapper .egitim-card .card-content .card-description {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.5;
    margin: 0 0 12px 0;
    height: 68px; /* 3 satır için sabit yükseklik */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Meta Bilgiler */
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e9ecef;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6c757d;
}

.meta-item i {
    color: #1c458b;
    font-size: 13px;
}

/* Kart Footer */
.card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: #1c458b;
    line-height: 1;
}

.price-note {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
}

/* Kart Aksiyonları */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.btn-add-cart,
.btn-details {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-add-cart {
    background: linear-gradient(135deg, #1c458b 0%, #2a5298 100%);
    color: white;
}

.btn-add-cart:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(28, 69, 139, 0.3);
}

.btn-add-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-details {
    background: white;
    color: #1c458b;
    border: 2px solid #1c458b;
}

.btn-details:hover {
    background: #1c458b;
    color: white;
}

/* Sonuç Bulunamadı */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.no-results-icon {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    color: #212529;
    margin: 0 0 10px 0;
}

.no-results p {
    font-size: 15px;
    color: #6c757d;
    margin: 0 0 20px 0;
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #1c458b 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28, 69, 139, 0.3);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
    }

    .egitimler-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .egitim-card {
        height: auto; /* Mobilde auto height */
    }

    .card-title,
    .card-description {
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 30px 20px;
    }

    .page-title {
        font-size: 28px;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sort-wrapper {
        width: 100%;
    }

    .sort-select {
        flex: 1;
        min-width: auto;
    }

    .egitimler-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 24px;
        flex-direction: column;
    }

    .sidebar-header h3 {
        font-size: 16px;
    }

    .card-content {
        padding: 14px;
    }

    .card-title {
        font-size: 15px;
    }
}

/* =============================================
   ÖNE ÇIKAN PAKET PROGRAMLAR BÖLÜMÜ
   Specificity artırıldı - !important gerekmez
   ============================================= */

.egitimler-page-wrapper .content-area .one-cikan-paketler-section {
    background: linear-gradient(135deg, #fff8f0 0%, #ebf5ff 100%);
    border: 2px solid #80caff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.egitimler-page-wrapper .one-cikan-paketler-section .section-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.egitimler-page-wrapper .one-cikan-paketler-section .section-title-bar .section-title {
    font-size: 16px;
    font-weight: 700;
    color: #4a72ae;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.egitimler-page-wrapper .one-cikan-paketler-section .section-title-bar .section-title i {
    color: #4a72ae;
}

.egitimler-page-wrapper .one-cikan-paketler-section .section-title-bar .tum-link {
    font-size: 13px;
    font-weight: 600;
    color: #1d458b;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.egitimler-page-wrapper .one-cikan-paketler-section .section-title-bar .tum-link:hover {
    color: #80caff;
}

.egitimler-page-wrapper .one-cikan-paketler-section .paket-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 16px;
}

.egitimler-page-wrapper .one-cikan-paketler-section .paket-highlight-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    display: flex;
    flex-direction: row;
    border: 1px solid #80caff;
    min-height: 150px;
}

.egitimler-page-wrapper .one-cikan-paketler-section .paket-highlight-card:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.18);
    border-color: #80caff;
}

.egitimler-page-wrapper .one-cikan-paketler-section .paket-card-image {
    position: relative;
    width: 180px;
    min-width: 180px;
    overflow: hidden;
    display: block;
}

/* Tıklanabilir paket görseli linki */
a.paket-card-image,
a.paket-image-link {
    cursor: pointer;
    text-decoration: none;
}

.egitimler-page-wrapper .one-cikan-paketler-section .paket-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.egitimler-page-wrapper .one-cikan-paketler-section .paket-card-image .paket-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #1d458b, #2a5298);
    color: white;
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.egitimler-page-wrapper .one-cikan-paketler-section .paket-card-image .paket-badge i {
    font-size: 10px;
}

.egitimler-page-wrapper .one-cikan-paketler-section .paket-card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.egitimler-page-wrapper .one-cikan-paketler-section .paket-card-content .paket-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.egitimler-page-wrapper .one-cikan-paketler-section .paket-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.egitimler-page-wrapper .one-cikan-paketler-section .paket-title a:hover {
    color: #1565C0;
}

.egitimler-page-wrapper .one-cikan-paketler-section .paket-card-content .paket-date {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

.egitimler-page-wrapper .one-cikan-paketler-section .paket-card-content .paket-date i {
    color: #4a72ae;
    font-size: 12px;
}

.egitimler-page-wrapper .one-cikan-paketler-section .paket-card-content .paket-meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
}

.egitimler-page-wrapper .one-cikan-paketler-section .paket-card-content .paket-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.egitimler-page-wrapper .one-cikan-paketler-section .paket-card-content .paket-meta i {
    color: #1d458b;
    font-size: 12px;
}

.egitimler-page-wrapper .one-cikan-paketler-section .paket-card-content .paket-detay-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #1d458b, #2a5298);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
    margin-top: auto;
}

.egitimler-page-wrapper .one-cikan-paketler-section .paket-card-content .paket-detay-btn:hover {
    background: linear-gradient(135deg, #1d458b, #285fbf);
}

/* Responsive */
@media (max-width: 992px) {
    .egitimler-page-wrapper .one-cikan-paketler-section .paket-highlight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .egitimler-page-wrapper .content-area .one-cikan-paketler-section {
        padding: 14px;
    }

    .egitimler-page-wrapper .one-cikan-paketler-section .paket-highlight-card {
        flex-direction: row;
        min-height: 130px;
    }

    .egitimler-page-wrapper .one-cikan-paketler-section .paket-card-image {
        width: 140px;
        min-width: 140px;
    }

    .egitimler-page-wrapper .one-cikan-paketler-section .section-title-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .egitimler-page-wrapper .one-cikan-paketler-section .paket-highlight-card {
        flex-direction: column;
    }

    .egitimler-page-wrapper .one-cikan-paketler-section .paket-card-image {
        width: 100%;
        height: 160px;
    }
}
