/* static.css */

/* Google Fonts üzerinden Open Sans fontunu dahil ediyoruz */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

/* Genel Stil Ayarları */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

/* Linklerin Varsayılan Stili */
a {
    text-decoration: underline;
    color: inherit;
}

    /* Linklerin Üzerine Gelindiğinde (Hover) */
    a:hover {
        text-decoration: none; /* Alt çizgiyi kaldır */
        opacity: 0.7; /* Metni hafif soldur */
    }

    /* Linklere Tıklandığında (Active ve Focus) */
    a:active, a:focus {
        text-decoration: none; /* Alt çizgiyi kaldır */
        
    }

/* Mobil Menü (Offcanvas) Arka Plan ve Yazı Rengi */
.offcanvas {
    background-color: white; /* Arka plan rengi beyaz */
    color: var(--header-font-color);
}

    .offcanvas .offcanvas-header {
        background-color: white;
    }

    .offcanvas .offcanvas-title {
        color: var(--header-font-color);
    }

    .offcanvas a, .offcanvas h5, .offcanvas li {
        color: var(--header-font-color);
    }

    /* Offcanvas Menüdeki Liste Öğelerinin Arka Plan Rengi */
    .offcanvas .list-group-item {
        background-color: white;
        border: none;
    }

        .offcanvas .list-group-item:hover {
            background-color: #f1f1f1;
        }

/* Arama Butonu Font Rengi */
button.btn[data-bs-toggle="modal"],
button.btn[data-bs-toggle="modal"] i {
    color: var(--header-font-color);
}

/* Buton Arka Planı ve Kenarlığı */
button.btn {
    background-color: transparent;
    border: none;
}

/* Header Yazı Rengi ve Arka Plan Rengi */
header {
    background-color: var(--header-bg-color);
    color: var(--header-font-color);
}

    header a, header span, header div, header button {
        color: var(--header-font-color);
    }
.nav-wrapper {
    background-color: var(--kategoriarkaplanrengi);
}
/* Kategori Linkleri */
nav {
   
}

    nav a.nav-link {
        color: var(--kategorifontrengi);
        width:auto;
    }

        nav a.nav-link:hover {
            text-decoration: none;
            opacity: 0.7; /* Metni hafif soldur */
            
        }

.yanayar {
    margin-left: var(--solbosluk);
    margin-right: var(--sagbosluk);
}

@media (max-width: 768px) { /* Mobil cihazlar için genişlik sınırı */
    .yanayar {
        margin-left: 0px;
        margin-right: 0px;
    }
}
.acilirmenu {
    min-height: 300px;
    margin-top: 2px;
    width: 100%; /* Kapsayıcının genişliğini alır */
}
.kategori-link {
    color: var(--kategorifontrengi); /* Veya istediğiniz bir renk */
    text-decoration: none;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: bold;
    white-space: nowrap; /* Metnin satır kaydırmasını engeller */
    flex-shrink: 0; /* Öğenin daralmasını engeller */
    display: block;
    padding: 0 0.8rem; /* Linkler arasında boşluk (isteğe bağlı) */
    float:left;
}

    .kategori-link:hover {
        text-decoration: none;
        color: var(--kategorifontrengi);
        opacity: 0.7; /* Metni hafif soldur */
    }

#alt-menu-button {
    background-color: transparent;
    border: none;
    color: var(--kategorifontrengi);
}
/* Açılır Alanın Stili */
#alt-menu-content {
    background-color: #f8f9fa; /* İstediğiniz bir arka plan rengi */
    width: 100%;
    position: absolute;
    top: 100%; /* Nav'ın hemen altında */
    left: 0;
    z-index: 999; /* Üstte görünmesi için yüksek bir değer */
    display: none; /* Başlangıçta gizli */
    overflow: hidden;
    overflow-x: auto;
}

    /* Açılır Alan Göründüğünde */
    #alt-menu-content.show {
        display: block;
    }

    /* Açılır Alanın Animasyonu (İsteğe Bağlı) */
    #alt-menu-content.show {
        animation: fadeIn 0.3s forwards;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Footer Yazı Rengi */
footer {
    color: var(--footer-font-color);
}

    footer a {
        color: var(--footer-font-color);
    }

/* Menü Açma/Kapatma Butonları */
button.btn {
    color: var(--header-font-color);
    background-color: transparent;
    border: none;
}


.logoayar {
    height: 100px;
}
@media (max-width: 767.98px) {
    .logoayar {
        height: 100px; /* Önceki 40px değerinin %10 artırılmış hali */
    }
}


