:root {
    --primary-red: #d7050f;
    --dark-red: #a3070f;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --text-dark: #212529;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: #f5f5f5;

}


.footer-custom {
    background: #232326;
    color: #eee;
    font-size: 15px;
}

.footer-custom .footer-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-custom .footer-list li {
    margin-bottom: 4px;
}

.footer-custom .footer-list a {
    color: #d1d1d1;
    text-decoration: none;
    transition: color 0.15s;
    font-size: 14px;
}

.footer-custom .footer-list a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

.footer-custom .footer-icon {
    color: #eee;
    font-size: 20px;
    margin-right: 10px;
    transition: color .18s;
}

.footer-custom .footer-icon:hover {
    color: var(--primary-red);
}

.footer-custom .fw-semibold {
    font-weight: 600 !important;
}

.footer-custom .border-bottom {
    border-color: #434343 !important;
}

.footer-whatsapp {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    max-width: 250px;
}

.footer-whatsapp img {
    box-shadow: 0 1px 6px rgba(0, 0, 0, .07);
}

.whatsapp-numbers div {
    font-weight: 600;
    font-size: 1.15em;
}

.whatsapp-numbers {
    text-align: right;
}

.social-icons a {
    text-decoration: none !important;
}

.divider-line {
    border: none;
    border-top: 1px solid #e6e6e6;
    margin: 0 0 0 0;
}

.top-ticker {
    background-color: var(--primary-red);
    color: white;
    font-size: 12px;
    padding: 6px 0;
}

.ticker-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.breaking-tag {
    background: #fff;
    color: #000;
    padding: 5px 7px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 7px;
    font-family: 'Inter', sans-serif;
    border-radius: 8px 0px;
}

.main-header {
    background: var(--primary-red);
    border-top: 1px solid rgba(255, 255, 255, .15)
}

.logo-section {
    display: inline-flex;
    /* Sadece içeriği kadar genişler */
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: transparent;
    /* Arka planı kaldır */
    padding: 0;
    /* Tüm paddingleri kaldır */
    margin: 0;
    /* Tüm marginleri kaldır */
    min-width: unset;
    max-width: unset;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    color: var(--primary-red);
    font-size: 18px;
}

.logo-text {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    font-family: 'Inter', sans-serif;
}

.search-section {
    max-width: 440px;

}

.search-input {
    width: 15vw;
    border-radius: 8px 8px 0 0;
    border: none;
    border-bottom: 1px solid rgb(255, 255, 255, 0.5);
    padding: 4px;
    font-size: 14px;
    background: transparent;
    box-shadow: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: white;
}

.search-input::placeholder {
    color: #fff;
    opacity: 1;
    font-weight: 500;
}

.search-input:focus {
    border-bottom: 2.5px solid var(--primary-red);
    box-shadow: none;
    outline: none;
}

