/* ========================================
   1. TEMEL AYARLAR & DEĞİŞKENLER
======================================== */
:root {
    --primary-green: #1A4D3E;
    --dark-green: #143d31;
    --light-green: #4CAF50;
    --cream: #F9F7F2;
    --white: #FFFFFF;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --border-gray: #E5E7EB;

    /* Gölgeler - Kaliteli Görünüm İçin */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Yazıları pürüzsüzleştirir */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
2. NAVBAR (Üst Menü - KÜÇÜLTÜLMÜŞ & KİBAR)
======================================== */
.navbar {
    background: var(--white);
    height: 65px;
    /* Yükseklik 80px'den 65px'e düşürüldü */
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-green);
    font-weight: 700;
}

/* Logo - Biraz küçültüldü */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.1rem;
    /* Font biraz küçüldü */
    color: var(--primary-green);
    text-decoration: none;
}

.logo-icon {
    width: 28px;
    /* İkon küçüldü */
    height: 28px;
}

/* Arama Çubuğu - Daha İnce */
.nav-search {
    flex: 1;
    max-width: 450px;
    margin: 0 2rem;
    padding: 0.4rem 1rem;
    /* Dikey boşluk azaltıldı */
    background: var(--cream);
    border-radius: 6px;
    /* Köşeler biraz keskinleşti */
    display: flex;
    align-items: center;
    border: 1px solid var(--border-gray);
    transition: all 0.2s ease;
    position: relative;
    /* Dropdown için eklendi */
}

/* --- SEARCH SUGGESTIONS --- */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 350px;
    overflow-y: auto;
    z-index: 2000;
}

.search-results.hidden {
    display: none;
}

.search-result-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f5f5f7;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8fafc;
}

.search-result-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    background: #f9f9f9;
    padding: 2px;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-result-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.search-result-city {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.nav-search:focus-within {
    border-color: var(--primary-green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 77, 62, 0.1);
}

.nav-search input {
    border: none;
    background: transparent;
    flex: 1;
    outline: none;
    font-size: 0.9rem;
    /* Yazı boyutu ayarlandı */
    color: var(--text-dark);
}

.nav-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-gray);
    display: flex;
    align-items: center;
}

/* Butonlar Alanı */
.nav-actions {
    display: flex;
    gap: 0.8rem;
    /* Buton arası boşluk ayarlandı */
    align-items: center;
}

/* Ortak Buton Stilleri - Daha Küçük */
.login-btn,
.signup-btn {
    padding: 0.5rem 1.2rem;
    /* Buton içi boşluklar azaltıldı */
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    /* Buton yazısı küçültüldü */
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

/* 1. GİRİŞ YAP BUTONU */
.login-btn {
    background: transparent;
    border: 1.5px solid var(--primary-green);
    /* Çerçeve inceltildi */
    color: var(--primary-green);
}

.login-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(26, 77, 62, 0.2);
    transform: translateY(-1px);
}

/* 2. KAYIT OL BUTONU */
.signup-btn {
    background: var(--primary-green);
    color: var(--white);
    border: 1.5px solid var(--primary-green);
}

.signup-btn:hover {
    background: var(--white);
    color: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-1px);
}

a.signup-btn,
button.signup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
}

/* ========================================
   4. HERO SECTION (Kapak)
======================================== */
/* Hero Section Yüksekliğini Artırma */
.uni-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    /* Minimum yükseklik */
    max-height: 700px;
    /* Çok aşırı büyümemesi için sınır */
    overflow: hidden;
    background-color: #f0f0f0;
    /* Resim yüklenene kadar boş kalmasın */
}

.hero-image-wrapper {
    height: auto;
    /* Yüksekliği içeriğe (resme) bırakıyoruz */
    width: 100%;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    /* Orantıyı korumak için auto olmalı */
    display: block;
    /* object-fit: cover;  <-- Bu satırı siliyoruz veya contain yapıyoruz */
    object-fit: contain;
    /* Resmin tamamını kutu içine sığdırır, kesmez */
}

.hero-image-wrapper img {
    width: 100%;
    height: 500px;
    /* İstediğiniz ideal yükseklik */
    object-fit: cover;
    object-position: center;
    /* Merkeze odaklar, kesilmeyi minimumda tutar */
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

/* ========================================
   5. ANA YAPI (Layout)
======================================== */
.uni-main {
    padding: 0 0 5rem;
}

.uni-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    /* Sidebar genişliği */
    gap: 2.5rem;
    /* Kolonlar arası boşluk */
    align-items: start;
}