/* Kategoriler alanı için yeni stiller */
nav .d-flex.flex-nowrap {
    min-height: 50px; /* Yüksekliği artırıyoruz */
    align-items: center; /* Dikey ortalama */
    
    justify-content: flex-start; /* Yatayda soldan hizala */
}
/* Mobil Stil */
@media (max-width: 767.98px) {
    nav .d-flex.flex-nowrap {
        min-height: 50px; /* Yüksekliği artırıyoruz */
        align-items: center; /* Dikey ortalama */
        justify-content: flex-start; /* Mobilde soldan hizala */
    }
}
/* Kategoriler Menüsü için Scrollbar Gizleme */
.overflow-auto::-webkit-scrollbar {
    display: none;
}

.overflow-auto {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Son Dakika Haberleri için Scrollbar Gizleme */
.son-dakika-haberleri::-webkit-scrollbar {
    display: none;
}

.son-dakika-haberleri {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Offcanvas Genişliği */
@media (max-width: 767.98px) {
    .offcanvas-start {
        width: 100% !important;
    }
}

@media (min-width: 768px) {
    .offcanvas-start {
        width: 300px !important;
    }
}

/* Mobil Menü */
#mobil-menu {
    z-index: 1050;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
}

    #mobil-menu.show {
        transform: translateX(0);
    }

/* Son Dakika Haberleri */
#son-dakika-haberleri > div {
    flex: 0 0 50%;
    padding: 5px;
}

/* Son Dakika Bölümü */
.son-dakika-header {
    color: white;
    background-color: red;
    padding: 10px;
    display: flex;
    align-items: center;
}

    .son-dakika-header i {
        margin-right: 10px;
    }

/* Döviz Bilgileri */
#doviz-bilgileri span {
    margin: 0 10px;
    font-weight: bold;
}

/* Hava Durumu */
#hava-durumu {
    font-weight: bold;
}

/* Ana Konteyner */
.sondk-container {
    display: flex;
    align-items: stretch;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0;
    margin-top: 3px;
    margin-bottom: 15px;
}

/* Başlık Alanı */
.sondk-header {
    background-color: var(--sondkbaslik);
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    padding: 5px 10px;
    border-radius: 5px 0 0 5px;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Haber Grupları */
.sondk-news-group {
    padding: 3px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
    gap: 20px;
}

/* Haber Öğesi */
.sondk-news-item {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Yan yana hizalama */
    flex: 1 1 calc(50% - 10px); /* Ekrana göre genişlik ayarı */
    padding: 5px 0;
    box-sizing: border-box;
    min-width: 200px; /* Minimum genişlik belirlenir */
    max-width: 100%; /* Esneklik sağlanır */
}

/* Saat */
.sondk-time {
    background-color: var(--sondkbaslik);
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 3px;
    flex-shrink: 0; /* Saatin sabit boyutlu olmasını sağlar */
    margin-right: 10px; /* Saat ile başlık arasındaki boşluk */
    max-width: 60px; /* Saat genişliğini sınırlandırır */
    text-align: center;
}

/* Başlık */
.sondk-title {
    font-size: var(--sondakikafontsize);
    font-weight: normal;
    color: #333;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    flex-grow: 1; /* Başlık alanının esneyebilmesini sağlar */
    max-width: calc(100% - 70px); /* Saatin genişliği hesaba katılarak başlık sınırlandırılır */
}

/* Hidden SEO Başlık */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Link Stilleri */
.sondk-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px; /* Saat ve başlık arasındaki boşluk */
    width: 100%;
}

    .sondk-link:hover .sondk-title {
        text-decoration: none; /* Hover efekti sadece başlıkta */
    }

/* Ana Konteyner */
.ustmanset-container {
    padding: 1px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-family); /* Font ailesi ayarlandı */
}

/* SEO Dostu Hidden Başlık */
.ustmanset-hidden-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    margin: 0;
    padding: 0;
    font-family: var(--font-family); /* Font ailesi eklendi */
}

/* Haber Kartı */
.ustmanset-card {
    text-align: center;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 240px; /* Kart boyutunu küçülttük */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font-family); /* Font ailesi eklendi */
}

    .ustmanset-card:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

/* Link Stilleri */
.ustmanset-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-family); /* Font ailesi eklendi */
}

/* Haber Resmi */
.ustmanset-img {
    width: 100%;
    height: 140px; /* Resim boyutunu 16:9 oranına uygun şekilde ayarladık */
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
}

/* Placeholder Görsel */
.ustmanset-placeholder {
    width: 100%;
    height: 140px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 1rem;
    color: #666;
    font-family: var(--font-family); /* Font ailesi eklendi */
}

/* Kullanıcıya Gösterilen Başlık */
.ustmanset-visible-title {
    margin-top: 10px;
    padding: 2px; /* Başlık padding */
    font-size: var(--ustmansetbaslikfontsize);
    font-weight: bold;
    line-height: 1.4;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Maksimum 2 satır */
    -webkit-box-orient: vertical;
    font-family: var(--font-family); /* Font ailesi eklendi */
}

.ustmanset-link:hover .ustmanset-visible-title {
    opacity: 0.7;
    text-decoration: none;
    color: var(--ustmansetbaslikrengi);
}

