/* Google Fonts'tan Open Sans yükle */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700;800&display=swap');

/* Tüm site için Open Sans */
body, p, li, a, span, input, button, textarea {
    font-family: 'Open Sans', sans-serif;
}

/* Başlıklar */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700; /* Başlıklar kalın */
}

/* Navbar linkleri */
.navbar-nav .nav-link {
    font-family: 'Open Sans', sans-serif;
}

/* Footer */
.site-footer, .site-footer a, .footer-widget h5 {
    font-family: 'Open Sans', sans-serif;
}

/* Butonlar */
button, .btn, .auth-btn, .slider-btn {
    font-family: 'Open Sans', sans-serif;
}

/* Widget başlıklar ve diğer küçük başlıklar */
.widget-title, .section-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}
 /* === Modern, Sade Footer === */
.site-footer {
  background: #1a1a1a; /* koyu arka plan */
  color: #ccc;
  font-family: 'Nunito', sans-serif;
  padding: 30px 20px; /* üst ve alt boşluk optimize edildi */
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-widget {
  flex: 1 1 200px;
  min-width: 180px;
}

.footer-widget h5 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.8rem;
  position: relative;
}

.footer-widget h5::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #1abc9c; /* alt çizgi rengi */
  margin-top: 4px;
  border-radius: 1px;
}

.footer-widget p {
  line-height: 1.6;
}

.footer-widget a {
  color: #bbb;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.footer-widget a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #1abc9c;
  transition: width 0.3s ease;
  border-radius: 1px;
}

.footer-widget a:hover {
  color: #fff;
}

.footer-widget a:hover::after {
  width: 100%;
}

/* Footer alt kısmı */
/* Footer alt kısmı sade ve modern */
.footer-bottom {
  text-align: center;
  margin-top: 0; /* üst boşluğu kaldırdık */
  padding: 15px 0; /* üst-alt boşluk minimal */
  font-size: 0.85rem;
  color: #aaa; /* yumuşak gri */
  border-top: none; /* eski çizgi kaldırıldı */
  background: #151515; /* footer-top ile uyumlu koyu renk */
}


/* Responsive Footer */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 20px;
  }
}
/* Modern slider buton */
.slider-btn {
    border-radius: 50px; /* daha modern oval görünüm */
    padding: 12px 36px;
    font-weight: 600;
    font-size: 1.1rem;
    background: linear-gradient(90deg, #ff4d6d, #ff914d);
    background-size: 200% 200%;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(255,77,109,0.4);
}

/* Hover efekti: gradient akışı + yükselme + gölge */
.slider-btn:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,77,109,0.5);
}

/* Mobil uyumlu */
@media (max-width: 991px) {
    .slider-btn {
        width: 100%;
        text-align: center;
        padding: 14px 0;
    }
}
/* Auth butonları kapsayıcı */
.auth-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Butonlar genel */
.auth-btn {
  border-radius: 12px;
  padding: 8px 22px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 42px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
}

/* İçerik span üstte kalacak */
.btn-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.3s ease;
  color: inherit;
}

/* Giriş Yap (Outline) */
.auth-btn.btn-outline-light {
  border: 2px solid #f8f9fa;
  background: transparent;
  color: #f8f9fa;
}

.auth-btn.btn-outline-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, #6c757d, #495057, #6c757d);
  background-size: 400% 400%;
  border-radius: 12px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 1; /* pseudo-element arka planda */
}

