/* ==========================================================================
   1. DEĞİŞKENLER VE TEMEL AYARLAR
   ========================================================================== */
:root {
    --primary: #4361ee;
    --primary-dark: #3f37c9;
    --secondary: #3f37c9;
    --background: #ffffff;
    --text-main: #2b2d42;
    --text-muted: #8d99ae;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --border-color: #edf2f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}
#puan-sayfa-baslik {
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
}

/* İçerik alanı footer'ı alta iter */
main {
    flex: 1;
}

main.container {
    flex: 1 0 auto;
}

/* Sayfa Yüklenme Animasyonu */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   2. NAVBAR (HEADER) - LOGO VE BUTON DENGESİ
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    height: 100px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
}

.logo-area {
    display: flex;
    align-items: center;
    height: 100%;
}

.main-logo {
    height: 180px;
    width: auto;
    transform: translateY(10px); /* 👈 aşağı indirir */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-logo:hover {
    transform: translateY(10px) scale(1.05);
}
/* Arama Kutusu */
.search-container {
    flex-grow: 0.35;
    display: flex;
    background: #fff;
    padding: 5px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 9px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.search-container input {
    width: 100%;
    border: none;
    padding: 12px 25px;
    background: transparent;
    outline: none;
    font-size: 14px;
}

.search-container button {
    padding: 10px 25px;
    border: none;
    background-color: #3b729f;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-container button:hover {
    background-color: #2e5d84;
    box-shadow: 0 4px 12px rgba(59, 114, 159, 0.2);
}

/* Öneri Listesi Paneli */
.suggestion-list {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.suggestion-item:hover {
    background-color: #f0f7ff;
    color: var(--primary);
    padding-left: 20px;
}

/* ==========================================================================
   3. NAV AKSİYONLARI
   ========================================================================== */
.nav-actions {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
}

.btn-compare,
.btn-scores {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 160px;
    padding: 10px 25px;
    border-radius: 50px;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 4px 12px rgba(59, 114, 159, 0.15);
}

.btn-compare {
    background-color: #3b729f;
}

.btn-scores {
    background-color: #3b729f;
}

.btn-compare:hover,
.btn-scores:hover {
    background-color: #2e5d84;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 114, 159, 0.3);
}

/* ==========================================================================
   4. ANA SAYFA VE HARİTA
   ========================================================================== */
.hero-section {
    padding: 60px 20px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-main);
}

#map-container {
    margin: 20px auto 30px auto;
    background: #fff;
    border-radius: 30px;
    width: 98%;
    max-width: 1350px;
    height: 600px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    padding: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease;
    overflow: hidden;
}

#map-container:hover {
    transform: translateY(-5px);
}

/* ==========================================================================
   5. ŞEHİR VE ÜNİVERSİTE DETAY SAYFASI
   ========================================================================== */
.detail-wrapper {
    max-width: 1400px;
    margin: 20px auto 0 auto;
    padding: 0 20px 50px;
}

.hero-minimal {
    position: relative;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto 30px auto;
    overflow: hidden;
    border-radius: 25px;
    background-color: #2c3e50;
    display: block;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
/* Üniversite detay için daha kısa */
.uni-hero {
    height: 360px;
}

/* Şehir detay için biraz daha büyük olabilir */
.city-hero {
    height: 440px;
}
.hero-bg img,
#sehir-resim,
#uni-resim {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-minimal:hover .hero-bg img {
    transform: scale(1.03);
}

.hero-minimal::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 65%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    z-index: 1;
}

.hero-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 50px;
    color: white;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 170px; /* her sayfada aynı alt yazı yüksekliği hissi */
}

.hero-info h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
    line-height: 1.1;
    max-width: 85%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-badges {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
    min-height: 52px;
    align-items: flex-start;
}

.content-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 30px;
    padding: 0 80px 40px 80px;
}

/* ==========================================================================
   ÜNİVERSİTE DETAY - BİLGİ KAPSÜLLERİ
   ========================================================================== */
.btn-puan-go {
    display: inline-block;
    padding: 15px 25px;
    background-color: #3b729f;
    color: white !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    width: 100%;
    margin-top: 20px;
}

