/* ============================================================
   BR Service Grid Widget  –  pxl_service_grid
   All layouts share the .pxl-sg-* namespace.
   ============================================================ */

/* ── Shared button ─────────────────────────────────────────── */
.pxl-sg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--primary-color);
  text-decoration: none;
  transition: gap 220ms ease;
}
.pxl-sg-btn i,
.pxl-sg-btn svg {
  transition: transform 220ms ease;
  flex-shrink: 0;
}
.pxl-sg-btn:hover { gap: 14px; }
.pxl-sg-btn:hover i,
.pxl-sg-btn:hover svg { transform: translateX(4px); }

.pxl-sg-btn--pill {
  padding: 8px 22px;
  border-radius: 30px;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.pxl-sg-btn--pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-color);
  transform: translateX(-100%);
  transition: transform 240ms ease;
  z-index: -1;
}
.pxl-sg-btn--pill:hover { color: #fff; }
.pxl-sg-btn--pill:hover::before { transform: translateX(0); }


/* ── Shared icon ───────────────────────────────────────────── */
.pxl-sg-item--icon {
  margin-bottom: 16px;
}
.pxl-sg-item--icon i {
  font-size: 36px;
  color: var(--primary-color);
  transition: transform 280ms ease;
}
.pxl-sg-item--icon img,
.pxl-sg-item--icon svg {
  max-height: 48px;
  width: auto;
}


/* ============================================================
   LAYOUT 1 – Clean White Card
   ============================================================ */
.pxl-service-widget-grid--l1 .pxl-grid-item {
  margin-bottom: 28px;
}

.pxl-sg-item--l1 {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 280ms ease, transform 280ms ease, border-color 280ms ease;
}
.pxl-sg-item--l1:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  transform: translateY(-4px);
  border-color: transparent;
}

/* image */
.pxl-sg-item--l1 .pxl-sg-item--image {
  position: relative;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  aspect-ratio: 3 / 2;
}
.pxl-sg-item--l1 .pxl-sg-item--image a { display: block; height: 100%; }
.pxl-sg-item--l1 .pxl-sg-item--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.pxl-sg-item--l1:hover .pxl-sg-item--image img { transform: scale(1.06); }
.pxl-sg-item--l1 .pxl-sg-item--overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.25));
  opacity: 0;
  transition: opacity 280ms ease;
}
.pxl-sg-item--l1:hover .pxl-sg-item--overlay { opacity: 1; }

/* body */
.pxl-sg-item--l1 .pxl-sg-item--body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pxl-sg-item--l1 .pxl-sg-item--title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin: 0 0 10px;
}
.pxl-sg-item--l1 .pxl-sg-item--title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 220ms ease;
}
.pxl-sg-item--l1 .pxl-sg-item--title a:hover { color: var(--primary-color); }

.pxl-sg-item--l1 .pxl-sg-item--excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(0,0,0,.58);
  margin-bottom: 20px;
  flex: 1;
}
.pxl-sg-item--l1 .pxl-sg-item--readmore { margin-top: auto; }
.pxl-sg-item--l1 .pxl-sg-btn { color: var(--primary-color); }


/* ============================================================
   LAYOUT 2 – Numbered List
   ============================================================ */
.pxl-service-widget-grid--l2 .pxl-grid-item { margin-bottom: 0; }

.pxl-sg-item--l2 {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: background 220ms ease;
  position: relative;
}
.pxl-sg-item--l2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 350ms ease;
}
.pxl-sg-item--l2:hover::before { width: 100%; }

.pxl-sg-item--l2 .pxl-sg-item--num {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-color);
  opacity: .15;
  min-width: 68px;
  text-align: right;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  transition: opacity 280ms ease;
}
.pxl-sg-item--l2:hover .pxl-sg-item--num { opacity: .5; }

.pxl-sg-item--l2 .pxl-sg-item--body { flex: 1; padding-top: 6px; }