.uni-content {
    min-width: 0;
}

/* ========================================
   6. ÜNİVERSİTE KARTI (Header) - ORİJİNAL GÖRÜNÜM
======================================== */
.uni-header-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    /* Görsel 1'deki genişlik için padding artırıldı */
    margin-top: -80px;
    /* Yukarı taşma efekti */
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.uni-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.uni-info {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.uni-badge {
    width: 100px;
    /* Genişlik */
    height: 100px;
    /* Yükseklik */
    background-color: #f5f7f9;
    /* Grimsi, temiz ton */
    border-radius: 20px;
    /* Modern yumuşak köşeler */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    /* Daralmasını engeller */

    /* Çerçeve ve Gölge */
    border: 1px solid #e0e4e8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);

    /* İçindeki görselin sığması için */
    overflow: hidden;
    padding: 10px;
    /* Görsel kenarlara sıfır yapışmasın diye */
}

.uni-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Görseli bozmadan kutuya sığdırır */
}

/* Header alanının hizalanması */
.uni-info {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Logo ile yazı arasındaki boşluk */
}

.uni-title-area {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.uni-name {
    font-size: 2.4rem;
    /* İsim büyütüldü */
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.uni-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--text-gray);
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* BUTONLAR - Görsel 1'deki Geniş Stil */
.uni-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: stretch;
}