.btn-puan-go:hover {
    background-color: #2e5d84;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 114, 159, 0.3);
}

/* Ortak kapsül yüksekliği */
#nufus-bilgi,
#belediye-parti,
#uni-tur,
#uni-yil,
#uni-dunya-siralamasi {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

#uni-tur,
#uni-yil,
#uni-dunya-siralamasi {
    background: #ffffff;
    color: #3b729f;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

#uni-tur:hover,
#uni-yil:hover,
#uni-dunya-siralamasi:hover {
    background-color: #3b729f;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(59, 114, 159, 0.25);
    border-color: #3b729f;
}

/* ==========================================================================
   5.1 BİLGİ PANELİ DETAYLARI
   ========================================================================== */
.main-info-panel {
    flex: 2;
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    min-height: 500px;
}

.main-info-panel strong,
.main-info-panel b {
    color: #2b2d42;
    background: #f0f4f8;
    padding: 2px 10px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95em;
    border-bottom: 2px solid #3b729f;
    margin: 0 3px;
    display: inline-block;
    box-shadow: 5px 5px 9px rgba(0, 0, 0, 0.03);
}

.main-info-panel span.label,
.main-info-panel i {
    font-weight: 700;
    color: #3b729f;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.main-info-panel h2,
.main-info-panel h3 {
    color: #3b729f;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 30px;
    border-left: 5px solid #3b729f;
    padding-left: 15px;
}

.main-info-panel h2:first-child,
.main-info-panel h3:first-child {
    margin-top: 0;
}

.main-info-panel p {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
}

.main-info-panel ul {
    margin-bottom: 25px;
    list-style-position: inside;
}

.main-info-panel li {
    margin-bottom: 12px;
    color: #4a5568;
    line-height: 1.6;
}

.uni-sidebar {
    flex: 0.8;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    align-self: flex-start;
    position: sticky;
    top: 150px;
}

.uni-list a {
    display: block;
    background: #f8fafc;
    padding: 16px;
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--text-main);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.uni-list a:hover {
    background-color: #3b729f;
    color: white !important;
    transform: translateX(10px);
    box-shadow: 0 8px 12px rgba(59, 114, 159, 0.2);
}

/* ==========================================================================
   HIZLI VERİ KAPSÜLLERİ (NÜFUS & BELEDİYE)
   ========================================================================== */
#nufus-bilgi,
#belediye-parti {
    background: #ffffff;
    color: #3b729f;
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-right: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.footer {
    flex-shrink: 0;
    background-color: #ffffff;
    padding: 15px 0 5px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.footer-brand {
    text-align: center;
    margin-bottom: 5px;
}

.footer-logo img {
    height: 100px;
    width: auto;
    margin-bottom: 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-slogan {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.2;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 15px;
    list-style: none;
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
}

.footer-bottom {
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 10px;
    opacity: 0.6;
    margin: 0;
}

/* ==========================================================================
   ÜNİVERSİTE LİSTE SAYFASI (GRID)
   ========================================================================== */
.container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    color: var(--text-main);
    font-size: 32px;
    margin-bottom: 10px;
}

.uni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.uni-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    padding: 20px 15px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    height: 100%;
}

.uni-card:hover {
    transform: translateY(-10px);
    border-color: #3b729f;
    box-shadow: 0 15px 35px rgba(59, 114, 159, 0.12);
}

.uni-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.uni-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uni-card-body {
    padding: 20px;
}

.uni-card-body h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-main);
    height: 50px;
    display: flex;
    align-items: center;
}
.uni-card-info h4 {
    font-size: 17px;
    line-height: 1.3;
    min-height: 44px; /* 👈 kritik */
    display: flex;
    align-items: center;
    justify-content: center;
}

.uni-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.uni-type {
    background: #f0f4f8;
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 5px;
}

.btn-detail {
    margin-top: auto; /* 👈 en önemli fix */
    padding: 10px 16px;
    background-color: #e67e22;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.btn-detail:hover {
    background: var(--primary-dark);
}

