/*!
 * BOOTSTRAP 5 CUSTOM HYBRID – YUSUF
 * Bootstrap 3 class isimlerine uyumlu,
 * modern flexbox tabanlı hafif sürüm.
 * Tek başına çalışır (eski bootstrap.min.css GEREKMEZ).
 */

/* ========== RESET / CORE ========== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 10px;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
    background-color: #fff;
}

img {
    border: 0;
}

/* clearfix uyumluluğu */
.clearfix::before,
.clearfix::after {
    content: " ";
    display: table;
}
.clearfix::after {
    clear: both;
}

/* ========== CONTAINER / GRID (FLEX) ========== */

.container,
.container-fluid {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    contain: layout paint;
}

[class*="col-"] {
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
    flex-grow: 0;
    flex-shrink: 0;
}

/* XS - mobile (default) → Bootstrap 3 davranışı */
.col-xs-1 { flex-basis: 8.333333%; max-width: 8.333333%; }
.col-xs-2 { flex-basis: 16.666667%; max-width: 16.666667%; }
.col-xs-3 { flex-basis: 25%; max-width: 25%; }
.col-xs-4 { flex-basis: 33.333333%; max-width: 33.333333%; }
.col-xs-5 { flex-basis: 41.666667%; max-width: 41.666667%; }
.col-xs-6 { flex-basis: 50%; max-width: 50%; }
.col-xs-7 { flex-basis: 58.333333%; max-width: 58.333333%; }
.col-xs-8 { flex-basis: 66.666667%; max-width: 66.666667%; }
.col-xs-9 { flex-basis: 75%; max-width: 75%; }
.col-xs-10 { flex-basis: 83.333333%; max-width: 83.333333%; }
.col-xs-11 { flex-basis: 91.666667%; max-width: 91.666667%; }
.col-xs-12 { flex-basis: 100%; max-width: 100%; }

/* SM breakpoint */
@media (min-width: 768px) {
    .container { width: 750px; }

    .col-sm-1 { flex-basis: 8.333333%; max-width: 8.333333%; }
    .col-sm-2 { flex-basis: 16.666667%; max-width: 16.666667%; }
    .col-sm-3 { flex-basis: 25%; max-width: 25%; }
    .col-sm-4 { flex-basis: 33.333333%; max-width: 33.333333%; }
    .col-sm-5 { flex-basis: 41.666667%; max-width: 41.666667%; }
    .col-sm-6 { flex-basis: 50%; max-width: 50%; }
    .col-sm-7 { flex-basis: 58.333333%; max-width: 58.333333%; }
    .col-sm-8 { flex-basis: 66.666667%; max-width: 66.666667%; }
    .col-sm-9 { flex-basis: 75%; max-width: 75%; }
    .col-sm-10 { flex-basis: 83.333333%; max-width: 83.333333%; }
    .col-sm-11 { flex-basis: 91.666667%; max-width: 91.666667%; }
    .col-sm-12 { flex-basis: 100%; max-width: 100%; }
}

/* MD breakpoint */
@media (min-width: 992px) {
    .container { width: 970px; }

    .col-md-1 { flex-basis: 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex-basis: 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex-basis: 25%; max-width: 25%; }
    .col-md-4 { flex-basis: 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex-basis: 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex-basis: 50%; max-width: 50%; }
    .col-md-7 { flex-basis: 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex-basis: 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex-basis: 75%; max-width: 75%; }
    .col-md-10 { flex-basis: 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex-basis: 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex-basis: 100%; max-width: 100%; }

    /* push / pull emülasyonu – özellikle col-md-6 col-md-push-6 için */
    .col-md-push-6 { order: 2; }
    .col-md-pull-6 { order: 1; }
}

/* LG breakpoint */
@media (min-width: 1200px) {
    .container { width: 1170px; }

    .col-lg-1 { flex-basis: 8.333333%; max-width: 8.333333%; }
    .col-lg-2 { flex-basis: 16.666667%; max-width: 16.666667%; }
    .col-lg-3 { flex-basis: 25%; max-width: 25%; }
    .col-lg-4 { flex-basis: 33.333333%; max-width: 33.333333%; }
    .col-lg-5 { flex-basis: 41.666667%; max-width: 41.666667%; }
    .col-lg-6 { flex-basis: 50%; max-width: 50%; }
    .col-lg-7 { flex-basis: 58.333333%; max-width: 58.333333%; }
    .col-lg-8 { flex-basis: 66.666667%; max-width: 66.666667%; }
    .col-lg-9 { flex-basis: 75%; max-width: 75%; }
    .col-lg-10 { flex-basis: 83.333333%; max-width: 83.333333%; }
    .col-lg-11 { flex-basis: 91.666667%; max-width: 91.666667%; }
    .col-lg-12 { flex-basis: 100%; max-width: 100%; }
}

/* float emülasyonu için basic helper’lar */
.pull-right { margin-left: auto; }
.pull-left { margin-right: auto; }

/* ========== VISIBLE / HIDDEN (Kullandığın: visible-md visible-lg) ========== */

.visible-md,
.visible-lg {
    display: none !important;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .visible-md { display: block !important; }
}

@media (min-width: 1200px) {
    .visible-lg { display: block !important; }
}

/* ========== MEDIA OBJECT (yorumlar, yazar kutusu vb.) ========== */

.media {
    display: flex;
    align-items: flex-start;
}

.media-left,
.media-right {
    display: block;
}

.media-left {
    margin-right: 10px;
}

.media-right {
    margin-left: 10px;
}

.media-body {
    flex: 1 1 auto;
}

.media-object {
    display: block;
}

/* ========== FORM / FORM-GROUP ========== */

