/* ============================================================
   Kendal Elektrik – Custom Styles
   Tüm sayfa özelleştirmeleri bu dosyada toplanır.
   Inline <style> blokları kullanılmaz.
   ============================================================ */

/* -------------------------------------------------------
   Layout / Navbar
------------------------------------------------------- */
.navbar-brand .kendal-logo {
  display: block !important;
  height: 52px;
  width: auto;
  transition: filter 0.3s ease;
}

.header-transparent .navbar:not(.is-sticky) .kendal-logo {
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.9)) drop-shadow(0 0 20px rgba(255,255,255,0.7));
}

/* -------------------------------------------------------
   Slider
------------------------------------------------------- */
.slider .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #fff;
  opacity: 0.5;
  margin: 0 6px !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slider .swiper-pagination-bullet-active {
  opacity: 1;
  background: #dc3545 !important;
  transform: scale(1.3);
}

/* Slider – Logo sağ alt köşe */
.slider-logo-bottom-right {
  position: absolute;
  bottom: 20px;
  right: 80px;
  z-index: 10;
}

.slider-logo-bottom-right img {
  display: block;
  width: auto;
  height: 70px;
  opacity: 0.9;
  filter: brightness(1.1);
}

@media (max-width: 768px) {
  .slider-logo-bottom-right {
    bottom: 15px;
    right: 40px;
  }

  .slider-logo-bottom-right img {
    height: 55px;
  }
}

/* Slider – Alt kırmızı çizgi */
.slider-divider {
  height: 5px;
  background: #dc3545;
  margin: 0;
}

/* Slider Custom Responsive */
.slider-text-responsive {
  font-size: var(--slider-fs);
}
.slider-content-responsive {
  margin-top: var(--desktop-mt);
  text-align: var(--desktop-text-align);
}
@media (max-width: 991px) {
  .slider .slide-item {
    height: 40vw !important;
    min-height: 250px !important;
    padding: 0 !important;
  }
  .slider-text-responsive {
    /* Yazı boyutunu çok fazla kısmıyoruz, rahat okunabilir bir denge bırakıyoruz */
    font-size: calc(var(--slider-fs) * 0.8) !important;
  }
  .slider-content-responsive {
    margin-top: 0 !important;
    text-align: center !important;
    padding: 0 15px;
  }
}
@media (max-width: 575px) {
  .slider .slide-item {
    height: 55vw !important;
    min-height: 0 !important;
    padding: 0 !important;
  }
  .slider-text-responsive {
    /* Çok ufalamaması için bir minimum sınır verelim (16px) ve %70 oranında koruyalım */
    font-size: max(16px, calc(var(--slider-fs) * 0.7)) !important;
  }
}

/* -------------------------------------------------------
   Video / Handwriting Label
------------------------------------------------------- */
.video-handwriting-label {
  position: absolute;
  left: -320px;
  bottom: -20px;
  font-family: 'Dancing Script', cursive;
  font-size: 38px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  letter-spacing: 0.5px;
  transform: rotate(-8deg);
  opacity: 0.9;
  z-index: 2;
}

/* Tanıtım video mobil uyumluluk */
@media (max-width: 991px) {
  .banner-layout5 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  .banner-layout5 .heading-layout2 {
    text-align: center !important;
  }
  .banner-layout5 .heading-title {
    font-size: 26px !important;
    margin-bottom: 15px !important;
  }
  .banner-layout5 .heading-desc {
    font-size: 15px !important;
    margin-bottom: 20px !important;
  }
  .banner-layout5 .links-list {
    padding-top: 15px !important;
    justify-content: center !important;
  }
  .banner-layout5 .video-btn-wrapper {
    justify-content: center !important;
    padding: 20px 0 60px !important;
    margin-bottom: 20px !important;
  }
  .video-handwriting-label {
    left: -150px !important;
    bottom: -60px !important;
    transform: rotate(0deg) !important;
    font-size: 24px !important;
  }
  .banner-layout5 .video-arrow {
    left: 80px !important;
    bottom: -50px !important;
    width: 50px !important;
    transform: rotate(30deg) !important;
  }
}

@media (max-width: 575px) {
  .banner-layout5 {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .banner-layout5 .heading-subtitle {
    font-size: 14px !important;
  }
  .banner-layout5 .heading-title {
    font-size: 20px !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
  }
  .banner-layout5 .heading-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  .banner-layout5 .links-list {
    padding-top: 10px !important;
    gap: 10px;
  }
  .banner-layout5 .links-list li {
    margin-bottom: 5px !important;
  }
  .banner-layout5 .links-list li a {
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
  .banner-layout5 .video-btn-wrapper {
    justify-content: center !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
  }
  .video-handwriting-label {
    left: 50% !important;
    bottom: -35px !important;
    transform: translateX(-50%) rotate(0deg) !important;
    font-size: 18px !important;
    text-align: center !important;
    white-space: normal !important;
    width: 200px !important;
  }
  .banner-layout5 .video-arrow {
    display: none !important;
  }
}

/* -------------------------------------------------------
   Markalar – Anasayfa (home brands section)
------------------------------------------------------- */
.brand-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 20px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.brand-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* -------------------------------------------------------
   Markalar – Markalar sayfası
------------------------------------------------------- */
.client-logo {
  transition: all 0.3s ease;
}

.client-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.k2-brand-special {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%) !important;
  border: 2px solid #e30614 !important;
  box-shadow: 0 15px 35px rgba(254, 91, 44, 0.15) !important;
}

.k2-brand-special:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(254, 91, 44, 0.25) !important;
}