/* ==========================================================================
   BÖLÜM IZGARASI
   ========================================================================== */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dept-card {
	
    background: #fcfcfc;
    border-radius: 18px;
    border: 1px solid #dce4ee;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.02);
}

.dept-card:hover {
    background: #ffffff;
    border-color: #3b729f;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(59, 114, 159, 0.08);
}

.dept-stats {
    display: flex;
    justify-content: space-between;
    background: #f1f5f9;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
}

.dept-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    background: #f0f4f8;
    color: #3b729f;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 12px;
}

.dept-card h3 {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 5px;
}

.dept-uni-name {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .label {
    font-size: 11px;
    color: #8d99ae;
    text-transform: uppercase;
    font-weight: 700;
}

.stat-item .value {
    font-size: 16px;
    font-weight: 800;
    color: #2c3e50;
}

/* Küçük Detay Butonu */
.btn-detail-small {
    display: block;
    text-align: center;
    background: #fff;
    color: #2c3e50 !important;
    border: 1px solid #2c3e50;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-detail-small:hover {
    background: #2c3e50;
    color: #fff !important;
}

/* ==========================================================================
   PUAN TABS
   ========================================================================== */
.puan-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}
#puan-listesi {
    min-height: 500px;
    align-content: start;
}


.puan-tab {
    border: 1px solid #d1d9e6;
    padding: 12px 26px;
    border-radius: 999px;
    background: #ffffff;
    color: #4a5568;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.puan-tab:hover {
    background-color: #f8fafc;
    border-color: #3b729f;
    color: #3b729f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 114, 159, 0.15);
}

.puan-tab.active {
    background: #2c3e50;
    border-color: #2c3e50;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.3);
}

/* ==========================================================================
   BÖLÜM DETAY SAYFASI TASARIMI
   ========================================================================== */
.detay-wrapper {
    margin: 40px auto;
    max-width: 1000px;
    padding: 0 20px;
}

.detay-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.05);
}

.detay-header h1 {
    color: #1a1a1a;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.sehir-siralamasi {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.sehir-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.sehir-table th {
    background: #2c3e50;
    color: white;
    padding: 18px 15px;
    text-align: left;
    font-weight: 500;
}

.sehir-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.sehir-table tr:hover {
    background-color: #fcfcfc;
}

.rank-badge {
    background: #4a5568;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
}

.city-name {
    font-weight: 700;
    color: #1a1a1a;
}

/* Geri Dön Butonu */
.btn-don {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 25px;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-don:hover {
    background: #1a252f;
    transform: translateY(-2px);
}


/* ================================
   Üniversite liste grid yapısı
================================ */
.uni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* ================================
   Üniversite kartı
================================ */
.uni-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.uni-card img {
    max-width: 100px;
    margin-bottom: 10px;
}

/* Kart iç yazı alanı */
.uni-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    flex: 1;
}

.uni-card-info h4 {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
}

.uni-card-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* ================================
   Karttaki Detay Butonu
================================ */
.btn-detail {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;
    background-color: #e67e22;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-detail:hover {
    background-color: #d35400;
}

/* ================================
   Şehir detay sayfası sağ sidebar
================================ */
.uni-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.uni-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-action {
    margin-top: 10px;
    width: 100%;
}