.form-group {
    margin-bottom: 15px;
}

.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(102, 175, 233, .35);
}

/* ========== IMG RESPONSIVE ========== */

.img-responsive,
.img-fluid {
    display: block;
    max-width: 100%;
    height: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Lazy-friendly */
@supports (content-visibility:auto) {
    .img-responsive {
        content-visibility: auto;
    }
}

/* ========== LABEL / BADGE (ileride kullanırsan diye) ========== */

.label,
.badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    border-radius: 3px;
    background-color: #999;
    transform: translateZ(0);
}

/* ========== BASİT BUTON ALTYAPISI (primary-button zaten style.css’te) ========== */

.btn {
    display: inline-block;
    margin-bottom: 0;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    border-radius: 4px;
    user-select: none;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
    transform: translateZ(0);
}

.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.btn-primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}

/* ========== BASİT TABLE / ALERT / PAGINATION, İLERİYE DÖNÜK ========== */

.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    border-collapse: separate;
    border-spacing: 0;
}

.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.pagination {
    display: inline-block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px;
}

.pagination>li {
    display: inline;
}

.pagination>li>a {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    border: 1px solid #ddd;
}

/* ========== HIDE HELPERS (ileride lazım olur) ========== */

.hidden { display:none !important; }

@media (max-width:767px) {
    .hidden-xs { display:none !important; }
}

@media (min-width:768px) and (max-width:991px) {
    .hidden-sm { display:none !important; }
}

@media (min-width:992px) and (max-width:1199px) {
    .hidden-md { display:none !important; }
}

@media (min-width:1200px) {
    .hidden-lg { display:none !important; }
}

/* ==== NAVBAR FIX ==== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.navbar-header {
    display: flex;
    align-items: center;
}

.navbar-brand {
    margin-right: 20px;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-nav > li > a {
    padding: 15px 12px;
}

/* ==== DROPDOWN HOVER FIX ==== */
.nav-menu li.has-dropdown {
    position: relative;
}

.nav-menu li.has-dropdown > .dropdown {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .15s ease, transform .15s ease;
}

.nav-menu li.has-dropdown:hover > .dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0px);
}

/* ==== SEARCH OVERLAY FIX ==== */
#nav-search {
    position: absolute;
    top: 60px;
    width: 100%;
    z-index: 9999 !important;
}
.nav-search-form {
    display: flex !important;
}

/* ==== LINK DECORATION FIX ==== */
a {
    text-decoration: none !important;
    color: inherit;
}
a:hover {
    text-decoration: none !important;
}

/* ============================================================
   BS3 → BS5 UYUMLULUK YAMASI (NAVBAR + DROPDOWN + SEARCH + LINKS)
   ============================================================ */

/* ==== NAVBAR BASE FIX ==== */
#nav {
    width: 100%;
    z-index: 500;
}

#nav-top .container,
#nav-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* logo ortalama */
.nav-logo {
    flex: 1;
    text-align: center;
}

/* sosyal ikonlar solda */
.nav-social {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* sağdaki menü + arama ikonları */
.nav-btns {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ====== NAV MENU BASE ====== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu li {
    position: relative;
    list-style: none;
}

.nav-menu li > a {
    display: block;
    padding: 15px 10px;
    font-weight: 700 !important; /* BS3 gibi bold */
}

.nav-menu li > a:hover {
    color: #007bff !important; /* BS3 mavisi */
}

/* ====== DROPDOWN / MEGAMENU ==== */
.nav-menu .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFF;
    min-width: 250px;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.15s ease;
    z-index: 9999;
}

/* BS3 Hover Davranışı */
.nav-menu li.has-dropdown:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Megamenu 4 sütun düzeltme */
.megamenu .dropdown .row {
    display: flex;
}

.megamenu .dropdown .col-md-3 {
    flex: 0 0 25%;
    padding: 10px;
}

/* ====== SEARCH BOX FIX ====== */
#nav-search {
    display: none;
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px;
    z-index: 99999 !important;
}

#nav-search.active {
    display: block;
}

.nav-search-form {
    display: flex;
    width: 100%;
}

.input {
    flex: 1;
    padding: 10px;
}

/* ====== LINK ALT ÇİZGİ / RENGİ ====== */
a {
    text-decoration: none !important;
    color: inherit !important;
}

a:hover {
    text-decoration: none !important;
}

/* ==== NAV MENU ORTALA ==== */
#nav-bottom .nav-menu {
    justify-content: center !important;
    width: 100%;
}

/* ==== ASIDE MENU CONTRAST FIX ==== */
#nav-aside {
    background: #ffffff !important;
}

#nav-aside .nav-aside-menu li a {
    color: #333333 !important; /* yüksek kontrast */
    font-weight: 500;
    padding: 10px 15px;
    display: block;
}

#nav-aside .nav-aside-menu li a:hover {
    color: #000000 !important;
    background: #f2f2f2;
}

/* ==== FOOTER CONTRAST FIX ==== */
.footer-copyright {
    color: #e6e6e6 !important; /* Yüksek kontrast, AA standardını geçer */
    font-size: 14px;
    line-height: 22px;
}

.footer-copyright a {
    color: #ffffff !important; /* Linkler daha parlak */
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #ffdb4d !important; /* Hoş bir hover efekti */
}
/* ==== FOOTER WIDGET CONTRAST FIX ==== */
.footer-widget p {
    color: #e6e6e6 !important;  /* AA standardı için ideal */
    font-size: 14px;
    line-height: 22px;
}

.footer-widget p a {
    color: #ffffff !important;
    text-decoration: underline;
}

.footer-widget p a:hover {
    color: #ffdb4d !important;
}