/* Genel Stil */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header ve Navigasyon */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.logo span {
    color: #3498db;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
    z-index: 1002;
}

nav {
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    position: relative;
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

/* HAMBURGER MENÜ - MOBİL */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        align-items: center;
    }
    
    .menu-toggle {
        display: block;
        position: relative;
        top: auto;
        right: auto;
        order: 2;
    }
    
    nav {
        width: 100%;
        display: none;
        margin-top: 15px;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }
    
    nav.active {
        display: block !important;
    }
    
    nav ul {
        flex-direction: column;
        margin-top: 0;
        width: 100%;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    nav ul li a {
        padding: 15px 20px;
        display: block;
        width: 100%;
    }
}

/* Hero Section */
.hero {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../images/okullar_2.jpg");
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
    z-index: 1;
}

.hero-content {
    max-width: 1600px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* KAYAN LOGO SLIDER */
.logo-slider {
    position: absolute;
    bottom: -50px;
    left: 5%;
    width: 90%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 50px;
    align-items: center;
}

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 60px;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0%) brightness(1) contrast(1.1);
    transition: all 0.4s ease;
}

.logo-item:hover {
    transform: scale(1.8);
    z-index: 100;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: white;
}

.logo-item:hover img {
    filter: grayscale(0%) brightness(1.1) contrast(1.2);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-120px * 8 - 50px * 7));
    }
}

/* SELECT2 STİLLERİ */
.select2-container {
    z-index: 9999 !important;
}

.select2-dropdown {
    z-index: 10000 !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.select2-container--default .select2-selection--single {
    height: 46px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 10px !important;
    background-color: #fff !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px !important;
    padding-left: 0 !important;
    color: #333 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
}

/* Arama Formu */
.search-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    position: relative;
    z-index: 5;
    margin-top: 70px;
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr auto;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group select, .form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
}

.search-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
    align-self: end;
}

.search-btn:hover {
    background-color: #2980b9;
}

/* Filtre Etiketleri */
.filter-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.filter-tag {
    background: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.filter-tag .remove {
    cursor: pointer;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Arama Bilgisi */
.search-info {
    background: #e8f4fc;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.search-info p {
    margin: 0;
    color: #004085;
    font-size: 14px;
}

.search-info i {
    color: #007bff;
    margin-right: 8px;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading-spinner.active {
    display: block;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 0 auto 10px;
}

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

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-results i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

/* ==================== OPTİMİZE EDİLMİŞ SONUÇ LAYOUTU ==================== */

.results-section {
    margin-bottom: 40px;
    display: none;
}

.results-section.active {
    display: block;
}

.results-section h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: bold;
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 100%;
}

/* ANA SONUÇLAR - ÜSTTE */
.main-results {
    width: 100%;
}

.main-results h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
}

/* SONUÇ KARTLARI - 3'LÜ GRID */
.university-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
}

.university-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
    height: fit-content;
    min-height: 400px;
}

.university-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.university-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 20px 20px 0;
}

.university-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 5px;
    border: 1px solid #e9ecef;
}

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

.university-header h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.university-info {
    padding: 0 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.university-info p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 0.9rem;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.university-info p i {
    color: #3498db;
    margin-right: 8px;
}

/* Bölüm Listesi */
.departments-list {
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fafafa;
    flex: 1;
    min-height: 0;
}

.departments-list h4 {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    position: sticky;
    top: 0;
    background: #fafafa;
    padding: 8px 0;
    z-index: 1;
    border-bottom: 1px solid #e0e0e0;
}

.department-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.department-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.department-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.department-item strong {
    display: block;
    color: #2c3e50;
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.department-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.department-details span {
    font-size: 0.8rem;
    color: #666;
    padding: 2px 0;
}

.apply-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
    width: 100%;
    margin-top: 15px;
    flex-shrink: 0;
}

.apply-btn:hover {
    background: #226593;
}

/* ÖNERİLER - ALTTA */
.recommendations-sidebar {
    width: 100%;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.recommendations-sidebar h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-bottom: 3px solid #f39c12;
    padding-bottom: 15px;
}

.recommendations-sidebar h3 i {
    color: #f39c12;
    font-size: 1.5rem;
}

/* ÖNERİ KARTLARI - 3'LÜ GRID */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.recommendation-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: fit-content;
    min-height: 350px;
    overflow: hidden;
}

.recommendation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.recommendation-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.recommendation-header .university-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 5px;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
}

