/* ===================================
   PUBLIC SAYFA STİLLERİ
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.page-container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
    padding: 20px;
}

/* ===================================
   FİLTRE SIDEBAR - Modern Design
   ===================================*/
/* Filter Sidebar */
.filter-sidebar {
    width: 300px;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar styling for sidebar */
.filter-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.filter-header h2 {
    font-size: 28px;
    color: #0d47a1;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.program-count {
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
    font-size: 15px;
}

.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    background: #f9fafb;
    transition: all 0.3s;
}

/* Custom dropdown arrow for select */
.filter-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23374151' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    background-color: #f9fafb;
    padding-right: 45px;
    cursor: pointer;
}

.filter-group input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.filter-group select option {
    font-weight: 500;
    color: #374151;
    background: white;
    padding: 12px;
}

.filter-group select option:first-child {
    color: #9ca3af;
    font-weight: 400;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #0d47a1;
    border-width: 2px;
    background: white;
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.price-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-range input {
    flex: 1;
}

.price-range span {
    color: #9ca3af;
    font-weight: 500;
}

.btn-filter {
    width: 100%;
    padding: 16px;
    background: #0d47a1;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

.btn-filter:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 71, 161, 0.4);
}

.btn-filter:active {
    transform: translateY(0);
}

.btn-clear {
    display: block;
    text-align: center;
    padding: 12px;
    color: #6b7280;
    text-decoration: none;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    background: white;
}

.btn-clear:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

/* ===================================
   PROGRAMS CONTENT
   =================================== */

.programs-content {
    flex: 1;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.content-header h1 {
    font-size: 28px;
    color: #1e3a8a;
}

.btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #1e3a8a;
    text-decoration: none;
    border: 2px solid #1e3a8a;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-pdf:hover {
    background: #1e3a8a;
    color: white;
}

/* ===================================
   PROGRAM CARDS - Reference Design
   =================================== */

.programs-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.program-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    gap: 20px;
}

.program-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Logo ve Üniversite Adı - Gri Kutu */
.card-university-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    padding: 16px 12px;
    border-radius: 10px;
    min-width: 140px;
    max-width: 140px;
}

.card-logo {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    border-radius: 8px;
    font-size: 20px;
}

.university-name {
    font-size: 13px;
    color: #4b5563;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    word-wrap: break-word;
}

/* Program Bilgileri */
.card-program-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.program-name {
    font-size: 16px;
    color: #0d47a1;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.program-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-block;
    padding: 4px 12px;
    background: #e8eaf6;
    border-radius: 6px;
    font-size: 12px;
    color: #3f51b5;
    font-weight: 500;
}

.meta-city {
    background: #fff3e0;
    color: #e65100;
}

/* Fiyatlar */
.card-pricing {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-right: 40px;
}

.price-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-label {
    font-size: 9px;
    color: #9ca3af;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.price-old {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
}

.price-current {
    font-size: 16px;
    font-weight: 700;
    color: #0d47a1;
}

/* Başvur Butonu */
.card-action {
    display: flex;
    align-items: center;
}

/* ===================================
   BAŞVUR BUTONLARI - BASİT TASARIM
   =================================== */

/* Temel Buton Stili - Mavi (Başvur) */
.btn-apply {
    display: inline-block;
    padding: 12px 32px;
    background: #0d47a1 !important;
    color: white !important;
    text-decoration: none !important;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
    opacity: 1 !important;
}

.btn-apply:hover {
    background: #1565c0 !important;
    text-decoration: none !important;
    color: white !important;
}

/* Program Dolu - Kırmızı */
.btn-apply.btn-full,
button.btn-apply.btn-full:disabled {
    background: #d32f2f !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    color: white !important;
}

.btn-apply.btn-full:hover,
button.btn-apply.btn-full:disabled:hover {
    background: #d32f2f !important;
}

/* Başvuruya Açılmadı - Sarı/Turuncu */
.btn-apply.btn-closed,
button.btn-apply.btn-closed:disabled {
    background: #f57c00 !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    color: white !important;
}

.btn-apply.btn-closed:hover,
button.btn-apply.btn-closed:disabled:hover {
    background: #f57c00 !important;
}

/* Disabled button override */
button.btn-apply:disabled {
    cursor: not-allowed !important;
    opacity: 1 !important;
}

/* ===================================
   NO RESULTS
   =================================== */

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

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

.no-results p {
    color: #666;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #1e40af;
}

/* ===================================
   PAGINATION
   =================================== */

.pagination-wrapper {
    margin-top: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.page-link {
    display: inline-block;
    padding: 8px 14px;
    background: white;
    color: #1e3a8a;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s;
}

.page-link:hover {
    background: #f0f0f0;
}

.page-link.active {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 968px) {
    .page-container {
        flex-direction: column;
    }

    .filter-sidebar {
        width: 100%;
        position: static;
    }

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

@media (max-width: 640px) {
    .program-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .card-university-box {
        min-width: auto;
        width: 100%;
    }

    .card-program-info {
        align-items: flex-start;
    }

    .card-pricing {
        align-items: flex-start;
        width: 100%;
    }

    .price-group {
        align-items: flex-start;
    }

    .card-action {
        width: 100%;
    }

    .btn-apply {
        width: 100%;
    }
}