.btn-save,
.btn-apply {
    padding: 0.9rem 2rem;
    /* Butonlar büyütüldü */
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 130px;
    /* Genişlik eklendi */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-save {
    border: 2px solid var(--border-gray);
    background: var(--white);
    color: var(--text-dark);
}

.btn-save::before {
    content: '♡';
    font-size: 1.2rem;
    margin-right: 6px;
    font-weight: 400;
}

.btn-save.is-saved {
    background: var(--primary-green, #1a4d3e);
    color: #fff;
    border-color: var(--primary-green, #1a4d3e);
}

.btn-save.is-saved::before {
    content: '♥';
}

.btn-save.is-saved:hover {
    color: #fff;
    border-color: var(--primary-green, #1a4d3e);
}

.btn-save:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.btn-apply {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 10px rgba(26, 77, 62, 0.25);
}

.btn-apply:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

.btn-survey {
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

/* Quick Stats - Yüksekliği Azaltılmış */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    border-top: 1px solid var(--border-gray);
    padding-top: 2rem;
    margin-top: 1rem;
}

.stat-card {
    background: var(--cream);
    padding: 0.8rem 1rem;
    /* Yükseklik azaltıldı */
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-grade {
    width: 44px;
    height: 44px;
    background: #2E7D32;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.stat-icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-gray);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
    font-weight: 600;
}

.stat-value {
    font-weight: 800;
    color: var(--text-dark);
    font-size: 1.05rem;
}

/* Hazırlık Ücreti Bilgi İkonu & Tooltip */
.fee-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.fee-info-icon:hover {
    transform: scale(1.3);
}

.fee-info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(26, 32, 44, 0.95);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: normal;
    width: max-content;
    max-width: 280px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.fee-info-icon::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(26, 32, 44, 0.95);
    z-index: 1001;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.fee-info-icon:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.fee-info-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   7. MENÜ ÇUBUĞU (Tabs)
======================================== */
.uni-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    padding: 0.45rem;
    background: var(--white);
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow-card);
    position: static;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.uni-tabs::-webkit-scrollbar {
    height: 6px;
}

.uni-tabs::-webkit-scrollbar-thumb {
    background: rgba(26, 77, 62, 0.25);
    border-radius: 6px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-gray);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

/* university.html sekmeleri: genişte yazı, darde amblem */
body.page-university .uni-tabs {
    container-type: inline-size;
    container-name: uni-tabs;
}

body.page-university .tab-btn-amblem {
    display: none;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

body.page-university .tab-btn-amblem svg {
    width: 100%;
    height: 100%;
    display: block;
}

body.page-university .tab-btn-label {
    display: inline;
}

@container uni-tabs (max-width: 680px) {
    body.page-university .tab-btn-label {
        display: none;
    }

    body.page-university .tab-btn-amblem {
        display: inline-flex;
    }

    body.page-university .tab-btn {
        padding: 0.65rem 0.7rem;
        min-width: 2.5rem;
    }
}

@media (max-width: 768px) {
    body.page-university .tab-btn-label {
        display: none;
    }

    body.page-university .tab-btn-amblem {
        display: inline-flex;
    }

    body.page-university .tab-btn {
        padding: 0.6rem 0.7rem;
        min-width: 2.5rem;
    }
}

.tab-btn:hover {
    color: var(--primary-green);
    background: var(--cream);
}

.tab-btn.active {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(26, 77, 62, 0.2);
}

/* ========================================
   8. İÇERİK & DETAYLAR
======================================== */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--cream);
}

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

.read-more-btn {
    margin-top: 1rem;
    color: var(--primary-green);
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
}

/* Puanlar Grid */
.ratings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.rating-item {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.2s;
}

.rating-item:hover {
    transform: translateY(-5px);
    background: #f0fdf4;
}

.rating-grade {
    width: 60px;
    height: 60px;
    background: #2E7D32;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* ===== NOT RENK SİSTEMİ ===== */
/* A Ailesi - Yeşil Tonları */
.rating-grade.grade-a-plus {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.35);
}

.rating-grade.grade-a {
    background: linear-gradient(135deg, #2E7D32, #43A047);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.rating-grade.grade-a-minus {
    background: linear-gradient(135deg, #43A047, #66BB6A);
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.3);
}

/* B Ailesi - Mavi Tonları */
.rating-grade.grade-b-plus {
    background: linear-gradient(135deg, #1565C0, #1E88E5);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

.rating-grade.grade-b {
    background: linear-gradient(135deg, #1E88E5, #42A5F5);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

.rating-grade.grade-b-minus {
    background: linear-gradient(135deg, #42A5F5, #64B5F6);
    box-shadow: 0 4px 12px rgba(66, 165, 245, 0.3);
}

/* C Ailesi - Açık Turuncu/Amber Tonları */
.rating-grade.grade-c-plus {
    background: linear-gradient(135deg, #F57C00, #FF9800);
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
}

.rating-grade.grade-c {
    background: linear-gradient(135deg, #FF9800, #FFA726);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.rating-grade.grade-c-minus {
    background: linear-gradient(135deg, #FFA726, #FFB74D);
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.3);
}

/* D Ailesi - Koyu Turuncu/Kırmızımsı Tonlar */
.rating-grade.grade-d-plus {
    background: linear-gradient(135deg, #BF360C, #D84315);
    box-shadow: 0 4px 12px rgba(191, 54, 12, 0.3);
}

.rating-grade.grade-d {
    background: linear-gradient(135deg, #D84315, #E64A19);
    box-shadow: 0 4px 12px rgba(216, 67, 21, 0.3);
}

.rating-grade.grade-d-minus {
    background: linear-gradient(135deg, #E64A19, #F4511E);
    box-shadow: 0 4px 12px rgba(230, 74, 25, 0.3);
}

/* F - Kırmızı */
.rating-grade.grade-f {
    background: linear-gradient(135deg, #B71C1C, #C62828);
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.3);
}

/* ===== STAT-GRADE (Quick Stats) RENK SİSTEMİ ===== */
.stat-grade.grade-a-plus {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
}

.stat-grade.grade-a {
    background: linear-gradient(135deg, #2E7D32, #43A047);
}

.stat-grade.grade-a-minus {
    background: linear-gradient(135deg, #43A047, #66BB6A);
}

.stat-grade.grade-b-plus {
    background: linear-gradient(135deg, #1565C0, #1E88E5);
}

.stat-grade.grade-b {
    background: linear-gradient(135deg, #1E88E5, #42A5F5);
}

.stat-grade.grade-b-minus {
    background: linear-gradient(135deg, #42A5F5, #64B5F6);
}

.stat-grade.grade-c-plus {
    background: linear-gradient(135deg, #F57C00, #FF9800);
}

.stat-grade.grade-c {
    background: linear-gradient(135deg, #FF9800, #FFA726);
}

.stat-grade.grade-c-minus {
    background: linear-gradient(135deg, #FFA726, #FFB74D);
}

.stat-grade.grade-d-plus {
    background: linear-gradient(135deg, #BF360C, #D84315);
}

.stat-grade.grade-d {
    background: linear-gradient(135deg, #D84315, #E64A19);
}

.stat-grade.grade-d-minus {
    background: linear-gradient(135deg, #E64A19, #F4511E);
}

.stat-grade.grade-f {
    background: linear-gradient(135deg, #B71C1C, #C62828);
}

.rating-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Galeri */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 1rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item.large {
    grid-row: 1 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.virtual-tour {
    background: var(--primary-green);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Benzer Üniversiteler */
.similar-unis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.similar-card {
    background: var(--cream);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.similar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.similar-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.similar-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
}

.similar-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.similar-location {
    font-size: 0.9rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.similar-location::before {
    content: '📍';
    font-size: 0.8rem;
}

.similar-grade {
    position: absolute;
    top: -20px;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2E7D32, #43A047);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.35);
}

@media (max-width: 768px) {
    .similar-unis {
        grid-template-columns: 1fr;
    }

    .similar-card {
        display: flex;
        flex-direction: row;
    }

    .similar-card img {
        width: 120px;
        height: 100%;
        min-height: 100px;
    }

    .similar-info {
        flex: 1;
    }

    .similar-grade {
        top: 50%;
        transform: translateY(-50%);
        right: 1rem;
    }
}

/* Diğer Tab Stilleri */
.rankings-highlight,
.cost-highlight {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.ranking-position,
.cost-value {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-green);
    display: block;
    line-height: 1;
}

.cost-value.free {
    color: #2E7D32;
}

.ranking-title {
    font-weight: 700;
    color: var(--dark-green);
    margin-top: 0.5rem;
    display: block;
}

/* ========================================
   9. SIDEBAR (Yan Menü)
======================================== */
.uni-sidebar {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.chance-visual {
    text-align: center;
    margin-bottom: 1.5rem;
}

.chance-circle {
    width: 90px;
    height: 90px;
    border: 4px solid #E5E7EB;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-gray);
}

.btn-full {
    width: 100%;
    padding: 0.9rem;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 77, 62, 0.25);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-gray);
    color: var(--text-dark);
}

.btn-primary:hover,
.btn-outline:hover {
    transform: translateY(-2px);
}

.quick-info-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.info-icon {
    font-size: 1.2rem;
    color: var(--primary-green);
}

.quick-info-list a {
    color: var(--primary-green);
    font-weight: 600;
}

/* ========================================
   10. FOOTER & RESPONSIVE
======================================== */
.footer {
    background: var(--primary-green);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    margin-top: 5rem;
}

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

    .uni-tabs {
        margin: 1.5rem 0;
    }

    .tab-btn {
        padding: 0.65rem 0.95rem;
        font-size: 0.85rem;
    }

    .uni-sidebar {
        margin-top: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-search {
        display: none;
    }
}

/* Mobil: sayfa genişlemesini sınırla; Sıralamalar tablosu içeride kaydırılsın */
@media (max-width: 768px) {
    body.page-university {
        overflow-x: hidden;
    }

    body.page-university .uni-main,
    body.page-university .uni-main .container,
    body.page-university .uni-layout {
        max-width: 100%;
        min-width: 0;
    }

    body.page-university .uni-content {
        max-width: 100%;
        min-width: 0;
        overflow-x: visible;
    }

    body.page-university .uni-tabs {
        gap: 0.3rem;
        padding: 0.35rem;
        margin: 1.25rem 0;
    }

    body.page-university .tab-btn {
        padding: 0.6rem 0.85rem;
        font-size: 0.82rem;
    }

    body.page-university .uni-header-card {
        padding: 1.5rem 1.25rem;
    }

    body.page-university .content-card,
    body.page-university .years-table-wrapper,
    body.page-university .table-container {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.page-university .years-table-scroll {
        max-width: 100%;
        overflow-x: hidden;
    }

    body.page-university #rankings .content-card {
        overflow-x: visible;
    }
}

@media (max-width: 600px) {
    .uni-header-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .uni-info {
        flex-direction: column;
    }

    .uni-actions {
        width: 100%;
        justify-content: center;
    }

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

    .ratings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .uni-sidebar {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

/* Genel Puan Kartı - Başlık Üstte Yapısı */
.stat-card-vertical {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem;
    gap: 2px;
}

.stat-label-top {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.stat-card-vertical .stat-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.stat-card-vertical .stat-info {
    text-align: left;
}

.stat-value-inline {
    font-weight: 800;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.2;
    text-align: center;
}

/* ========================================
   11. EKSİK SEKME TASARIMLARI (Rankings, Kabul, vb.)
======================================== */

/* --- SIRALAMALAR (Rankings) --- */
.rankings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--cream);
    /* Hafif krem arka plan */
    border-radius: 12px;
    transition: transform 0.2s;
}

.ranking-item:hover {
    transform: translateY(-2px);
}

.ranking-pos {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-green);
    min-width: 60px;
    text-align: center;
}

.ranking-info {
    display: flex;
    flex-direction: column;
}

.ranking-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.ranking-src {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Bölüm Kartı Başlık ve Puan Rozeti */
.dept-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.dept-rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mevcut renk sistemini rozetler için de kullanalım */
.dept-rating-badge.grade-a-plus { background: linear-gradient(135deg, #1B5E20, #2E7D32); }
.dept-rating-badge.grade-a { background: linear-gradient(135deg, #2E7D32, #43A047); }
.dept-rating-badge.grade-a-minus { background: linear-gradient(135deg, #43A047, #66BB6A); }
.dept-rating-badge.grade-b-plus { background: linear-gradient(135deg, #1565C0, #1E88E5); }
.dept-rating-badge.grade-b { background: linear-gradient(135deg, #1E88E5, #42A5F5); }
.dept-rating-badge.grade-b-minus { background: linear-gradient(135deg, #42A5F5, #64B5F6); }
.dept-rating-badge.grade-c-plus { background: linear-gradient(135deg, #F57C00, #FF9800); }
.dept-rating-badge.grade-c { background: linear-gradient(135deg, #FF9800, #FFA726); }
.dept-rating-badge.grade-c-minus { background: linear-gradient(135deg, #FFA726, #FFB74D); }
.dept-rating-badge.grade-d-plus { background: linear-gradient(135deg, #BF360C, #D84315); }
.dept-rating-badge.grade-d { background: linear-gradient(135deg, #D84315, #E64A19); }
.dept-rating-badge.grade-d-minus { background: linear-gradient(135deg, #E64A19, #F4511E); }
.dept-rating-badge.grade-f { background: linear-gradient(135deg, #B71C1C, #C62828); }
.dept-rating-badge.grade-neutral { background: rgba(255,255,255,0.25); color: rgba(255,255,255,0.9); }

/* Detaylı Puan Grid Sistemi - Yatay Kompakt Rozet Satırı */
.dept-info-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.dept-separator {
    color: #bbb;
    font-weight: 300;
    margin: 0 0.2rem;
}

.dept-ratings-full-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.6rem;
    margin-top: 0.6rem;
    padding: 0.5rem 0 0.2rem 0;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.08) transparent;
}

.dept-ratings-full-grid::-webkit-scrollbar {
    height: 3px;
}

.dept-ratings-full-grid::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.08);
    border-radius: 10px;
}

.rating-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 50px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.rating-metric:hover {
    transform: translateY(-2px);
}

.metric-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
    white-space: nowrap;
}

.dept-rating-badge.badge-circle {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
    border: none;
}


/* --- KABUL (Admissions) --- */
.admission-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.stat-circle {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke: var(--primary-green);
    animation: progress 1s ease-out forwards;
}

.stat-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-name {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.deadline-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #FFF3E0;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.deadline-icon {
    font-size: 2rem;
}

.deadline-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #E65100;
}

.deadline-info p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #BF360C;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.requirement-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--cream);
    border-radius: 10px;
    font-weight: 500;
}

.req-value {
    font-weight: 700;
    color: var(--primary-green);
}


/* --- ÜCRETLER (Cost) --- */
.cost-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.cost-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--cream);
    border-radius: 10px;
}

.cost-icon {
    font-size: 1.4rem;
    width: 40px;
    text-align: center;
}

.cost-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.cost-item.total {
    background: var(--primary-green);
    color: white;
}

.cost-item.total .cost-name,
.cost-item.total .cost-amount {
    color: white;
    font-weight: 700;
}

.scholarship-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: #E3F2FD;
    border-radius: 12px;
}

.scholarship-info h4 {
    margin: 0;
    color: #0D47A1;
}

.scholarship-info p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #1565C0;
}


/* --- AKADEMİK (Academic) --- */
.academic-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.bar-fill {
    border-radius: 4px;
    transition: width 1s ease-out;
}

.majors-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.major-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

.major-percent {
    font-weight: 700;
    color: var(--primary-green);
}

.see-all-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    color: var(--primary-green);
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
}


/* --- KAMPÜS (Campus) --- */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--cream);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s;
}

.amenity-item:hover {
    transform: translateY(-3px);
    background: #E8F5E9;
}

.amenity-icon {
    font-size: 1.8rem;
}

.amenity-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.address-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.address-icon {
    font-size: 1.5rem;
}


/* --- YORUMLAR (Reviews) --- */
.review-summary {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-gray);
    margin-bottom: 2rem;
}

.review-score {
    text-align: center;
}

.score-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-green);
}

.score-stars {
    color: #FBC02D;
    margin: 0.5rem 0;
    letter-spacing: 2px;
}

.score-count {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.breakdown-bar {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.review-item {
    padding: 1.5rem;
    background: var(--cream);
    border-radius: 12px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.reviewer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.review-rating {
    color: #FBC02D;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.review-text {
    color: var(--text-gray);
    line-height: 1.6;
}

/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admission-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .review-summary {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ========================================
   12. KAMPÜS SEKMESİ - KONUM VE YAKIN ÇEVRE (Görsel 25)
======================================== */

/* Alt Başlıklar Arası Boşluk */
#campus .subsection-title {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* --- Adres Kutusu (Styled) --- */
.address-box-styled {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--cream);
    /* Görseldeki krem rengi */
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.address-icon-styled {
    font-size: 1.8rem;
    color: #D32F2F;
    /* Kırmızı pin rengi */
}

.address-details-styled p {
    margin: 0 0 0.3rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.address-details-styled strong {
    font-weight: 700;
    font-size: 1rem;
}

/* --- Harita Alanı --- */
.map-container-styled {
    width: 100%;
    height: 250px;
    /* Harita yüksekliği */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-gray);
    margin-bottom: 2.5rem;
}

.map-container-styled img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Görseli kutuya doldur */
}

/* --- Yakın Çevre Listesi --- */
.nearby-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    /* Maddeler arası boşluk */
}

.nearby-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--cream);
    /* Krem arka plan */
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.nearby-item:hover {
    transform: translateX(5px);
    /* Hover efekti */
    background: #f0fdf4;
    /* Hafif yeşil ton */
}

.nearby-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nearby-icon {
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
    color: var(--primary-green);
    /* İkon rengi */
}

.nearby-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.nearby-distance {
    font-size: 0.9rem;
    color: var(--text-gray);
    /* Gri renkli mesafe */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Yürüme / Araç İkonu */
.transport-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* Gezilecek Yerler Kartları */
.places-to-visit .nearby-item {
    border-left: 3px solid var(--primary-green);
}

.places-to-visit .nearby-item:hover {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.place-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-green);
    background: #e8f5e9;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.place-distance {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
    white-space: nowrap;
    margin-left: auto;
    margin-right: 8px;
}

/* ========================================
   YENİ: ÖĞRENCİ VE AKADEMİK KADRO İSTATİSTİKLERİ
======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.stat-box.total {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border: none;
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
}

.stat-box.total .stat-icon,
.stat-box.total .stat-number,
.stat-box.total .stat-name {
    color: var(--white);
}

.stat-box .stat-icon {
    font-size: 1.5rem;
}

.stat-box .stat-info {
    display: flex;
    flex-direction: column;
}

.stat-box .stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-box .stat-name {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Kampüs İstatistikleri Grid */
.campus-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.campus-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    background: var(--cream);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s;
}

.campus-stat-item:hover {
    transform: scale(1.02);
}

.campus-stat-item .stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.campus-stat-item .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.campus-stat-item .stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-box.total {
        grid-column: 1 / -1;
    }

    .campus-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   ÜCRETLER SEKME TASARIMI (DİNAMİK)
======================================== */
.cost-grid-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cost-stat-box {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.cost-stat-box .cost-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
}

.cost-stat-box .cost-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-green);
}

.cost-stat-box .cost-value.free {
    color: #2E7D32;
}

.cost-stat-box .cost-note {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.cost-info-banner {
    background: #f0fdf4;
    border-left: 4px solid var(--primary-green);
    padding: 1rem 1.2rem;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cost-info-banner .info-icon {
    font-size: 1.2rem;
}

.cost-info-banner p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #1a4d3e;
}

.living-costs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.living-cost-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s;
}

.living-cost-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.living-cost-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-gray);
}

.living-cost-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.cost-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.cost-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    border-bottom: 1px dashed #eee;
}

.cost-list li:last-child {
    border-bottom: none;
}

.item-name {
    color: var(--text-gray);
}

.item-price {
    font-weight: 600;
    color: var(--text-dark);
}

.living-cost-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid var(--cream);
    font-weight: 800;
    color: var(--primary-green);
    font-size: 1.1rem;
}

.scholarship-cta-modern {
    background: linear-gradient(135deg, #1a4d3e, #2e7d32);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 8px 24px rgba(26, 77, 62, 0.15);
}

.scholarship-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.scholarship-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.scholarship-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.scholarship-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.4;
}

.btn-scholarship {
    background: white;
    color: var(--primary-green);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-scholarship:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    background: var(--cream);
}

@media (max-width: 768px) {

    .cost-grid-top,
    .living-costs-container {
        grid-template-columns: 1fr;
    }

    .scholarship-cta-modern {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* ========================================
   YENİ: DETAYLI ÜCRET LİSTESİ (DİKEY)
======================================== */
.detailed-cost-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1rem;
}

.cost-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.cost-list-row:hover {
    border-color: var(--primary-green);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.row-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.row-kalem {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.row-detay {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 400;
}

.row-price {
    font-weight: 800;
    color: var(--primary-green);
    font-size: 1rem;
    white-space: nowrap;
    margin-left: 1.5rem;
}

.living-costs-advanced .subsection-title {
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    color: var(--text-dark);
    border-left: 4px solid var(--primary-green);
    padding-left: 1rem;
}

/* ========================================
   ÜCRET BİLGİ İKONU VE TOOLTIP
======================================== */
.fee-info-icon {
    position: relative;
    cursor: pointer;
    margin-left: 5px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.fee-info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 14px;
    background: rgba(33, 33, 33, 0.95);
    color: #fff;
    font-size: 0.85rem;
    border-radius: 8px;
    white-space: normal;
    width: 280px;
    max-width: 80vw;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    font-family: inherit;
    font-weight: 400;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
    pointer-events: none;
}

/* Tooltip Oku */
.fee-info-icon::before {
    content: '';
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(33, 33, 33, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    pointer-events: none;
}

.fee-info-icon:hover::after,
.fee-info-icon:hover::before {
    opacity: 1;
    visibility: visible;
    bottom: 140%;
    /* Bir miktar yukarı kayma efekti */
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .fee-info-icon::after {
        width: 220px;
        font-size: 0.8rem;
    }
}

/* Şehirdeki yurtlar (Sıralamalar sekmesi) — yurtlar sayfası kartlarıyla uyumlu */
.uni-city-yurtlar-card {
    margin-top: 1.5rem;
}

.uni-city-yurt-lead {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 1rem;
    line-height: 1.55;
}

.uni-city-yurt-empty {
    color: #64748b;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.uni-city-yurt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.1rem;
}

.uni-city-yurt-grid .yurt-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(26, 77, 62, 0.1);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.uni-city-yurt-grid .yurt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(26, 77, 62, 0.16);
}

.uni-city-yurt-grid .card-img-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.uni-city-yurt-grid .card-img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #e8f0ec;
}

.uni-city-yurt-grid .card-tip-badge {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}

.uni-city-yurt-grid .card-tip-badge.kyk {
    background: #1A4D3E;
}

.uni-city-yurt-grid .card-tip-badge.ozel {
    background: #7B2D8B;
}

.uni-city-yurt-grid .card-cinsiyet {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #343a40;
}

.uni-city-yurt-grid .yurt-card-fav-btn {
    position: absolute;
    z-index: 4;
    bottom: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #1A4D3E;
}

.uni-city-yurt-grid .yurt-card-fav-btn.is-favorite {
    color: #c026d3;
    background: #fdf4ff;
}

.uni-city-yurt-grid .card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.uni-city-yurt-grid .card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    line-height: 1.35;
}

.uni-city-yurt-grid .card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.uni-city-yurt-grid .card-adres {
    font-size: 0.78rem;
    color: #868e96;
    line-height: 1.4;
    margin-bottom: 8px;
}

.uni-city-yurt-grid .card-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.uni-city-yurt-grid .card-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #1A4D3E;
    background: transparent;
    color: #1A4D3E;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
}

.uni-city-yurt-foot {
    margin-top: 1rem;
}

.uni-city-yurt-foot .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}