.search-btn {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--dark-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscribe-btn {
    background: rgba(255, 255, 255, 0.19);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 16px;
    font-weight: 600;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}

.header-icon {
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    border-radius: 6px;
    padding: 8px;
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 7px;
    right: 8px;
    background: #ffc107;
    color: var(--primary-red);
    font-size: 10px;
    border-radius: 12px;
    padding: 2px 6px;
    font-weight: bold;
    min-width: 16px;
    line-height: 1;
}

/* Nav Bar */
.nav-menu {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1050;
    /* header'dan daha üstte olsun */
    box-shadow: 10px 1px 2px 0 rgba(0, 0, 0, .1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-items {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    transition: 0.2s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
    background: rgba(225, 6, 0, 0.05);
}

/* Döviz barı */
.currency-bar {
    color: white;
    height: 100%;
    background: transparent;
    width: 100%;
}

.currency-item {
    border-left: 1px solid rgba(255, 255, 255, .15);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 110px;
    font-weight: 700;
    text-align: center;
}

.currency-title {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.90;
    margin-bottom: -1px;
}

.currency-value {
    color: white;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1px;
}

.currency-up {
    color: #fff;
    font-size: 12px;
    margin-left: 2px;
}

.currency-down {
    color: #fff;
    font-size: 12px;
    margin-left: 2px;
}

.currency-change-up {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.currency-change-down {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.nav-link i {
    font-weight: 600;
}

.weather-widget {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;

    min-width: 155px;
    max-width: 210px;
    margin-left: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #222;
    transition: box-shadow 0.15s;
}


.weather-location {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.weather-temp {
    font-weight: 600;
    color: #00a2e2;
}

.weather-detail {
    margin-top: -5px;
    display: flex;
    align-items: center;
}

.weather-status {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.weather-icon {
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.weather-arrow {
    font-size: 12px;
    color: #b8b8b8;
    margin-left: 1px;
    margin-top: 1px;
}


.breaking-typewriter {
    font-weight: bold;
}

.currency-up,
.currency-down {
    animation: arrowMove 0.7s infinite alternate;
}

@keyframes arrowMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-4px);
    }
}


.currency-item:hover {
    transform: scale(1.10);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.13);
    transition: 0.25s;
    z-index: 2;
}

.currency-down {
    animation: arrowMoveDown 0.7s infinite alternate;
}

@keyframes arrowMoveDown {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(4px);
    }
}

.currency-value.down {
    animation: pulseDown 0.7s infinite alternate;
}

@keyframes pulseDown {

    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-4px);
    }
}

.social-icons {
    gap: 22px;
    /* ikonlar arası boşluk */
    font-size: 1rem;
    /* ikonları büyütür */
    padding-left: 18px;
    /* border ile arasında az mesafe */
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    height: 32px;
    /* ortalamak için, ayarlanabilir */
    margin-left: 14px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.13s;
    opacity: 0.93;
}

.social-icons a:hover {
    transform: scale(1.19);
    opacity: 1;
    text-shadow: 0 1px 6px #00000030;
}


.offcanvas-header {
    border-bottom: 1px solid #f0f0f0;
}

.offcanvas .btn-light {
    background: #f5f5f5;
    font-weight: 600;
    border-radius: 8px;
}

.offcanvas .list-group-item {
    padding: 10px 6px;
    font-size: 16px;
}

.offcanvas .btn-danger {
    border-radius: 8px;
    font-weight: 700;
}

#scrollToTopBtn {
    animation: arrowMove 0.7s infinite alternate;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 3000;
    display: none;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    transition: opacity 0.25s;
    opacity: 0.93;
}

#scrollToTopBtn:hover {

    opacity: 1;
    box-shadow: 0 4px 24px #d7050f44;
}

.navbar .dropdown-menu {
    min-width: 300px;

    border-radius: 4px;
    margin-top: 8px;
}


.navbar .dropdown-menu .dropdown-menu {
    left: 100%;
    top: 0;
    margin-top: -7px;
    margin-left: 2px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    display: none;
    position: absolute;
    left: 98%;
    top: 0;
}

.dropdown-submenu:hover>.dropdown-menu,
.dropdown-submenu:focus-within>.dropdown-menu {
    display: block;
}