.pxl-sg-item--l2 .pxl-sg-item--title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
  line-height: 1.25;
}
.pxl-sg-item--l2 .pxl-sg-item--title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 220ms ease;
}
.pxl-sg-item--l2 .pxl-sg-item--title a:hover { color: var(--primary-color); }

.pxl-sg-item--l2 .pxl-sg-item--excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(0,0,0,.55);
  margin-bottom: 14px;
}
.pxl-sg-item--l2 .pxl-sg-btn--arrow {
  color: var(--secondary-color);
  font-size: 14px;
  font-weight: 500;
}
.pxl-sg-item--l2 .pxl-sg-btn--arrow:hover { color: var(--primary-color); }


/* ============================================================
   LAYOUT 3 – Dark Full-Bleed Card
   ============================================================ */
.pxl-service-widget-grid--l3 .pxl-grid-item { margin-bottom: 28px; }

.pxl-sg-item--l3 {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  background-color: var(--primary-color);
  transition: box-shadow 280ms ease;
}
.pxl-sg-item--l3:hover { box-shadow: 0 20px 50px rgba(0,0,0,.18); }

/* background image */
.pxl-sg-item--l3 .pxl-sg-item--bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  opacity: 0;
  transition: opacity 360ms ease;
  z-index: 0;
}
.pxl-sg-item--l3:hover .pxl-sg-item--bg { opacity: 1; }
.pxl-sg-item--l3 .pxl-sg-item--bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 500ms ease;
}
.pxl-sg-item--l3:hover .pxl-sg-item--bg img { transform: scale(1.06); }
.pxl-sg-item--l3 .pxl-sg-item--overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.80) 100%);
}

/* number badge */
.pxl-sg-item--l3 .pxl-sg-item--num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: rgba(255,255,255,.45);
  z-index: 2;
  transition: color 280ms ease;
}
.pxl-sg-item--l3:hover .pxl-sg-item--num { color: rgba(255,255,255,.8); }

/* body */
.pxl-sg-item--l3 .pxl-sg-item--body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 32px;
  flex: 1;
}
.pxl-sg-item--l3 .pxl-sg-item--icon { margin-bottom: 14px; }
.pxl-sg-item--l3 .pxl-sg-item--icon i {
  color: rgba(255,255,255,.85);
  font-size: 32px;
}
.pxl-sg-item--l3 .pxl-sg-item--icon img,
.pxl-sg-item--l3 .pxl-sg-item--icon svg { filter: brightness(0) invert(1); max-height: 40px; }

.pxl-sg-item--l3 .pxl-sg-item--title {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0 0 12px;
}
.pxl-sg-item--l3 .pxl-sg-item--title a {
  color: #fff;
  text-decoration: none;
}

.pxl-sg-item--l3 .pxl-sg-item--excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pxl-sg-item--l3 .pxl-sg-item--readmore { margin-top: auto; }
.pxl-sg-item--l3 .pxl-sg-btn {
  color: #fff;
  padding: 7px 22px;
  border-radius: 30px;
  border: 1.5px solid rgba(255,255,255,.5);
  transition: background 220ms ease, border-color 220ms ease;
}
.pxl-sg-item--l3 .pxl-sg-btn:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}


/* ============================================================
   LAYOUT 4 – Horizontal Card
   ============================================================ */
.pxl-service-widget-grid--l4 .pxl-grid-item { margin-bottom: 24px; }

.pxl-sg-item--l4 {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  transition: box-shadow 280ms ease, transform 280ms ease;
  height: 100%;
}
.pxl-sg-item--l4:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,.10);
  transform: translateY(-3px);
}

/* left accent bar when no image */
.pxl-sg-item--l4:not(:has(.pxl-sg-item--media)) {
  border-left: 4px solid var(--primary-color);
}

/* media */
.pxl-sg-item--l4 .pxl-sg-item--media {
  flex-shrink: 0;
  width: 38%;
  min-height: 200px;
  overflow: hidden;
}
.pxl-sg-item--l4 .pxl-sg-item--media-link {
  display: block;
  height: 100%;
}
.pxl-sg-item--l4 .pxl-sg-item--media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.pxl-sg-item--l4:hover .pxl-sg-item--media img { transform: scale(1.05); }

