/* ============================= */
/* MAIN NAV & HEADER GÜNCELLEME */
/* ============================= */

    .hero {
        background: linear-gradient(90deg, #839de5, #3d619b);
        color: white;
        padding: 70px 0;
        text-align: center;
        
    }

    .hero h1 {
      
        margin: 0 0 20px 0;
        
    }

    .hero p {
        margin: 0 0 30px 0;
        color: rgba(255,255,255,0.9);
    }

    .btn {
        display: inline-block;
        padding: 12px 20px;
        margin: 10px;
        border-radius: 12px;
        font-weight: 700;
        text-decoration: none;
        margin:10px;
        transition: transform .2s ease, opacity .2s ease;
    }

.disabled-link {
    pointer-events: none;
    opacity: 0.6;
    cursor: default;
    text-decoration: none;
    color: #555;
}

/* HEADER (arka plan biraz açıldı) */
.site-header {
    background: linear-gradient(90deg, #172554, #839de5);  */
    padding: 0 25px;
    height:90px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* NAV CONTAINER */
.nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.logo img {
    width: 60px;
    height: 60px;
    display: block;
}

/* MAIN NAV */
.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

/* Menü linkleri */
.main-nav a,
.dropbtn {
    color: #f1f5f9;
    text-decoration: none;
    font-size: 15px;
    padding: 9px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap; /* ALT SATIRA KAYMAYI ENGELLER */
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hover */
.main-nav a:hover,
.dropbtn:hover {
    background: #3b82f6;
    color: #fff !important;
    text-decoration:none;
}


/* Aktif Menü */
.main-nav .active {
    background: #3d619b;
    color: #e5e7eb !important;
}

/* DROPDOWN */
.dropdown {
    position: relative;
}

/* Ok ikonunu sağa al */
.dropbtn::after {
    content: "▾";
    font-size: 12px;
    margin-left: 6px;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e293b;
    display: none;
    flex-direction: column;
    min-width: 160px;
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.dropdown-menu a {
    padding: 10px 16px;
    font-size: 14px;
    transition: 0.2s;
    white-space: nowrap;
    
}

.dropdown-menu a:hover {
    background: #3b82f6;
    color: #e5e7eb;
    text-decoration:none;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

/* MOBIL */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
}

@media (max-width: 768px) {
    
    
    .logo img {
       margin-left:20px;
    }
    
    
    p {
        font-size: 0.8rem;
    }
    
    ul {
        
        font-size: 0.8rem;
    }
    
    .hero h1 {
      
        font-size:1.4rem;
    }
    
    .hero p {
      
        font-size:1rem;
    }
    
    

    
    .faq-item h3 {
    
        font-size: 1rem;
       
    }
    .related-posts h3 {
        font-size: 1rem;
        
    }

    .faq-item p {
        
        font-size: 0.8rem;
       
     
    }
    
    .btn{
        font-size:0.8rem;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        right: 0;
        background: #172554;
        flex-direction: column;
        width: 240px;
        padding: 20px;
        display: none;
        gap: 15px;
        border-left: 1px solid rgba(255,255,255,0.08);
    }

    .main-nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
        margin-right: 20px;
    }

    .dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        box-shadow: none;
    }
    
    
    .search-box {
        flex-direction: column;
    }

    .search-results {
        position: relative;
        top: 10px;
    }
    
    
    .searchable-table,
    .searchable-table th,
    .searchable-table td {
        border: 1px solid #d1d5db;
        border-collapse: collapse;
        font-size:11px;
    
    }
    
    .myTable, .myTable th, .myTable td {
    border: 1px solid #d1d5db;
    border-collapse: collapse;
    font-size: 11px;
    }
}


/* Wrapper */
.search-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

/* 力kon */
.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1rem;
    opacity: 0.7;
}

/* Input */
.table-search {
    width: 100%;
    border-radius: 9999px;
    padding: 10px 18px;
    padding-left: 42px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.table-search::placeholder {
    color: #9ca3af;
}

.table-search:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}



/* İlgili Yazılar */
.related-posts {
    margin-top: 50px;
    padding: 25px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    border: 1px solid #f1f1f1;
}

.related-posts h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 4px solid #2563eb;
    padding-left: 12px;
}

.related-table-wrapper {
    overflow-x: auto;
}

.related-table {
    width: 100%;
    border-collapse: collapse;
}

.related-table tr {
    transition: background 0.2s ease;
}

.related-table tr:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.related-table td {
    padding: 12px 10px;
}

.related-table a {
    text-decoration: none;
    color: #111827;
    font-weight: 500;
    display: block;
    transition: 0.2s ease;
}

.related-table tr:hover {
    background: #f8fafc;
}

.related-table a:hover {
    color: #2563eb;
    padding-left: 6px;
}


/* İlgili Yazılar Son*/

#backToTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;

    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    outline: none;
    cursor: pointer;
    display: none; /* başta gizli */
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    font-size: 24px;

    /* Arka plan transparan favicon */
    background-image: url('/favicon.ico');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60%;

    /* İsteğe bağlı hover efekti */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#backToTop:hover {
    background-color: #0066cc;
    transform: translateY(-3px);
}


/* Mobil uyum */
@media (max-width: 600px) {
    .related-table th,
    .related-table td {
        padding: 10px 12px;
        font-size: 14px;
    }

    .related-universities h3 {
        font-size: 20px;
    }
}


