/* ================================================
   ANASAYFA — anasayfa.css
   ================================================ */

/* ============================================================
   SECTION 1: HERO
   Figma: 1920×801px, top: 93px (header yüksekliği)
   ============================================================ */
.hero-section {
  position: relative;
  width: 100%;
  /* Slider daha tam görünsün */
  height: 40vw;
  min-height: 480px;
  max-height: 801px;
  overflow: hidden;
}

#heroCarousel,
.carousel-inner {
  height: 100%;
}

/* ---------- Split Layout (Sol / Sağ) ---------- */
.hero-split {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Sol Kolon: Arka plan görseli + Metin */
.hero-left {
  position: relative;
  width: 40%;
  /* 1920px genişlikte kalan alan (100 - 59.2) */
  height: 100%;
  overflow: hidden;
}

.hero-left-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sağ Kolon: Ürün görseli */
.hero-right {
  position: relative;
  width: 60%;
  /* 1137/1920 referans */
  height: 100%;
  overflow: hidden;
}

.hero-right-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---------- Metin içeriği — sol taraf ---------- */
.hero-content {
  position: absolute;
  top: 50%;
  /* Metin bloğu yukarı taşındı */
  left: 80px;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 580px;
  color: #ffffff;
}

.hero-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(32px, 3.5vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-family: "Outfit", sans-serif;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.hero-subtitle .divider {
  margin: 0 8px;
  opacity: 0.7;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #ffffff;
  border: 1.5px solid #ffffff;
  border-radius: 4px;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #004175;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.hero-btn:hover {
  background: #004175;
  color: #ffffff;
  border-color: #ffffff;
}

/* ---------- Slider Ok Tuşları ---------- */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #444444;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.hero-arrow:hover {
  background: #ffffff;
  color: #004175;
}

.hero-arrow--prev {
  left: 16px;
}

.hero-arrow--next {
  right: 16px;
}

/* ============================================================
   SECTION 2: HAKKIMIZDA — "Bizi Daha Yakından Tanıyın"
   ============================================================ */
.about-section {

  position: relative;
  background: #f8f8f8;
  padding: 80px 42px;
}



/* İç konteyner: iki kolon */
.about-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* --- Sol: metin --- */
.about-text {
  flex: 1;
  max-width: 540px;
}

.about-label {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 5px;
  color: #5480a3;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.about-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 500;
  line-height: 53px;
  letter-spacing: -1px;
  color: #161616;
  margin-bottom: 32px;
}

.about-desc {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 26px;
  color: #474747;
  margin-bottom: 72px;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #004175;
  border-radius: 4px;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.about-btn:hover {
  background: #00325a;
}

/* --- Sağ: logo görseli --- */
.about-logo-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 500px;
}

.about-logo-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
}

/* ============================================================
   SECTION 3: MARKALARIMIZ
   Figma: 1920×600px, background #004175, padding 70px 0
   ============================================================ */
.brands-section {
  position: relative;
  width: 100%;
  background: #004175;
  padding: 70px 0;
  overflow: hidden;
}

