:root {
    --primaryColor: #7D062A;
    --primaryColor-rgb: 128, 0, 32;
    --header-h: 45px; /* varsayılan */

}

body, h1, h2, h3, h4, h5, h6, p, a, li, span, div {
    font-family: 'Roboto', sans-serif !important;
}

/* Chrome, Safari, Edge */
::-webkit-scrollbar {
  display: none;
}

/* Firefox */
html {
  scrollbar-width: none;   /* scrollbar yok */
  -ms-overflow-style: none; /* IE ve eski Edge */
}



.dropdown-item:focus,
.dropdown-item:active {
    background-color: var(--primaryColor) !important;
    color: white !important;
    box-shadow: none;
    outline: none;
}

/* Scroll için görsel iyileştirme */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #b8b8b8 transparent;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #a0a0a0;
    border-radius: 4px;
}

/* Yorum eklenince fade in animasyonu */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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


a:hover,
a:focus,
a:visited {
    text-decoration: none !important;
}

.btn-special {
    background-color: var(--primaryColor) !important;
    color: white !important;
}

.bg-special {
    background-color: var(--primaryColor);
    color: white;
}

.bg-special:hover {
    background-color: var(--primaryColor);
    color: white;
}

.bg-special:active {
    background-color: var(--primaryColor);
    color: white;
}

.text-special {
    color: var(--primaryColor);
}


.border-special {
    border: 1px solid var(--primaryColor);
}

.page-link.bg-special {
    background-color: var(--primaryColor);
    color: white !important;
}

.page-link.text-special {
    color: var(--primaryColor);
}

.page-link:hover {
    background-color: var(--primaryColor) !important;
    color: white !important;
}

.page-item.active .page-link {
    background-color: var(--primaryColor) !important;
    color: white !important;
}

.page-link:focus {
    outline: none !important;
    box-shadow: none !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primaryColor) !important;
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 32, 0.25) !important; /* Kırmızımsı shadow, isteğe göre yumuşatılabilir */
    outline: none !important;
}

.body:focus {
    border-color: var(--primaryColor) !important;
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 32, 0.25) !important; /* Kırmızımsı shadow, isteğe göre yumuşatılabilir */
    outline: none !important;
}

.body:active {
    border-color: var(--primaryColor) !important;
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 32, 0.25) !important; /* Kırmızımsı shadow, isteğe göre yumuşatılabilir */
    outline: none !important;
}

.btn-special:focus,
textarea:focus,
select:focus {
    border-color: var(--primaryColor) !important;
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 32, 0.25) !important; /* Kırmızımsı shadow, isteğe göre yumuşatılabilir */
    outline: none !important;
}

.form-control:focus {
    border-color: var(--primaryColor) !important;
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 32, 0.25) !important; /* Kırmızımsı shadow, isteğe göre yumuşatılabilir */
    outline: none !important;
}

.text-white {
    color: white;
}

.news-box {
    border: 2.5px solid var(--primaryColor);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04); /* hafif gölge */
    background-color: #fff;
    padding: 1em;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

@media (hover: none) {
    .news-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

.secondcard {
    background-color: #F8F9FA !important;
    /*border: 1px solid var(--primaryColor); !* Renk değiştirilebilir *!*/
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /* Hafif ve modern */
    backdrop-filter: blur(4px); /* opsiyonel: cam efekti */
    transition: all 0.3s ease-in-out;
}

.secondcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);

}

.row {
    overflow: visible !important;
}

.sticky-trend-box {
    position: sticky;
    top: 80px;
    z-index: 10;
}

.container, .news-box, .row {
    overflow: visible !important;
}

.navbar-bottom {
    border-bottom: 2px solid white;
}


.thirdcard {
    background-color: #F8F9FA !important;
    min-height: 20em !important;
    /*border: 1px solid var(--primaryColor); !* Renk değiştirilebilir *!*/
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /* Hafif ve modern */
    backdrop-filter: blur(4px); /* opsiyonel: cam efekti */
    transition: all 0.3s ease-in-out;
}

.thirdcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);

}

@media (hover: none) {
    .secondcard:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .thirdcard:hover {
        transform: none !important;
        box-shadow: none !important;

    }
}

.news-card {
    min-height: 18em !important;
    background-color: #F8F9FA !important;
    /*border: 1px solid var(--primaryColor); !* Renk değiştirilebilir *!*/
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /* Hafif ve modern */
    backdrop-filter: blur(4px); /* opsiyonel: cam efekti */
    transition: all 0.3s ease-in-out;
}


.custom-owl-nav-popular button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 5px;
    color: black !important;
    font-size: 22px;
    cursor: pointer;
}