.auth-btn.btn-outline-light:hover::before {
  transform: scaleX(1);
  animation: gradientFlow 3s linear infinite;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Kayıt Ol (Primary) */
.auth-btn.btn-primary {
  background: linear-gradient(270deg, #ff4d6d, #ff914d, #ff4d6d);
  background-size: 400% 400%;
  border: none;
  color: #fff;
  transition: all 0.4s ease;
}

.auth-btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  animation: gradientFlow 3s linear infinite;
}

/* İkon micro animasyonu */
.btn-content i {
  transition: transform 0.3s ease;
}

.auth-btn:hover .btn-content i {
  transform: translateX(4px);
}

/* Gradient akışkan animasyonu */
@keyframes gradientFlow {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* Mobilde alt alta */
@media (max-width: 991px) {
  .auth-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .auth-item .auth-btn {
    width: 100%;
    justify-content: center;
  }
  .auth-item.ms-2 {
    margin-left: 0 !important;
  }
}
.navbar-nav .nav-link {
  position: relative;
  color: #f8f9fa !important;
  font-weight: 500;
  padding: 6px 12px;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background-color: #ff4d6d; /* canlı bir accent rengi */
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 60%;
}
.navbar-nav .nav-link {
  position: relative;
  color: #f8f9fa !important;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}
.navbar-nav .nav-link {
  color: #f8f9fa !important;
  font-weight: 500;
  transition: all 0.4s ease;
}

.navbar-nav .nav-link:hover {
  background: linear-gradient(90deg, #ff4d6d, #ff914d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* ===================================================================
   Kumara Hayır! Projesi - Nihai Stil Dosyası (Sidebar Onarımı Dahil)
   =================================================================== */
.brand-wrapper {
  display: flex;
  align-items: center; 
  gap: 10px;
}

.favicon-icon {
  width: 36px;
  height: 36px;
}

.brand-text {
  display: flex;
  flex-direction: column;  /* üstte ana yazı, altta slogan */
  line-height: 1.2;
}

.brand-text strong {
  font-size: 20px;
}

.subtitle {
  font-family: 'Dancing Script', cursive;  /* el yazısı font */
  font-size: 14px;
  color: #dc3545; /* kırmızımsı, dikkat çeken ama soft */
}


@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');
:root {
    --primary-color: #2c3e50; --secondary-color: #34495e; --accent-color: #ad0000;
    --light-gray: #f8f9fa; --text-color: #34495e; --text-muted: #6c757d;
}
body { font-family: 'Nunito', sans-serif; color: var(--text-color); padding-top: 56px; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-weight: 800; color: var(--primary-color); }
section { padding: 5rem 0; }
.section-title { margin-bottom: 3rem; text-align: center; }
.btn-primary { background-color: var(--accent-color); border-color: var(--accent-color); font-weight: 700; padding: 1rem 2.5rem; border-radius: 50px; }

/* === HEADER & FOOTER === */
header#header .navbar { z-index: 1040; }
.site-footer { background-color: var(--primary-color); color: rgba(255, 255, 255, 0.7); }
.site-footer .footer-top { padding: 4rem 0; border-bottom: 1px solid var(--secondary-color); }
.site-footer .footer-widget h5 { color: #fff; position: relative; padding-bottom: 0.75rem; }
.site-footer .footer-widget h5::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 2px; background-color: var(--accent-color); }
.site-footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }

/* === ANA SAYFA - HERO SLIDER === */
#heroCarousel { height: calc(100vh - 56px); margin-top: -110px; width: 100%; position: relative; }
#heroCarousel .carousel-inner, #heroCarousel .carousel-item { height: 100%; }
#heroCarousel .carousel-item { background-size: cover; background-position: center; }
#heroCarousel .carousel-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(44, 62, 80, 0.75); }
#heroCarousel .carousel-container { display: flex; align-items: center; justify-content: center; text-align: center; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; }
#heroCarousel .carousel-content { margin-bottom:50px; color: #fff; max-width: 800px; }
#heroCarousel h2 { color: #fff; font-size: 3.5rem; font-weight: 900; }
#heroCarousel .typed-text { color: var(--accent-color); }
@media (max-width: 767.98px) { #heroCarousel, #heroCarousel .carousel-item { height: 70vh; min-height: 550px; } #heroCarousel h2 { font-size: 2.2rem; } }

/* === ANA SAYFA - DİĞER BÖLÜMLER === */
.feature-item { display: flex; align-items: flex-start; text-align: left; padding: 1.5rem; border-radius: 10px; }
.feature-item-icon { flex-shrink: 0; width: 80px; height: 80px; background-color: var(--accent-color); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; margin-right: 1.5rem; }
.stats-section { background-color: var(--secondary-color); color: #ffffff; }
.stats-icon { font-size: 3.5rem; margin-bottom: 1rem; color: var(--accent-color); }
.stats-item .counter { font-size: 3rem; font-weight: 800; display: inline-block; }
.stats-item .counter::after { content: '+'; display: inline-block; vertical-align: super; font-size: 1.5rem; margin-left: 5px; }
.testimonials-section { background-color: var(--light-gray); }
.testimonial-card .avatar-icon-wrapper { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1rem auto; display: flex; align-items: center; justify-content: center; background-color: var(--primary-color); color: var(--accent-color); font-size: 2.5rem; }

/* === BLOG SAYFALARI (SIDEBAR ONARIMI DAHİL) === */
.blog-header { padding: 3rem 0; background-color: var(--light-gray); }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)!important; }
.post-content { font-size: 1.1rem; line-height: 1.8; }
.widget { background-color: #f8f9fa; padding: 1.5rem; border-radius: 5px; margin-bottom: 2rem; border: 1px solid #e9ecef; }
.widget-title { font-size: 1.2rem; margin-bottom: 1rem; padding-bottom: 0.5rem; position: relative; }
.widget-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background-color: var(--accent-color); }
.widget-title i { margin-right: 0.5rem; color: var(--accent-color); }
.widget-post-item { display: flex; align-items: center; margin-bottom: 1rem; }
.widget-post-item:last-child { margin-bottom: 0; }
.widget-post-item .post-title { font-size: 0.95rem; font-weight: 700; text-decoration: none; }
.progress-container { width: 100%; height: 8px; position: fixed; top: 56px; left: 0; z-index: 1030; background: #f1f1f1; }
.progress-bar { height: 8px; background: var(--accent-color); width: 0%; }

/* YENİ VE ONARILMIŞ KURAL: Sidebar resimlerini standart hale getirir */
.widget-post-item img {
    width: 65px;
    height: 65px;
    object-fit: cover; /* Resmi bozmadan kareye sığdırır ve kırpar */
    border-radius: 5px;
    margin-right: 15px;
    flex-shrink: 0; /* Ekran küçüldüğünde resmin büzüşmesini engeller */
}
/* /assets/css/custom-theme.css dosyasının sonuna ekleyin */

/* === BLOG LİSTELEME SAYFASI - ETİKET TAŞMASI SORUNU ÇÖZÜMÜ === */

.post-card .card-footer {
    display: block; /* Flexbox gibi karmaşık davranışları devre dışı bırakır */
    white-space: nowrap; /* İçeriğin alt satıra kaymasını KESİNLİKLE engeller */
    overflow: hidden; /* Sığmayan içeriği gizler */
    text-overflow: ellipsis; /* Gizlenen içeriğin yerine "..." koyar */
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-right: 1.25rem; /* Sağa yapışmasını önlemek için */
}

/* İçindeki etiketlerin satır içinde kalmasını garantilemek için */
.post-card .card-footer .badge {
    display: inline-block;
    vertical-align: middle;
}

/* /assets/css/custom-theme.css dosyasının sonuna ekleyin */

/* === BLOG YAZISI İÇERİK TAŞMASI ÖNLEME (NİHAİ ONARIM) === */

/* Yazı içeriğini tutan ana kutuyu, içindekilerin taşmasını engelleyecek şekilde ayarla */
.post-content {
    /* Bu kural, kelimeler çok uzun olsa bile satır sonlarında kırılmasını sağlar */
    word-wrap: break-word;
    overflow-wrap: break-word;
    
    /* Bu, içeriğin (resim vb.) kendi kabından dışarı taşmasını kesinlikle engeller */
    overflow: hidden;
}

/* İçerikteki TÜM resimlerin, kendi sütunlarından daha geniş olmasını engeller */
.post-content img {
    max-width: 100%;
    height: auto; /* Resmin en-boy oranını koru */
    border-radius: 5px;
}

/* İleride eklersen diye, içerikteki tabloların da taşmasını engeller */
.post-content table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
}
/* ===================================================================
   Kumara Hayır! Projesi - Nihai ve Onarılmış Stil Dosyası
   =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');
:root {
    --primary-color: #2c3e50; --secondary-color: #34495e; --accent-color: #1abc9c;
    --light-gray: #f8f9fa; --text-color: #34495e; --text-muted: #6c757d;
}
body { font-family: 'Nunito', sans-serif; color: var(--text-color); padding-top: 56px; overflow-x: hidden; }
/* ... (diğer tüm temel stiller aynı kalacak) ... */

/* === BLOG SAYFALARI (NİHAİ ONARIM) === */
.blog-header { padding: 3rem 0; background-color: var(--light-gray); }

/* İçeriğin, kendi kabından dışarı taşmasını KESİNLİKLE ENGELLEYEN GÜVENLİK KURALLARI */
.post-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden; /* En önemli kural: Taşan her şeyi gizle */
}
.post-content img, .post-content table, .post-content iframe {
    max-width: 100% !important; /* Resimlerin ve diğer elementlerin taşmasını engelle */
    height: auto;
}

.widget { background-color: #f8f9fa; padding: 1.5rem; border-radius: 5px; margin-bottom: 2rem; }
.widget-title { font-size: 1.2rem; margin-bottom: 1rem; padding-bottom: 0.5rem; position: relative; }
.widget-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background-color: var(--accent-color); }
.widget-post-item { display: flex; align-items: center; margin-bottom: 1rem; }
.widget-post-item img { width: 65px; height: 65px; object-fit: cover; border-radius: 5px; margin-right: 15px; flex-shrink: 0; }
/* Hikaye Beğeni Butonu Stili */
.like-story-btn.liked {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}
/* Ana Swiper Kapsayıcısı - Okları bu kapsayıcıya göre konumlandırıyoruz */
.swiper-container-outer {
    position: relative;
    width: 100%;
    /* Swiper içeriği ile oklar arasında boşluk bırakmak için padding */
    padding-left: 50px;
    padding-right: 50px;
    box-sizing: border-box; /* Padding'in genişliğe dahil olmasını sağlar */
}

/* Swiper'ın içeriğini saran ana div */
.blog-swiper {
    width: 100%;
    height: auto;
    padding-bottom: 40px; /* Pagination noktaları için altta boşluk */
}

/* Blog Kartı Resim Boyutlandırma (Kare ve sabit) */
.blog-thumbnail-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Resmin daima kare (1:1 oranında) olmasını sağlar */
    object-fit: cover;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

/* SWIPER NAVİGASYON BUTONLARI (Oklar) - Konum ve Stil */
.swiper-container-outer .blog-swiper-prev,
.swiper-container-outer .blog-swiper-next {
    position: absolute;
    top: 50%; /* Dikeyde ortala */
    transform: translateY(-50%); /* Kendi yüksekliğinin yarısı kadar yukarı çek */
    z-index: 10; /* Diğer elementlerin önüne geçmesini sağlar */
    width: 40px; /* Buton genişliği */
    height: 40px; /* Buton yüksekliği */
    border-radius: 50%; /* Yuvarlak butonlar */
    background-color: rgba(0, 0, 0, 0.6); /* Yarı şeffaf siyah arka plan */
    color: #fff; /* Ok rengi beyaz */
    display: flex; /* İçeriği (ok ikonunu) ortalamak için */
    justify-content: center; /* Yatayda ortala */
    align-items: center; /* Dikeyde ortala */
    cursor: pointer;
    transition: background-color 0.3s ease; /* Hover efekti için yumuşak geçiş */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Hafif gölge */
}

/* Ok butonlarının üzerine gelince stil */
.swiper-container-outer .blog-swiper-prev:hover,
.swiper-container-outer .blog-swiper-next:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Hover'da daha koyu */
}

/* Sol ok konumu */
.swiper-container-outer .blog-swiper-prev {
    left: 0; /* "swiper-container-outer"ın sol kenarına hizala */
}

/* Sağ ok konumu */
.swiper-container-outer .blog-swiper-next {
    right: 0; /* "swiper-container-outer"ın sağ kenarına hizala */
}

/* Ok ikonlarının kendileri (Swiper'ın varsayılan ikonları) */
/* Swiper'ın kendi fontunu ve içerik kodlarını kullanmalıyız ki doğru oklar görünsün */
.swiper-container-outer .blog-swiper-prev::after {
    content: 'prev'; /* Swiper'ın "prev" ikonu karakter kodu */
    font-family: 'swiper-icons'; /* Swiper'ın kendi ikon fontu */
    font-size: 18px;
    font-weight: bold;
    text-transform: none !important; /* Büyük harf dönüşümünü engeller */
    letter-spacing: 0;
}

.swiper-container-outer .blog-swiper-next::after {
    content: 'next'; /* Swiper'ın "next" ikonu karakter kodu */
    font-family: 'swiper-icons'; /* Swiper'ın kendi ikon fontu */
    font-size: 18px;
    font-weight: bold;
    text-transform: none !important;
    letter-spacing: 0;
}

/* SWIPER PAGINATION (Noktalar) */
.swiper-container-outer .swiper-pagination {
    bottom: 0px; /* Noktaları en alta al */
    left: 0;
    width: 100%;
    text-align: center;
}

.swiper-container-outer .swiper-pagination-bullet {
    background-color: #ccc; /* Pasif nokta rengi */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.swiper-container-outer .swiper-pagination-bullet-active {
    background-color: #282828; /* Aktif nokta rengi */
    opacity: 1;
}

/* Mobil uyumluluk için özel ayarlamalar */
@media (max-width: 767px) {
    /* Mobil cihazlarda ok butonlarını gizleyelim veya küçültelim */
    .swiper-container-outer .blog-swiper-prev,
    .swiper-container-outer .blog-swiper-next {
        /* display: none; */ /* Eğer oklar mobilde istenmiyorsa bu satırı aktif et */
        width: 30px;
        height: 30px;
        /* Mobil görünümde okları biraz daha içeri çekebiliriz */
        left: 5px;
        right: 5px;
    }
    .swiper-container-outer .blog-swiper-prev::after,
    .swiper-container-outer .blog-swiper-next::after {
        font-size: 14px; /* Mobil için ok ikonunu küçült */
    }
    .swiper-container-outer {
        /* Mobilde yan boşlukları azaltarak içeriği daha geniş göster */
        padding-left: 20px;
        padding-right: 20px;
    }
}