/* body */
.pxl-sg-item--l4 .pxl-sg-item--body {
  flex: 1;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pxl-sg-item--l4 .pxl-sg-item--icon { margin-bottom: 10px; }
.pxl-sg-item--l4 .pxl-sg-item--icon i { font-size: 28px; color: var(--primary-color); }
.pxl-sg-item--l4 .pxl-sg-item--icon img,
.pxl-sg-item--l4 .pxl-sg-item--icon svg { max-height: 36px; }

.pxl-sg-item--l4 .pxl-sg-item--title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
  line-height: 1.3;
}
.pxl-sg-item--l4 .pxl-sg-item--title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 220ms ease;
}
.pxl-sg-item--l4 .pxl-sg-item--title a:hover { color: var(--primary-color); }

.pxl-sg-item--l4 .pxl-sg-item--excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(0,0,0,.55);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pxl-sg-item--l4 .pxl-sg-btn--arrow {
  color: var(--secondary-color);
  font-size: 13px;
  font-weight: 500;
  margin-top: auto;
}
.pxl-sg-item--l4 .pxl-sg-btn--arrow:hover { color: var(--primary-color); }


/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767px) {
  .pxl-sg-item--l4 { flex-direction: column; }
  .pxl-sg-item--l4 .pxl-sg-item--media { width: 100%; min-height: 180px; }

  .pxl-sg-item--l2 .pxl-sg-item--num { font-size: 32px; min-width: 48px; }
  .pxl-sg-item--l2 { gap: 16px; }

  .pxl-sg-item--l3 { min-height: 300px; }
  .pxl-sg-item--l3 .pxl-sg-item--body { padding: 24px 22px; }
  .pxl-sg-item--l3 .pxl-sg-item--title { font-size: 20px; }
}


/* ============================================================
   Single Service page overrides
   ============================================================ */

/* Bej yerine beyaz arka plan */
body.single-service {
  --body_bg-color: #ffffff;
  background-color: #ffffff !important;
}

/* Üst boşluk + iç hava */
body.single-service #pxl-main {
  padding-top: 72px;
  padding-bottom: 100px;
}

/* İçerik alanına beyaz kart görünümü + padding */
body.single-service #pxl-content-area {
  background: #ffffff;
  border-radius: 20px;
  padding: 56px 64px !important;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
}

/* Elementor'la yapılmış sayfalarda iç padding kaldır,
   Elementor bölümler kendi içeriğini yönetir */
body.single-service.elementor-page #pxl-content-area {
  padding: 0 !important;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}

/* --- Mobil --- */
@media (max-width: 1024px) {
  body.single-service #pxl-content-area {
    padding: 40px 36px !important;
  }
}

@media (max-width: 767px) {
  body.single-service #pxl-main {
    padding-top: 48px;
    padding-bottom: 64px;
  }
  body.single-service #pxl-content-area {
    padding: 28px 20px !important;
    border-radius: 12px;
  }
}


/* ============================================================
   Image Carousel — bottom arrow/pagination en alta sabitle
   ============================================================ */

/* Wrapper'ı relative yap ki absolute child çalışsın */
.pxl-image-carousel1 {
  position: relative;
}

/* Arrow/pagination kutusunu görselin en altına sabitle */
.pxl-image-carousel1 .pxl-swiper-bottom {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  z-index: 10;
  justify-content: center;
  pointer-events: none; /* tıklama engellemesin */
}

/* Arrow butonları tıklanabilir kalsın */
.pxl-image-carousel1 .pxl-swiper-bottom .pxl-swiper-arrow,
.pxl-image-carousel1 .pxl-swiper-bottom .pxl-swiper-dots {
  pointer-events: auto;
}

@media (max-width: 767px) {
  .pxl-image-carousel1 .pxl-swiper-bottom {
    bottom: 20px;
  }
}