/* Carousel Kontrolleri - Mobilde Gizle */
.carousel-control-prev,
.carousel-control-next {
    filter: invert(1);
    opacity: 0.7;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        opacity: 1;
    }

    .carousel-control-prev.d-none,
    .carousel-control-next.d-none {
        display: none !important; /* Mobilde gizlemek için */
    }

@media (max-width: 768px) {
    /* Mobilde tekli listeleme */
    .ustmanset-card {
        height: auto; /* Kart yüksekliğini içerikle orantılı yapar */
        padding: 5px;
    }

    .ustmanset-img {
        height: 180px; /* Mobilde daha büyük resim */
    }

    .carousel-inner .row {
        flex-wrap: wrap; /* Mobilde tekli listeleme */
    }

    .col-12.col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}


/* Ana Konteyner */
.manset-container {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background-color: #f9f9f9;
}

/* Ana Manşet Alanı */
.manset-main-headline {
    position: relative;
    width: 100%;
    overflow: hidden;
}

    /* Ana Manşet Slayt */
    .manset-main-headline .swiper-slide {
        width: 100%;
        height: 504px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
    }

        /* Reklam Alanları */
        .manset-main-headline .swiper-slide[data-id=""] {
            background-color: #f4f4f4;
            text-align: center;
            display: flex;
            justify-content: center;
            align-items: center;
        }

/* Başlık Alanı */
.manset-title-bg-area {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
    margin: 0;
    font-weight: bold;
    
    text-align: center;
    box-sizing: border-box;
}

/* Ana Manşet başlık */
.manset-main-headline .manset-title-bg-area {
    font-size: var(--mansettitlefontsize);
    line-height: 1.4;
}

/* Yan Manşet başlık */
.manset-featured-news .manset-title-bg-area {
    font-size: var(--yanmansettitlefontsize);
    line-height: 1.3;
}

/* Pagination Genel Container Stilleri */
.manset-swiper-pagination {
    position: static;
    margin-top: 0;
    display: flex;
    justify-content: center;
    gap: 1px;
    flex-wrap: wrap;
    width: 100%;
    padding: 2px;
    background-color: #ddd;
}

/* Ana Manşet Pagination Stilleri */
.manset-main-headline .manset-swiper-pagination .swiper-pagination-bullet {
    flex: 1;
    text-align: center;
    width: auto;
    height: auto;
    background-color: var(--anamansetnosecilibg);
    color: var(--ananabsetnosecilifontcolor);
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin: 0;
    border-radius: 0;
    opacity: 1;
    font-weight:bold;
}

.manset-main-headline .manset-swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--anamansetsecilibg);
    color: var(--anasayfasecilifontcolor);
    font-weight: bold;
}

/* Yan Manşet Pagination Stilleri */
.manset-featured-news .manset-swiper-pagination .swiper-pagination-bullet {
    flex: 1;
    text-align: center;
    width: auto;
    height: auto;
    background-color: var(--yanmansetnosecilibg);
    color: var(--yanmansetnosecilifontcolor);
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin: 0;
    border-radius: 0;
    opacity: 1;
    font-weight: bold;
}

.manset-featured-news .manset-swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--yanmansetsecilibg);
    color: var(--yansayfasecilifontcolor);
    font-weight:bold;
}

/* Yan Manşet Alanı */
.manset-featured-news {
    position: relative;
    width: 100%;
    overflow: hidden;
}

    /* Yan Manşet Slayt */
    .manset-featured-news .swiper-slide {
        width: 100%;
        height: 504px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
    }

        /* Link stilleri */
        .manset-main-headline .swiper-slide a,
        .manset-featured-news .swiper-slide a {
            display: block;
            width: 100%;
            height: 100%;
            position: relative;
        }

/* SEO Dostu Başlık */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hover Efektleri */
.manset-main-headline .manset-swiper-pagination .swiper-pagination-bullet:hover {
    background-color: #e0e0e0;
    color: #333333;
}

.manset-featured-news .manset-swiper-pagination .swiper-pagination-bullet:hover {
    background-color: #d0d0d0;
    color: #222222;
}

/* Responsive Ayarlamalar */
@media (max-width: 768px) {
    .manset-main-headline .swiper-slide,
    .manset-featured-news .swiper-slide {
        height: 300px;
    }

    .manset-title-bg-area {
        padding: 8px;
    }

    .manset-main-headline .manset-title-bg-area {
        font-size: 1rem;
    }

    .manset-featured-news .manset-title-bg-area {
        font-size: 0.9rem;
    }

    .manset-swiper-pagination .swiper-pagination-bullet {
        font-size: 0.9rem;
        padding: 4px 8px;
    }
}

/* Diğer Özelleştirmeler */
/* İstediğiniz diğer stil ayarlarını buraya ekleyebilirsiniz */