/* ================================
   Şehirdeki Tüm Üniversiteler Butonu
================================ */
.btn-all-unis {
    display: block;
    width: 100%;
    background-color: #e67e22;
    color: white;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.btn-all-unis:hover {
    background-color: #d35400;
}
/* ==========================================================
   FINAL MOBILE / TABLET RESPONSIVE FIX
   BUNU style.css DOSYASININ EN ALTINA EKLE
   ========================================================== */

img {
    max-width: 100%;
    height: auto;
}

body {
    overflow-x: hidden;
}

.container,
.detail-wrapper,
.detay-wrapper,
.footer-content {
    width: 100%;
}

/* ---------- 1200px altı ---------- */
@media (max-width: 1200px) {
    .navbar {
        padding: 0 28px;
    }

    .content-container {
        padding: 0 28px 30px 28px;
    }

    .main-logo {
        height: 145px;
        transform: translateY(4px);
    }

    .main-logo:hover {
        transform: translateY(4px) scale(1.04);
    }

    .hero-info {
        padding: 30px 34px;
    }
}

/* ---------- 992px altı ---------- */
@media (max-width: 992px) {
    .navbar {
        position: static;
        top: auto;
        height: auto;
        padding: 14px 18px 16px;
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-area {
        width: 100%;
        justify-content: center;
        height: auto;
    }

    .main-logo {
        height: 108px;
        transform: translateY(0);
    }

    .main-logo:hover {
        transform: scale(1.02);
    }

    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
        padding: 6px;
        border-radius: 18px;
    }

    .search-container input {
        padding: 12px 14px;
        font-size: 15px;
    }

    .search-container button {
        padding: 11px 16px;
        font-size: 14px;
        min-width: 88px;
    }

    .nav-actions {
        order: 2;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .btn-compare,
    .btn-scores {
        min-width: unset;
        width: auto;
        flex: 1 1 210px;
        font-size: 14px;
        padding: 12px 16px;
    }

    .content-container {
        flex-direction: column;
        padding: 0 18px 28px 18px;
    }

    .main-info-panel,
    .uni-sidebar {
        width: 100%;
    }

    .uni-sidebar {
        position: static;
        top: unset;
    }

    .hero-info {
        padding: 24px 22px;
        min-height: 120px;
    }

    .hero-info h1 {
        max-width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        font-size: clamp(1.8rem, 4.6vw, 2.4rem);
    }

    .hero-badges {
        min-height: auto;
    }

    .uni-grid,
    .dept-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-header h1,
    #puan-sayfa-baslik,
    .detay-header h1,
    .hero-section h1 {
        font-size: 30px;
        line-height: 1.2;
    }

    .page-header p,
    .detay-header p,
    .hero-info p,
    .main-info-panel p,
    .main-info-panel li {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    .container {
        margin: 22px auto;
        padding: 0 14px;
    }

    .detail-wrapper,
    .detay-wrapper {
        padding: 0 14px 28px;
    }

    .navbar {
        position: static;
        top: auto;
        padding: 12px 12px 14px;
        gap: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    }

    .main-logo {
        height: 84px;
    }

    .search-container {
        width: 100%;
        flex-direction: row;
        padding: 5px;
        border-radius: 16px;
    }

    .search-container input {
        padding: 12px 12px;
        font-size: 15px;
    }

    .search-container button {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 14px;
    }

    .btn-compare,
    .btn-scores {
        flex: 1 1 100%;
        font-size: 14px;
        padding: 12px 14px;
        border-radius: 14px;
    }

    .page-header {
        margin-bottom: 26px;
    }

    .page-header h1,
    #puan-sayfa-baslik,
    .detay-header h1,
    .hero-section h1 {
        font-size: 26px;
        line-height: 1.2;
    }

    .page-header p,
    .detay-header p {
        font-size: 15px;
    }

    .hero-section {
        padding: 34px 14px;
    }

    #map-container {
        height: 400px;
        width: 100%;
        border-radius: 18px;
        padding: 6px;
    }

    .hero-minimal {
        border-radius: 18px;
        margin-bottom: 18px;
    }

    .uni-hero {
        height: 250px;
    }

    .city-hero {
        height: 290px;
    }

    .hero-info {
        padding: 18px 16px;
        min-height: 100px;
    }

    .hero-info h1 {
        font-size: 1.7rem;
        line-height: 1.15;
    }

    .hero-badges {
        gap: 8px;
        justify-content: flex-start;
    }

    #nufus-bilgi,
    #belediye-parti,
    #uni-tur,
    #uni-yil,
    #uni-dunya-siralamasi {
        height: auto;
        min-height: 38px;
        white-space: normal;
        text-align: center;
        padding: 8px 12px;
        font-size: 13px;
        line-height: 1.35;
    }

    .main-info-panel {
        padding: 20px 15px;
        min-height: auto;
    }

    .main-info-panel h2,
    .main-info-panel h3 {
        font-size: 19px;
        margin-top: 20px;
        margin-bottom: 14px;
        padding-left: 10px;
    }

    .main-info-panel p,
    .main-info-panel li {
        font-size: 15px;
        line-height: 1.7;
        text-align: left;
    }

    .uni-sidebar {
        padding: 18px 15px;
    }

    .uni-list a {
        padding: 13px 14px;
        font-size: 15px;
    }

    .uni-grid,
    .dept-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .uni-card,
    .dept-card {
        border-radius: 14px;
        padding: 16px 14px;
    }

    .uni-card img {
        width: 72px;
        height: 72px;
        object-fit: contain;
    }

    .uni-card-info h4,
    .dept-card h3 {
        font-size: 17px;
        min-height: auto;
        line-height: 1.35;
    }

    .uni-card-info p,
    .dept-uni-name,
    .dept-tag {
        font-size: 14px;
    }

    .btn-detail,
    .btn-detail-small,
    .btn-all-unis,
    .btn-puan-go,
    .btn-don {
        width: 100%;
        text-align: center;
        font-size: 14px;
        padding: 12px 14px;
    }

    .puan-tabs {
        gap: 10px;
        margin: 22px 0;
    }

    .puan-tab {
        padding: 11px 16px;
        font-size: 13px;
    }

    #puan-listesi {
        min-height: unset;
    }

    .sehir-table {
        min-width: 520px;
    }

    .sehir-table th,
    .sehir-table td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .footer {
        margin-top: 14px;
        padding: 12px 0 6px 0;
    }

    .footer-content {
        padding: 0 14px;
    }

    .footer-logo img {
        height: 68px;
    }

    .footer-slogan {
        font-size: 12px;
        line-height: 1.4;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 14px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 11px;
    }
}
/* ---------- 480px altı ---------- */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 10px 12px;
    }

    .main-logo {
        height: 72px;
    }

    .search-container {
        flex-direction: column;
        gap: 6px;
        padding: 6px;
        border-radius: 14px;
    }

    .search-container input {
        font-size: 14px;
        padding: 11px 12px;
    }

    .search-container button {
        width: 100%;
        border-radius: 12px;
        font-size: 14px;
    }

    .btn-compare,
    .btn-scores {
        width: 100%;
        flex: 1 1 100%;
        font-size: 13px;
    }

    .page-header h1,
    #puan-sayfa-baslik,
    .detay-header h1,
    .hero-section h1 {
        font-size: 23px;
    }

    .hero-info h1 {
        font-size: 1.45rem;
    }

    .uni-hero {
        height: 215px;
    }

    .city-hero {
        height: 240px;
    }

    .main-info-panel,
    .uni-sidebar,
    .detay-header {
        padding: 16px 12px;
    }

    .main-info-panel p,
    .main-info-panel li,
    .uni-card-info p,
    .dept-uni-name {
        font-size: 14px;
    }

    .puan-tab {
        width: calc(50% - 6px);
        text-align: center;
        justify-content: center;
        font-size: 12px;
    }

    .footer-logo img {
        height: 60px;
    }

    .footer-slogan {
        font-size: 11px;
    }

    .footer-links a,
    .footer-bottom p {
        font-size: 11px;
    }
}
.seo-text {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto 0 auto;
    padding: 0 20px;
    display: block;
    box-sizing: border-box;
}

.seo-text-box {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 36px 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    text-align: center;
    box-sizing: border-box;
}

.seo-text-box h2 {
    margin: 0 0 14px 0;
    font-size: 34px;
    line-height: 1.2;
    color: #1f2a44;
    font-weight: 800;
}

.seo-text-box p {
    margin: 0 0 28px 0;
    font-size: 18px;
    line-height: 1.8;
    color: #4b5563;
    text-align: center;
}

.seo-text-box p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .seo-text {
        margin-top: 30px;
        padding: 0 14px;
    }

    .seo-text-box {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .seo-text-box h2 {
        font-size: 26px;
    }

    .seo-text-box p {
        font-size: 16px;
        line-height: 1.7;
    }
}