.recommendation-header .university-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.recommendation-header h4 {
    margin: 0 !important;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.recommendation-header p {
    margin: 4px 0 0 0 !important;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.recommendation-card .university-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
}

.recommendation-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ÖNERİ BÖLÜMLERİ - TAŞMA DÜZELTMESİ */
.recommendation-departments {
    margin: 10px 0;
    max-height: 120px;
    overflow-y: auto;
    flex-shrink: 0;
}

.recommendation-card .department-item {
    background: #e8f4fc;
    padding: 8px 10px;
    margin: 6px 0;
    border-radius: 5px;
    border-left: 3px solid #3498db;
    flex-shrink: 0;
}

.recommendation-card .department-item strong {
    font-size: 0.85rem;
    margin-bottom: 4px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommendation-card .department-item div {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
}

.recommendation-card .apply-btn {
    margin-top: 15px;
    flex-shrink: 0;
}

/* Popüler Bölümler ve Üniversiteler */
.popular-section {
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: bold;
}

.popular-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.popular-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    padding: 25px 15px;
}

.popular-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.university-img {
    margin-bottom: 15px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.university-img img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.popular-item h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* Üniversite Tanıtım */
.university-promo {
    margin-bottom: 60px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.promo-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.promo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.promo-img {
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

.promo-item:hover .promo-img img {
    transform: scale(1.1);
}

.promo-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.promo-info h3 {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

/* POPUP FORMLARI */
.welcome-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    overflow-y: auto;
}

.welcome-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalFadeIn 0.5s;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close-modal, .welcome-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #777;
    background: none;
    border: none;
    line-height: 1;
}

.application-form {
    display: grid;
    gap: 15px;
}

.phone-input {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.country-code {
    width: 100px !important;
    padding: 10px !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px !important;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

.phone-number {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 0;
}

.file-upload {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    background-color: #fff;
}

.add-file {
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.add-file:hover {
    background-color: #e0e0e0;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cancel-btn:hover {
    background: #5a6268;
}

@keyframes modalFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-50px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* YouTube Video Popup */
.video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 4000;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    cursor: pointer;
    color: #333;
    background: none;
    border: none;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 4001;
}

.close-btn:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-logo span {
    color: #3498db;
}

.footer-about p {
    color: #ddd;
    line-height: 1.6;
}

.footer-links h3 {
    margin-bottom: 15px;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.6;
}

.footer-links ul li a:hover {
    color: #3498db;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3a5068;
    color: #aaa;
    font-size: 14px;
}

/* WHATSAPP BUTONU */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* RESPONSIVE DÜZEN */
@media (max-width: 1200px) {
    .university-cards,
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        align-items: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .results-container {
        gap: 30px;
    }
    
    .university-cards,
    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .recommendations-sidebar {
        padding: 25px;
    }
    
    .main-results h2 {
        font-size: 1.8rem;
    }
    
    .recommendations-sidebar h3 {
        font-size: 1.5rem;
    }
    
    .university-card,
    .recommendation-card {
        min-height: auto;
        height: auto;
    }
    
    .recommendation-card p,
    .university-info p {
        -webkit-line-clamp: 4;
    }
    
    .logo-slider {
        bottom: -30px;
        left: 3%;
        width: 94%;
        padding: 15px 0;
    }
    
    .logo-item {
        width: 80px;
        height: 40px;
    }
    
    .logo-item:hover {
        transform: scale(1.6);
    }
    
    .popular-items {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 300px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .popular-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .logo-slider {
        bottom: -25px;
        padding: 10px 0;
    }
    
    .logo-item {
        width: 70px;
        height: 35px;
    }
    
    .logo-item:hover {
        transform: scale(1.4);
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .department-items-container {
        grid-template-columns: 1fr;
    }
}

/* ==================== MOBİL FORM ve İÇERİK DÜZELTMELERİ ==================== */

@media (max-width: 768px) {
    /* 📱 MODAL DÜZENLEMELERİ */
    .modal-content,
    .welcome-content {
        margin: 15px auto !important;
        padding: 20px !important;
        width: 80% !important;
        max-width: none !important;
        max-height: 80vh !important;   
        overflow-y: auto !important;     
    }

    .welcome-modal.active {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 📱 BAŞVURU FORMUNU DA ORTALA */
   #applicationModal.modal[style*="display: block"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
   /* 📱 ÜNİVERSİTE KARTI İÇİ ALAN DAĞILIMI */
    .university-card {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 300px !important;
    }
    
    /* 📱 KONUM ve AÇIKLAMA - MİNİMUM ALAN */
    .university-info p {
        margin-bottom: 5px !important;
        line-height: 1.2 !important;
        -webkit-line-clamp: 1 !important; /* SADECE 1 SATIR */
        font-size: 0.75rem !important;
        flex-shrink: 0 !important;
        max-height: 20px !important;
    }
    
    .university-info p i {
        margin-right: 4px !important;
        font-size: 0.7rem !important;
    }
    
    /* 📱 BÖLÜM LİSTESİ - MAKSİMUM ALAN */
    .departments-list {
        max-height: 200px !important; /* DAHA YÜKSEK */
        min-height: 150px !important;
        margin: 8px 0 !important;
        padding: 12px !important;
        flex: 1 !important; /* KALAN TÜM ALANI KAPLA */
        overflow-y: auto !important;
    }
    
    .departments-list h4 {
        font-size: 0.9rem !important;
        margin-bottom: 10px !important;
        position: sticky !important;
        top: 0 !important;
        background: #fafafa !important;
        padding: 5px 0 !important;
    }
    
    /* 📱 BAŞLIK ALANINI DAHA KOMPAKT YAP */
    .university-header {
        margin-bottom: 8px !important;
        padding: 15px 15px 0 15px !important; 
    }
    
    .university-header h3 {
        font-size: 1rem !important;
        line-height: 1.1 !important;
    }
    
    .university-logo {
        width: 35px !important;
        height: 35px !important;
    }
    
    /* 📱 BAŞVURU BUTONU */
    .apply-btn {
        margin-top: 10px !important;
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
        flex-shrink: 0 !important;
    }


    /* 📱 FORM STİLLERİ */
    .application-form {
        gap: 15px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .form-group {
        margin-bottom: 15px !important;
        width: 100% !important;
    }

    .form-group label {
        font-size: 14px !important;
        margin-bottom: 6px !important;
        display: block !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px !important;
        font-size: 16px !important;
        border-radius: 6px !important;
        width: 100% !important;
        border: 1px solid #ddd !important;
    }

    /* Telefon input düzeltmesi */
    .phone-input {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .country-code {
        width: 100% !important;
        padding: 12px !important;
    }

    .phone-number {
        width: 100% !important;
    }

    /* Buton düzeltmeleri */
    .submit-btn,
    .cancel-btn {
        padding: 14px 20px !important;
        font-size: 16px !important;
        margin-top: 10px !important;
        width: 100% !important;
        min-height: 48px !important;
    }

    /* Dosya yükleme */
    .file-upload {
        padding: 12px !important;
        font-size: 14px !important;
        width: 100% !important;
    }

    .add-file {
        padding: 12px !important;
        font-size: 14px !important;
        width: 100% !important;
    }

    /* Modal kapatma */
    .close-modal,
    .welcome-close {
        top: 10px !important;
        right: 15px !important;
        font-size: 24px !important;
        width: 40px !important;
        height: 40px !important;
        z-index: 1000 !important;
    }

    /* 📱 AÇIKLAMA ve BÖLÜM DÜZENLEMELERİ */
    
    /* Üniversite kartları - açıklamaları daralt */
    .university-info p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
        -webkit-line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Bölüm listelerini daha kompakt yap */
    .departments-list {
        max-height: 150px !important;
        padding: 10px !important;
        margin: 10px 0 !important;
    }

    .departments-list h4 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
        padding: 5px 0 !important;
    }

    .department-items-container {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .department-item {
        padding: 8px !important;
        margin-bottom: 5px !important;
    }

    .department-item strong {
        font-size: 0.8rem !important;
        margin-bottom: 4px !important;
    }

    .department-details span {
        font-size: 0.75rem !important;
    }

    /* Öneri kartları - içerik optimizasyonu */
    .recommendation-card {
        padding: 15px !important;
        min-height: auto !important;
    }

    .recommendation-card p {
        font-size: 0.85rem !important;
        -webkit-line-clamp: 2 !important;
        margin-bottom: 10px !important;
    }

    .recommendation-departments {
        max-height: 120px !important;
        margin: 8px 0 !important;
    }

    /* Başvuru butonları */
    .apply-btn {
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
        margin-top: 10px !important;
        min-height: 44px !important;
    }

    /* iOS ve touch device optimizasyonları */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    /* 📱 ÇOK KÜÇÜK EKRANLAR İÇİN EK DÜZELTMELER */
    
    .modal-content,
    .welcome-content {
        margin: 10px auto !important;
        padding: 15px !important;
        width: 90% !important;
    }

    .application-form {
        gap: 12px !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px !important;
    }

    .submit-btn,
    .cancel-btn {
        padding: 16px 20px !important;
    }

    /* Form başlıkları */
    .modal-content h2,
    .welcome-content h2 {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
    }

    .welcome-content p {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
        line-height: 1.4 !important;
    }

    /* İçerik daha da kompakt */
    .university-info p {
        -webkit-line-clamp: 3 !important;
        font-size: 0.8rem !important;
    }

    .department-item {
        padding: 6px 8px !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .submit-btn,
    .cancel-btn,
    .apply-btn {
        min-height: 44px !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px !important;
    }
}

/* ==================== MASAÜSTÜ İÇİN İÇERİK OPTİMİZASYONU ==================== */

/* Açıklamaları her ekranda optimize et */
.university-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bölüm listelerini daha düzenli hale getir */
.departments-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
    margin: 12px 0;
}

.department-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.department-item {
    background: white;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.department-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.department-item strong {
    display: block;
    color: #2c3e50;
    font-size: 0.85rem;
    margin-bottom: 6px;
    line-height: 1.3;
}

.department-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.department-details span {
    font-size: 0.75rem;
    color: #666;
}
/* ==================== İLETİŞİM SAYFASI STİLLERİ ==================== */

.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* İletişim Formu */
.contact-form-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12, #e74c3c);
}

.contact-form-container h2 {
    background: rgba(255,255,255,0.1);
    padding: 25px 30px;
    margin: 0;
    color: white;
    font-size: 1.8rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.contact-form-container > p {
    padding: 20px 30px;
    margin: 0;
    color: rgba(255,255,255,0.9);
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.5;
    background: rgba(255,255,255,0.05);
}

.contact-form-container .application-form {
    padding: 30px;
    background: white;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.form-actions .submit-btn,
.form-actions .cancel-btn {
    flex: 1;
    margin: 0;
}

/* Harita ve Bilgi Bölümü */
.map-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
}

.map-info {
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-item i {
    color: #3498db;
    font-size: 1.2rem;
    margin-top: 2px;
    min-width: 20px;
}

.info-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1rem;
}

.info-item p {
    color: #666;
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.google-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.google-map iframe {
    display: block;
    border: none;
}

/* Responsive Düzen */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-container,
    .map-container {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-form-container h2,
    .map-container h2 {
        font-size: 1.5rem;
        padding: 20px;
    }
    
    .contact-form-container > p {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .contact-form-container .application-form,
    .map-container {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .info-item {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 30px 0;
    }
    
    .contact-form-container .application-form,
    .map-container {
        padding: 15px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .info-item i {
        align-self: center;
    }
}


/* İçerik Bölümü Stilleri */
.content-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.content-section h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.lead-text {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #7f8c8d;
}

/* Koşul Kartları Grid */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.condition-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.condition-card:hover {
    transform: translateY(-5px);
}

.condition-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.condition-card h3 i {
    margin-right: 10px;
    color: #3498db;
}

.condition-card p {
    color: #555;
    line-height: 1.6;
}

/* Bilgi Kutusu */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 25px;
    border-radius: 5px;
}

.info-box h4 {
    color: #1976d2;
    margin-bottom: 10px;
}

.info-box h4 i {
    margin-right: 10px;
}

.info-box p {
    color: #455a64;
    margin: 0;
}




/* ============================
   ÇOKLU REKLAM ALANI
   ============================ */

.advertisement-section {
    padding: 25px 0;
    margin: 0;
    background: transparent;
}

 SEÇENEK 1: Yan Yana Grid 
.ad-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.ad-item {
    display: flex;
}

/* SEÇENEK 2: Üst Üste Flexbox 
.ad-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}   */

/* Ortak Banner Stilleri */
.ad-banner {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: default;
}

/* Görsel Reklam */
.ad-banner.image-ad {
    background: white;
}

.ad-banner.image-ad img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

/* Video Reklam */
.ad-banner.video-ad {
    background: #000;
}

.ad-banner.video-ad video {
    width: 100%;
    height: auto;
    max-height: 200px;
    display: block;
    object-fit: cover;
}

/* Ortak Etiket Stili */
.ad-banner .ad-label {
    position: absolute;
    top: 12px;
    right: 12px;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ad-banner.image-ad .ad-label {
    background-color: rgba(52, 152, 219, 0.9); /* Mavi */
}

.ad-banner.video-ad .ad-label {
    background-color: rgba(231, 76, 60, 0.9); /* Kırmızı */
}

/* ============================
   MOBİL UYUMLULUK
   ============================ */

@media (max-width: 768px) {
    .advertisement-section {
        padding: 5px 0 !important; 
        margin-top: -10px !important; 
    }
    
    /* Grid: Mobilde üst üste */
    .ad-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Stack: Boşluğu azalt */
    .ad-stack {
        gap: 15px;
    }
    
    .ad-banner.image-ad img,
    .ad-banner.video-ad video {
        max-height: 100px;
        width: 100%;
    }
    
    .ad-banner .ad-label {
        top: 10px;
        right: 10px;
        padding: 4px 10px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .advertisement-section {
        padding: 2px 0 !important; 
        margin-top: -15px !important; 
    }
    
    .ad-grid,
    .ad-stack {
        gap: 12px;
    }
    
    .ad-banner.image-ad img,
    .ad-banner.video-ad video {
        max-height: 80px;
        width: 100%;
    }
    
    .ad-banner {
        border-radius: 8px;
    }
    
    .ad-banner .ad-label {
        top: 8px;
        right: 8px;
        padding: 3px 8px;
        font-size: 9px;
    }
}


/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 10px;
    color: #999;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: #2c3e50;
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 10px 0;
        margin-bottom: 20px;
    }
    
    .breadcrumb li {
        font-size: 12px;
    }
}