/* Responsive table */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.searchable-table {
    min-width: 100%;
    width: 100%;
}

.searchable-table,
.searchable-table th,
.searchable-table td {
    border: 1px solid #d1d5db;
    border-collapse: collapse;

}





    /* ------------------------------
       GENEL SAYFA DÜZENİ
    ------------------------------ */
    .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 0;
    }

    .section-title {
       
        margin: 40px 0 30px;
    }
    
    .section-title h2 {
        display: inline-block;
        padding: 0 25px;
        font-size: 33px;
        font-weight: 600;
        border-left: 4px solid #2563eb;
        font-family: auto;
        line-height: 1.4;
        color:#b12727;
    }

    .section-title p {
        margin-top: 8px;
        font-size: 14px;
        padding: 0 25px;
        color: #b12727;
        
    }
    
    .icerik-alani {
    width: 100%;
    max-width: 1200px; /* container ile aynı genişlik */
    margin: 0 auto;    /* ortala */
    padding: 0 15px;   /* soldan ve sağdan boşluk */
}
    
    

    /* ------------------------------
       GRID (RESPONSIVE)
    ------------------------------ */
    .grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    @media (max-width: 992px) {
        .grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 600px) {
        .grid {
            grid-template-columns: 1fr;
        }
    }

    /* ------------------------------
       KART STİLİ
    ------------------------------ */
    .card {
        background: #f1f5f9;
        border-radius: 16px;
        box-shadow: 0 10px 25px #c9d3e3;
        padding: 20px;
        transition: transform .2s ease, box-shadow .2s ease;
        border: 1px solid #e5e7eb;
        text-decoration: none;
        color: inherit;
        display: block;
        overflow: hidden;
    }

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 40px #a9bcdd;
    }

    .card h3 {
        font-size: 18px;
        margin: 0 0 10px 0;
        font-weight: 700;
        color: #111827;
    }

    .card p {
        margin: 0;
        color: #b12727;
        font-size: 14px;
        
    }

    .badge {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 600;
        color: #111827;
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        margin-right: 8px;
    }

    .badge.green { background: #d1fae5; border-color: #34d399; }
    .badge.blue  { background: #dbeafe; border-color: #60a5fa; }
    .badge.red   { background: #fee2e2; border-color: #f87171; }

    .card-footer {
        margin-top: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #e5e7eb;
        padding-top: 14px;
    }

    .card-footer span {
        font-size: 13px;
        color: #b12727;
        font-weight: 600;
        font-family:auto:;
    }

    .card-footer small {
        color: #0066cc;
        
    }
    
    .kpss-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.kpss-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

    

    .btn.white {
        background: #fff;
        color: #1f2937;
    }

    .btn.yellow {
        background: #f59e0b;
        color: #111827;
    }

    .btn:hover {
        transform: translateY(-2px);
        opacity: 0.95;
        
    }

    /* FAQ */
    .faq {
        background: #f9fafb;
        padding: 60px 0;
    }

    .faq-item {
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        padding: 18px;
        margin-bottom: 12px;
        background: #fff;
    }

    .faq-item h3 {
        margin: 0 0 8px 0;
      
    }

    .faq-item p {
        margin: 5px;
        line-height: 1.6;
    }


 /* TREND */
.trend span {
    font-weight: 700;
    font-size: 16px;
}

.trend .up {
    color: #16a34a; /* yeşil */
}

.trend .down {
    color: #ef4444; /* kırmızı */
}

.trend .flat {
    color: #6b7280;
}
 /* TREND son*/
 
 
 
 /*menü arama */
 /* SEARCH */
.search-form {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    margin-top: 10px;
    
}

.search-form input {
    padding: 6px 8px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
}

.search-form button {
    padding: 6px 10px;
    border: none;
    background: #2563eb;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}
/*menü arama son */



/* BREADCRUMB */
.breadcrumb {
    font-size: 14px;
    margin: 15px 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}


/* ========================= */
/* GLOBAL SEARCH */
/* ========================= */

.site-search {
    background: #f1f5f9;
    position: relative;
}

.search-box {
    display: flex;
    max-width: 98%;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 16px 16px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    border: 2px solid #a3c4f3; /* Hafif mavi, tüm kenarlar aynı */
    background-color: #fff;
}

/* Odaklandığında */
.search-box input:focus {
    border-color: #3b82f6;           /* Canlı mavi border */
    box-shadow: 0 4px 12px rgba(59,130,246,0.2); /* Hafif mavi glow */
    background-color: #f9fafb;       /* Hafif açık arka plan */
}


/* DROPDOWN RESULTS */

.search-results {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 999;
}

.search-results a:hover {
    text-decoration: none;  /* hover olunca da altı çizilmesin */
}

.search-title {
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 700;
    background: #f1f5f9;
    color: #3d619b;
}

.search-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: 0.2s ease;
    font-size: 13px;
}

.search-item:hover {
    background: #ccdefe;
    text-decoration: none;
}

.search-item a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    display: block;
}



/*FOOTER*/


.site-footer {
    background: linear-gradient(135deg, #3d619b, #fff);
    color: #fff;
    padding: 60px 20px 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #b12727;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #3d619b;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #b12727;
    padding-left: 5px;
}

.footer-seo {
    margin-top: 40px;
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    text-align: center;
}

.footer-bottom {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.footer-bottom .brand {
    color: #b12727;
    font-weight: 600;
}

/*FOOTER*/