.custom-owl-nav-popular button i {
    font-size: 24px;
    color: black;
}

.custom-owl-nav-popular button:hover i {
    color: #444;
}

.custom-nav button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 5px;
    color: var(--primaryColor) !important;
    font-size: 10px;
    cursor: pointer;
}

.custom-nav button i {
    font-size: 24px;
    color: var(--primaryColor) !important;
}

.custom-nav button:hover i {
    color: var(--primaryColor) !important;
}

.custom-owl-nav-trending button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 5px;
    color: white !important;
    font-size: 10px;
    cursor: pointer;
}

.custom-owl-nav-trending button i {
    font-size: 24px;
    color: white;
}

.custom-owl-nav-trending button:hover i {
    color: white;
}


body {
    overflow-x: hidden !important;
    width: 100% !important;
}


/* Hover ile dropdown açma */
.hover-dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

/* Menüye düzgün geçiş */
.dropdown-menu {
    transition: all 0.2s ease-in-out;
}

@media (min-width: 992px) {
    .hover-dropdown:hover .dropdown-menu {
        display: block;
    }
}

.tradingview-widget-container {
    max-width: 100%;
    overflow-x: auto;
}

.tradingview-widget-container__widget {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: auto;
}

@media (min-width: 992px) {
    .overflow-hidden {
        overflow: hidden !important;
    }
}

.overflow-hidden {
    overflow: hidden !important;
}


a.text-special:hover,
a.text-special:focus,
a.text-special:active {
    color: black; /* aynı rengi koru */
    text-decoration: none;
}

.pagination {
    flex-wrap: wrap;
    width: 100%;
}

@media (max-width: 576px) {
    .pagination .page-item {
        margin-bottom: 6px;
    }

    .news-now {
    margin-left: 1em !important;
        /*margin-right: 5em;*/
    }
    .latest-box{
        width: 7.5rem !important;
    }
}

.news-now {
    margin-left: -5em;
    /*margin-right: 5em;*/
}

.news-pad {
    margin-left: 0.6em !important;
}


.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -75vw;
    width: 75vw;
    max-width: 360px;
    height: 100vh;
    background-color: var(--primaryColor);
    z-index: 1050;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.open {
    left: 0;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    z-index: 1051;
}

.close-btn:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
}

.sidebar-overlay.active {
    display: block;
}

.btn-block {
    width: 100%;
}

@media (max-width: 576px) {
    .nav-link {
        padding-left: 0.6em !important;
        font-size: 1.1rem !important; /* yazıyı büyütür */
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* İnce beyaz çizgi */

    }

    .dropdown-menu a {
        font-size: 1rem;
    }
}

/* Kategori listesi açılırken/kapanırken animasyon */
#categoryList {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

/* Açıldığında max-height verilir */
#categoryList.show {
    max-height: 400px; /* ayarlanabilir */
    padding-top: 0.5em;
}

/* Kategori listesi scroll içeriği */
#categoryList {
    overflow-y: auto;
    max-height: 300px; /* içerik taşarsa scroll çıkar */
}

/* Ok ikonu animasyonu */
.rotate-icon {
    transition: transform 0.3s ease;
}

.rotate-icon.rotated {
    transform: rotate(180deg);
}


/* Başlangıçta kapalı */
.custom-dropdown {
    max-height: 0;
    overflow: hidden !important;
    opacity: 0;
    transition: all 0.3s ease !important;
}

/* Açıldığında */
.custom-dropdown.show {
    max-height: 500px; /* yeterli bir değer (içeriğe göre artırılabilir) */
    opacity: 1;
}


.news-now {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
}

.bord-bot {
    border-bottom: 2px solid white; /* İnce beyaz çizgi */
    overflow: hidden;
}

.news-now .item a {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.owl-carousel .item {
    padding-right: 1rem;
}


/**/

.smart-header {
  position: fixed;        /* sticky yerine fixed */
  top: 0; left: 0; right: 0;
  z-index: 999;
  transform: translateY(0);
  transition: transform .25s ease, box-shadow .2s ease;
  will-change: transform;
  background: var(--primaryColor);
}


/* aşağı kayarken gizle */
.smart-header.is-hidden {
  transform: translateY(-110%); /* biraz fazla, güvenli */
}

/* scroll gölgesi */
.smart-header.has-shadow {
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

/* layout kaymasını önlemek için spacer */
.header-spacer { height: var(--header-h, 55px); }

/* Her ihtimale karşı görünürken transform’u sıfırla */
.smart-header:not(.is-hidden) { transform: translateY(0) !important; }

@media (prefers-reduced-motion: reduce) {
  .smart-header { transition: none; }
}