/* Kenar gradyan overlay'leri */
.brands-edge {
  position: absolute;
  top: 0;
  width: 32%;
  /* Figma: 615/1920 ≈ 32% */
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.brands-edge--left {
  left: 0;
  background: linear-gradient(270deg, rgba(0, 65, 117, 0) 0%, #004175 100%);
}

.brands-edge--right {
  right: 0;
  background: linear-gradient(270deg, #004175 0%, rgba(0, 65, 117, 0) 100%);
}

/* İçerik — z-index 2 ile overlay'lerin üstünde */
.brands-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* Başlık grubu */
.brands-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

.brands-heading a,
.brands-heading a:hover {
  text-decoration: none !important;
  color: inherit !important;
}

.brands-label {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 5px;
  color: #b0c4d4;
  text-align: center;
  text-transform: uppercase;
}

.brands-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 500;
  line-height: 53px;
  letter-spacing: -1px;
  color: #ffffff;
  text-align: center;
  margin: 0;
}

/* Sonsuz kayan logo şeridi */
.brands-marquee-wrap {
  width: 100%;
  overflow: hidden;
}

.brands-marquee {
  display: flex;
  align-items: flex-start;
  width: max-content;
  gap: 21px;
  animation: marquee-scroll 28s linear infinite;
}

/* Marka kartı */
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  width: 200px;
}

.brand-card img {
  width: 240px;
  height: 140px;
  object-fit: contain;
  padding: 16px 24px;
  background: transparent;
  border-radius: 4px;
  filter: brightness(0) invert(1);
}

.brand-card span {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: #b0c4d4;
  text-align: center;
}

/* Her SET sonundaki boşluk */
.brand-spacer {
  flex-shrink: 0;
  width: 80px;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Tüm Markalarımız butonu */
.brands-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: #ffffff;
  border-radius: 4px;
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 23px;
  color: #004175;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.brands-btn:hover {
  background: #e8f0f7;
}

/* ============================================================
   SECTION 4: FMCG TEDARİK ÜRÜNLERİMİZ
   Beyaz arka plan, renkli logolar (filter yok), mavi buton
   ============================================================ */
.fmcg-section {
  position: relative;
  width: 100%;
  background: #ffffff;
  padding: 70px 0;
  overflow: hidden;
}

.fmcg-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.fmcg-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.fmcg-label {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 5px;
  color: #5480a3;
  text-align: center;
  text-transform: uppercase;
}

.fmcg-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(24px, 2.8vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  color: #161616;
  text-align: center;
  margin: 0;
}

/* Marquee şeridi */
.fmcg-marquee-wrap {
  width: 100%;
  overflow: hidden;
}

.fmcg-marquee {
  display: flex;
  align-items: flex-start;
  width: max-content;
  gap: 10px;
  animation: marquee-scroll 28s linear infinite;
}

/* Kart — renkli logo, açık arka plan */
.fmcg-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  width: 200px;
}

.fmcg-card img {
  width: 200px;
  height: 120px;
  object-fit: contain;
  padding: 16px 24px;
  background: transparent;
}

.fmcg-card span {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: #555555;
  text-align: center;
}

.fmcg-spacer {
  flex-shrink: 0;
  width: 80px;
}

/* Mavi buton */
.fmcg-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: #004175;
  border-radius: 4px;
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 23px;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.fmcg-btn:hover {
  background: #00325a;
}

/* ============================================================
   SECTION 5: YENİ ÜRÜNLER
   Figma: Frame 61334 — 1102px wide, centered, gap 48px
   ============================================================ */
.newproducts-section {
  background: #ffffff;
  padding: 70px 0;
}

.newproducts-inner {
  max-width: 1102px;
  margin: 0 auto;
  padding: 0 42px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  /* Figma: gap 48px */
}

/* Sol hizalı başlık */
.newproducts-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Figma: Frame 18 gap 16px */
}

.newproducts-label {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 5px;
  color: #5480a3;
  text-transform: uppercase;
}

.newproducts-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(26px, 2.9vw, 42px);
  /* Figma: 42px */
  font-weight: 500;
  /* Figma: 500 */
  line-height: 53px;
  letter-spacing: -1px;
  color: #161616;
  margin: 0;
}

/* 3 kolonlu grid */
.newproducts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 20px;
    row-gap: 20px;
}

/* Ürün kartı */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 21.78px;
  /* Figma: gap 21.78px */
}