.dropdown-menu>.dropdown-submenu>.dropdown-item:after {

    float: right;
    margin-left: 10px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .logo-text {
        font-size: 19px;
    }

    .nav-items {
        flex-wrap: wrap;
    }

    .nav-container {
        justify-content: flex-start;
    }

    .footer-custom .row-cols-md-5>.col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-custom .footer-whatsapp {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }

    .footer-custom .footer-whatsapp .d-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .footer-custom .whatsapp-numbers {
        align-items: center !important;
        text-align: center !important;
    }

    .footer-custom .fw-semibold {
        text-align: center !important;
    }

    .footer-custom .d-flex.align-items-center.gap-2.mb-2 {
        justify-content: center !important;
    }

    .footer-custom .d-flex.align-items-center.gap-2 {
        justify-content: center !important;
    }

    .footer-custom .d-flex.align-items-center.gap-2 a {
        margin-bottom: 8px;
    }

    .accordion-button {
        color: #fff;
        background: transparent;
        font-weight: 600;
    }

    .accordion-button:not(.collapsed) {
        background: #34343a;
        color: #fff;
    }

    .accordion-item {
        border: none;
    }

    /* Accordion Başlık Okları Beyaz */
    .accordion-button::after {
        filter: brightness(0) invert(1);
        /* svg arrow'u beyaz yapar */
    }

    /* Accordion button beyaz text, arka plan transparan, border yok */
    .accordion-button,
    .accordion-button.collapsed {
        color: #fff !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Accordion başlık kapalıyken border yok */
    .accordion-item {
        border: none !important;
        background: transparent !important;
    }

    /* Sadece açık olan başlıkta alt border */
    .accordion-button:not(.collapsed) {
        background: transparent !important;
        color: #fff !important;
        border-bottom: 1.5px solid #444 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .accordion-button:not(.collapsed):after {
        filter: brightness(0) invert(1);
    }

    .accordion-body {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        background: transparent;
    }

    .accordion {
        background: transparent;
    }

    /* Sosyal medya ikonları renkli ve hover efekti */
    .footer-icon {
        color: #fff !important;
        transition: color .15s, transform .13s;
        font-size: 22px !important;
        opacity: 0.90;
    }

    .footer-icon:hover {
        color: #ffc107 !important;
        /* Sarı renk */
        transform: scale(1.16);
        opacity: 1;
    }

    .footer-list a {
        color: #fff !important;
        font-size: 15px;
        opacity: 0.95;
        transition: color .13s;
    }

    .footer-list a:hover {
        color: #ffc107 !important;
        text-decoration: underline;
    }
}

@media (max-width: 991px) {
    .search-section {
        order: 3;
        flex-basis: 100%;
        margin: 10px 0 0 0;
        max-width: none;
    }

    .logo-text {
        font-size: 22px;
    }

    .nav-link {
        padding: 12px 11px;
        font-size: 13px;
    }

    .weather-widget {
        padding: 6px 8px 6px 10px;
        min-width: 120px;
        font-size: 13px;
    }

    .weather-location {
        font-size: 12px;
    }

    .currency-marquee {
        overflow: hidden;
        position: relative;
    }

    .marquee-inner {
        display: flex;
        flex-wrap: nowrap;
        will-change: transform;
        animation: marquee-move 19s linear infinite;
        /* Hızı burada ayarla */
    }

    .currency-item {
        min-width: 90px;
    }

    .currency-marquee:hover .marquee-inner,
    .currency-marquee:active .marquee-inner {
        animation-play-state: paused !important;
    }


    @keyframes marquee-move {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }



    .navbar .dropdown-menu,
    .navbar .dropdown-menu .dropdown-menu {
        position: static !important;
        float: none;
        left: auto;
        box-shadow: none;
        margin-top: 0;
    }

    .dropdown-menu>.dropdown-submenu>.dropdown-menu {
        position: static !important;
    }



    .top-ticker {
        display: none !important;
    }

    .nav-menu {
        display: none !important;
    }

    .mobile-currency-bar {
        display: flex !important;
    }

    .main-center-content {
        display: none !important;
    }

    .mobile-currency-row {
        display: flex !important;
    }

    .currency-scroll::-webkit-scrollbar {
        display: none;
    }

    .currency-scroll {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .currency-item {
        min-width: 90px;
        text-align: center;
        border-left: 1px solid #eee;
        color: #d7050f;
        font-weight: 700;
        font-size: 13px;
        background: none;
    }

    .currency-item:first-child {
        border-left: none;
    }

    .currency-value {
        color: #222;
        font-size: 16px;
        font-weight: bold;
    }

    .currency-title {
        font-size: 10px;
        color: #d7050f;
        font-weight: 600;
        letter-spacing: .5px;
    }

    .weather-widget {
        min-width: 90px;
        font-size: 13px;
        background: none;
        box-shadow: none;
        margin-left: 6px;
        color: #222;
    }

    .weather-location {
        font-weight: 700;
    }

    .weather-temp {
        color: #00a2e2;
        font-weight: 700;
    }

    .weather-status {
        color: #888;
        font-size: 12px;
    }

}

@media (min-width: 992px) {
    .mobile-currency-bar {
        display: none !important;
    }

    .mobile-currency-row {
        display: none !important;
    }
}