/* -------------------------------------------------------
   Hakkımızda – Responsive resim
------------------------------------------------------- */
.about-responsive-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about-responsive-img {
    height: 250px;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 480px) {
  .about-responsive-img {
    height: 200px;
  }
}

/* -------------------------------------------------------
   Hakkımızda – İçerik kutusu
------------------------------------------------------- */
.about-content {
  font-size: 16px;
  line-height: 1.8;
}

/* -------------------------------------------------------
   Haberler Listesi – Resim yüksekliği
------------------------------------------------------- */
.blog-grid .post-img img {
  height: 250px;
  object-fit: cover;
  width: 100%;
}

/* -------------------------------------------------------
   Haber Detay
------------------------------------------------------- */
.post-title-main {
  font-weight: 700;
  font-size: 2.5rem;
  color: #1a1a1a;
  line-height: 1.3;
}

.post-meta-info {
  color: #6c757d;
  font-size: 15px;
}

.post-meta-info i {
  color: var(--color-primary);
  font-size: 18px;
}

.post-img-wrapper {
  max-height: 600px;
  overflow: hidden;
  border-radius: 4px;
}

.post-img-wrapper img {
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.post-content-body {
  font-size: 18px;
  line-height: 1.9;
  color: #444;
  font-family: 'Inter', sans-serif;
}

/* -------------------------------------------------------
   İletişim – İkon boyutları
------------------------------------------------------- */
.contact-list .contact-icon {
  font-size: 32px;
  color: var(--color-primary);
  margin-right: 15px;
}

/* -------------------------------------------------------
   Marka logo boyutları
------------------------------------------------------- */
.k2-logo-img {
  max-height: 140px;
  width: 90%;
  object-fit: contain;
}

.brand-logo-img {
  max-height: 80px;
  object-fit: contain;
}

/* -------------------------------------------------------
   Blog list – resim yüksekliği
------------------------------------------------------- */
.blog-list-img {
  height: 250px;
  object-fit: cover;
  width: 100%;
}

/* -------------------------------------------------------
   İletişim – Harita
------------------------------------------------------- */
.contact-map {
  border: 0;
  display: block;
  width: 100%;
}

/* -------------------------------------------------------
   Slider – CTA butonu
------------------------------------------------------- */
.slider-btn {
  background-color: #dc3545;
  border-color: #dc3545;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 4px;
}
/* -------------------------------------------------------
   Kariyer – "Ailemize Katılmak İster Misiniz?" bölümü
------------------------------------------------------- */
.banner-layout2.bg-primary {
  background: linear-gradient(to right, #666666, #ff0000) !important;
}

.banner-layout2.bg-primary .heading-subtitle,
.banner-layout2.bg-primary .heading-title {
  color: #ffffff !important;
}
/* -------------------------------------------------------
   Modern Çerez Banner (Minimalist)
------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.cookie-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.cookie-icon {
  width: 32px;
  height: 32px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  flex-shrink: 0;
}

.cookie-text {
  flex: 1;
}

.cookie-message {
  font-size: 14px;
  color: #495057;
  line-height: 1.5;
  font-weight: 400;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-link {
  color: #6c757d;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cookie-link:hover {
  color: #495057;
  text-decoration: underline;
}

.cookie-btn {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-btn-decline {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #e9ecef;
}

.cookie-btn-decline:hover {
  background: #e9ecef;
  color: #495057;
}

.cookie-btn-accept {
  background: #212529;
  color: #ffffff;
}

.cookie-btn-accept:hover {
  background: #000000;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .cookie-banner {
    background: rgba(33, 37, 41, 0.98);
    border-top-color: rgba(255, 255, 255, 0.1);
  }
  
  .cookie-icon {
    background: #343a40;
    color: #adb5bd;
  }
  
  .cookie-message {
    color: #f8f9fa;
  }
  
  .cookie-link {
    color: #adb5bd;
  }
  
  .cookie-link:hover {
    color: #f8f9fa;
  }
  
  .cookie-btn-decline {
    background: #343a40;
    color: #adb5bd;
    border-color: #495057;
  }
  
  .cookie-btn-decline:hover {
    background: #495057;
    color: #f8f9fa;
  }
  
  .cookie-btn-accept {
    background: #f8f9fa;
    color: #212529;
  }
  
  .cookie-btn-accept:hover {
    background: #ffffff;
  }
}

/* Mobil responsive */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 0;
  }
  
  .cookie-info {
    justify-content: center;
    text-align: center;
  }
  
  .cookie-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: 100px;
  }
}