.product-card img {
  width: 100%;
  aspect-ratio: 347 / 250;
  /* Figma: ~347×250px */
  object-fit: cover;
  border-radius: 5px;
  /* Figma: 5.13px */
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.product-card:hover img {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-card span {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  /* Figma: ~17.96px */
  font-weight: 500;
  /* Figma: 500 */
  line-height: 23px;
  color: #161616;
}

.newproducts-grid .product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ============================================================
   SECTION 6: BİZDEN BLOG
   Figma: Frame 61335 — #F9F9F8, padding 54px 409px, 1102px içerik
   ============================================================ */
.blog-section {
  background: #f9f9f8;
  padding: 54px 0;
}

.blog-inner {
  max-width: 1102px;
  margin: 0 auto;
  padding: 0 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  /* Figma: Frame 61255 gap 50px */
}

/* Ortalanmış başlık */
.blog-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.blog-label {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 5px;
  color: #5480a3;
  text-align: center;
  text-transform: uppercase;
}

.blog-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(26px, 2.9vw, 42px);
  font-weight: 500;
  line-height: 53px;
  letter-spacing: -1px;
  color: #161616;
  text-align: center;
  margin: 0;
}

/* 3 kolonlu grid — Figma: gap 20px */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

/* Blog kartı */
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Görsel wrap */
.blog-card__img-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.blog-card__img-wrap img {
  width: 100%;
  aspect-ratio: 354 / 225;
  /* Figma: 354×225px */
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__img-wrap img {
  transform: scale(1.04);
}

/* Kart gövdesi */
.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Kart başlığı */
.blog-card__title {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: #161616;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mavi başlık varyantı (2. kart) */
.blog-card__title--blue {
  color: #003b6a;
}

/* Kart açıklaması — en fazla 4 satır (Html.Raw iç p/div clamp’i bozmasın diye max-height + iç margin sıfır) */
.blog-card__desc {
  font-family: "Inter", sans-serif;
  font-size: 13.56px;
  font-weight: 400;
  line-height: 24px;
  color: #474747;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
  max-height: calc(24px * 4);
}

.blog-card__desc p,
.blog-card__desc div {
  margin: 0;
}

.blog-card__desc p {
  display: inline;
}

.blog-card__desc p+p::before {
  content: " ";
}

/* Tüm Haberler butonu */
.blog-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: #004175;
  border-radius: 4px;
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 23px;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.blog-btn:hover {
  background: #00325a;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-section {
    height: 50vw;
    min-height: 420px;
  }

  .hero-content {
    left: 32px;
    max-width: 440px;
  }

  .about-section {
    padding: 60px 32px;
  }

  .about-inner {
    gap: 40px;
  }
}

@media only screen and (max-width: 991px)
{
    .newproducts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   RESPONSIVE — MOBİL (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .hero-section {
    height: 56vw;
    min-height: 250px;
    max-height: 330px;
  }

  .hero-split {
    position: relative;
    height: 100%;
    min-height: 100%;
  }

  /* Ürün fotoğrafı tam genişlik, altta tam katman */
  .hero-right {
    width: 100%;
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .hero-right-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Tam yükseklik mavi opak katman; metin flex ile altta */
  .hero-left {
    width: 100%;
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px 0 14px;
    box-sizing: border-box;
  }

  .hero-left-bg {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    max-width: 100%;
    padding: 0 14px 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 30px;
    line-height: 1.1;
    margin-bottom: 8px;
    width: 100%;
  }

  .hero-subtitle {
    font-size: 12px;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
    width: 100%;
  }

  .hero-btn {
    padding: 8px 14px;
    font-size: 12px;
    align-self: center;
  }

  .hero-arrow {
    width: 28px;
    height: 28px;
  }

  .hero-arrow--prev {
    left: 10px;
  }

  .hero-arrow--next {
    right: 10px;
  }

  /* Section 2 mobil: tek kolon */
  .about-section {
    padding: 48px 20px;
  }

  .about-inner {
    flex-direction: column;
    gap: 36px;
  }

  .about-text {
    max-width: 100%;
  }

  .about-logo-wrap {
    max-width: 280px;
  }

  /* Bizden Blog: tek kolon, taşma yok, özet sabit 4 satır */
  .blog-section {
    padding: 40px 0;
  }

  .blog-inner {
    padding: 0 20px;
    gap: 32px;
  }

  .blog-title {
    line-height: 1.2;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .blog-card {
    min-width: 0;
    max-width: 100%;
  }

  .blog-card__desc {
    max-height: calc(24px * 4);
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
}

/* ============================================================
   RESPONSIVE — KÜÇÜK MOBİL (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-section {
    height: 60vw;
    min-height: 220px;
    max-height: 280px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .hero-btn {
    padding: 7px 12px;
    font-size: 11px;
  }

    @media only screen and (max-width: 991px) {
        .newproducts-grid {
            grid-template-columns: repeat(1, 1fr);
        }
    }
}