/* GRID */
.features-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px){
  .features-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

/* CARD */
.feature-card{
  padding: 32px;
  border: 1px solid #f1f5f9;
  background: rgba(248,250,252,.5);
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease;
}

/* HOVER */
.feature-card:hover{
  background: #ffffff;
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15,23,42,.12);
}

/* ICON */
.feature-icon{
  background: #fff;
  border: 1px solid #f1f5f9;
  padding: 16px;
  display: inline-flex;
  margin-bottom: 24px;
  color: #2563eb;
}

/* TITLE */
.feature-card h3{
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

/* TEXT */
.feature-card p{
  margin: 0;
  color: #475569;
  line-height: 1.7;
  font-size: 16px;
}

.feature-badge{
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(37, 99, 235, 0.5);   /* primary %50 */
  border-radius: 9999px;                     /* rounded-full */
  background: rgba(37, 99, 235, 0.2);         /* primary %20 */
  color: #2563eb;                            /* primary */
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* MARKA ANA RENGİ (BURAYI DEĞİŞTİR) */

/* MARKA ANA RENGİ (BURAYI DEĞİŞTİR) */
:root{
  --primary-color: #0ea5e9; /* ← Replit'teki primary rengi buraya yaz */
}

/* BADGE */
.feature-badge{
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 24px;

  /* Tailwind blue-500 = rgb(59,130,246) */
  border: 1px solid rgba(59, 130, 246, 0.5); /* border-primary/50 */
  background: rgba(59, 130, 246, 0.2);       /* bg-primary/20 */

  color: #ffffff;                            /* text-primary-foreground */

  font-size: 14px;
  font-weight: 500;
  border-radius: 9999px;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}


/* HERO GRADIENT OVERLAY - works with Cover & normal blocks */
.hero-gradient{
  position: relative !important;
  overflow: hidden;
}

/* If it's a WP Cover block, push its background image behind */
.hero-gradient .wp-block-cover__image-background,
.hero-gradient .wp-block-cover__video-background,
.hero-gradient img{
  position: relative;
  z-index: 0 !important;
}

/* Overlay layer (use ::after to avoid conflicts with WP Cover) */
.hero-gradient::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15,23,42,1) 0%,
    rgba(15,23,42,0.92) 45%,
    rgba(15,23,42,0) 100%
  );
  z-index: 2 !important;
  pointer-events: none;
}

/* Content stays on top */
.hero-gradient > *{
  position: relative;
  z-index: 3 !important;
}



/* 1) Header tam üstte + fixed */
#masthead{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;

  /* şeffaf başlasın */
  background: transparent !important;
}

/* Admin bar varsa (WP’de giriş yaptıysan) header 32px aşağı insin */
body.admin-bar #masthead{
  top: 32px !important;
}
@media (max-width: 782px){
  body.admin-bar #masthead{
    top: 46px !important;
  }
}

/* 2) Header arkaplan katmanı (scroll’da koyulaşacak) */
#masthead::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(10, 18, 33, 0); /* başta transparan */
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background .25s ease, backdrop-filter .25s ease;
  z-index: -1;
}

/* 3) Scroll sonrası koyulaşma */
body.is-scrolled #masthead::before{
  background: rgba(10, 18, 33, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 4) Fixed header altında içerik ezilmesin */
:root{ --masthead-h: 0px; }
body{
  padding-top: calc(var(--masthead-h) + (body.admin-bar ? 0px : 0px)) !important;
}

/* bazen tema üstte boşluk verir */
html, body{
  margin-top: 0 !important;
}



/* ===== Products Category Grid (WP) ===== */
.wp-catgrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:24px; /* gap-6 */
}

/* sm: 2 columns */
@media (min-width: 640px){
  .wp-catgrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* lg: 4 columns */
@media (min-width: 1024px){
  .wp-catgrid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Link reset */
.wp-cat{
  display:block;
  text-decoration:none;
  color:inherit;
}

/* Card */
.wp-cat__card{
  position:relative;
  height:256px;      /* h-64 */
  overflow:hidden;
  border-radius:4px; /* rounded-sm */
  cursor:pointer;
}

/* Image zoom on hover */
.wp-cat__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1);
  transition:transform .7s ease;
}
.wp-cat:hover .wp-cat__img{
  transform:scale(1.10);
}

/* Gradient overlay */
.wp-cat__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(15,23,42,.90), rgba(15,23,42,0));
}

/* Bottom content */
.wp-cat__content{
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  padding:24px; /* p-6 */
}

/* Title row */
.wp-cat__title{
  margin:0 0 6px;
  color:#fff;
  font-weight:700;
  font-size:20px; /* text-xl */
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

/* Arrow animation */
.wp-cat__arrow{
  width:20px;
  height:20px;
  opacity:0;
  transform:translateX(-8px);
  transition: opacity .25s ease, transform .25s ease;
}
.wp-cat:hover .wp-cat__arrow{
  opacity:1;
  transform:translateX(0);
}

/* Description (2 lines clamp-ish) */
.wp-cat__desc{
  margin:0;
  color: rgba(203,213,225,.90); /* slate-300 */
  font-size:14px;
  line-height:1.5;
  opacity:.8;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}


/* ============================= */
/*   STATS / CERTIFICATION BAR   */
/* ============================= */
.wp-stats{
  background:#0f172a;
  border-top:1px solid #1f2937;
  border-bottom:1px solid #1f2937;
  padding:64px 0;
  overflow:hidden;
}

.wp-stats__container{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}

.wp-stats__grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:32px;
  text-align:center;
}

@media (min-width:768px){
  .wp-stats__grid{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
}

.wp-stats__item{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.wp-stats__value{
  font-weight:900;
  color:#fff;
  margin-bottom:8px;
  font-size:30px;
  line-height:1.05;
  letter-spacing:-0.02em;
}
@media (min-width:768px){
  .wp-stats__value{ font-size:36px; }
}

.wp-stats__label{
  color:#94a3b8;
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.12em;
}

/* ============================= */
/*   SCROLL-TRIGGERED ANIMATION  */
/* ============================= */

/* Başlangıçta gizli (animasyon başlamadı) */
.wp-anim{
  opacity:0;
  transform:translateY(28px);
}

/* Görününce animasyon çalışır */
.wp-anim.is-inview{
  animation:wpFadeUp .9s ease forwards;
}

/* sırayla gelsin (is-inview geldiği anda delay devreye girer) */
.wp-stats__item:nth-child(1).is-inview{ animation-delay:.10s; }
.wp-stats__item:nth-child(2).is-inview{ animation-delay:.25s; }
.wp-stats__item:nth-child(3).is-inview{ animation-delay:.40s; }
.wp-stats__item:nth-child(4).is-inview{ animation-delay:.55s; }

@keyframes wpFadeUp{
  to{ opacity:1; transform:translateY(0); }
}

/* Kullanıcı "reduced motion" istiyorsa animasyonsuz */
@media (prefers-reduced-motion: reduce){
  .wp-anim{ opacity:1; transform:none; }
  .wp-anim.is-inview{ animation:none; }
}



/* ============================= */
/*            CTA                */
/* ============================= */

.wp-cta{
  position:relative;
  overflow:hidden;
  background:#f8fafc;            /* slate-50 */
  padding:96px 0;                /* py-24 */
}

/* sağdaki eğik dekor */
.wp-cta__bg{
  position:absolute;
  top:0;
  right:0;
  width:33.333%;
  height:100%;
  background:rgba(226,232,240,.5);   /* slate-200/50 */
  transform:skewX(-12deg) translateX(80px);
  transform-origin:top;
  z-index:1;
}

/* içerik */
.wp-cta__container{
  position:relative;
  z-index:2;
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;                /* px-4 */
}

.wp-cta__inner{
  max-width:896px;               /* max-w-4xl */
  margin:0 auto;
  text-align:center;
}

.wp-cta__title{
  margin:0 0 24px;
  font-weight:800;
  color:#0f172a;                 /* slate-900 */
  font-size:40px;                /* text-4xl */
  line-height:1.1;
}

.wp-cta__text{
  margin:0 0 40px;
  color:#475569;                 /* slate-600 */
  font-size:20px;                /* text-xl */
  line-height:1.6;
}

/* buton */
.wp-cta__link{
  display:inline-block;
  text-decoration:none;
}

.wp-cta__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:64px;                   /* h-16 */
  padding:0 40px;                /* px-10 */
  font-size:18px;                /* text-lg */
  font-weight:700;
  color:#fff;
  border-radius:4px;             /* rounded-sm */
  background: var(--ast-global-color-1, #2997AA); /* primary */
  border:1px solid rgba(0,0,0,0); /* placeholder */
  box-shadow:0 18px 40px rgba(41,151,170,.20);    /* shadow-primary/20 */
  transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.wp-cta__icon{
  width:20px;
  height:20px;
}

/* hover-elevate */
.wp-cta__link:hover .wp-cta__btn{
  transform: translateY(-2px);
  box-shadow:0 22px 55px rgba(41,151,170,.28);
  filter: brightness(0.98);
}

/* mobile düzen */
@media (max-width:768px){
  .wp-cta{ padding:72px 0; }
  .wp-cta__bg{ width:55%; transform:skewX(-12deg) translateX(60px); opacity:.6; }
  .wp-cta__title{ font-size:32px; }
  .wp-cta__text{ font-size:18px; }
}


/* ===== Industries Section (WP) ===== */
.wp-industries{
  background:#ffffff;
  padding:96px 0;
}

.wp-industries__container{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}

.wp-industries__header{
  text-align:center;
  margin-bottom:64px;
}

.wp-industries__title{
  font-weight:800;
  font-size:clamp(28px, 3.2vw, 40px);
  line-height:1.15;
  margin:0 0 16px;
  color:#0f172a;
}

.wp-industries__line{
  width:80px;
  height:4px;
  margin:0 auto 24px;
  background:var(--ast-global-color-1, #2997AA);
}

.wp-industries__desc{
  max-width:720px;
  margin:0 auto;
  color:#64748b;
  font-size:16px;
  line-height:1.7;
}

/* GRID */
.wp-industries__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:32px;
}

@media (min-width:768px){
  .wp-industries__grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (min-width:1200px){
  .wp-industries__grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }
}

/* CARD */
.industry-card{
  position:relative;
  overflow:hidden;
  border-radius:2px;
  height:350px;
  display:flex;
  align-items:flex-end;
  padding:24px;
  border:1px solid #e2e8f0;
  box-shadow:0 1px 2px rgba(15,23,42,.06);
  transform:translateY(0);
  transition:transform .5s ease, box-shadow .5s ease;
  text-decoration:none !important;
  color:inherit;
  background:#fff;
}

.industry-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(15,23,42,.14);
}

.industry-card__media{
  position:absolute;
  inset:0;
}

.industry-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:grayscale(1);
  transform:scale(1);
  transition:transform .7s ease, filter .7s ease;
}

.industry-card:hover .industry-card__media img{
  filter:grayscale(0);
  transform:scale(1.05);
}

.industry-card__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(2,6,23,.95), rgba(2,6,23,.40), rgba(2,6,23,0));
}

/* CONTENT */
.industry-card__content{
  position:relative;
  z-index:2;
  width:100%;
}

.industry-card__title{
  margin:0 0 8px;
  color:#ffffff !important;
  font-weight:800;
  font-size:20px;
  line-height:1.2;
}

.industry-card__text{
  margin:0;
  color:#cbd5e1;
  font-size:14px;
  line-height:1.6;
  opacity:0;
  max-height:0;
  overflow:hidden;
  transition:opacity .5s ease, max-height .5s ease;
}

.industry-card:hover .industry-card__text{
  opacity:1;
  max-height:120px;
}

/* CTA */
.wp-industries__cta{
  margin-top:48px;
  text-align:center;
}

/* ✅ SADECE BU BUTON DEĞİŞTİRİLDİ */
.wp-industries__button{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;

  background:#1B2A4C;
  border:1px solid #1B2A4C;
  color:#ffffff !important;

  border-radius:6px;
  font-weight:700;
  text-decoration:none !important;
  transition:background .25s ease, border-color .25s ease, transform .25s ease;
}

.wp-industries__button:hover{
  background:#0163A0;
  border-color:#0163A0;
  color:#ffffff !important;
  transform:translateY(-1px);
}

.wp-industries__arrow{
  display:inline-block;
  transform:translateX(0);
  transition:transform .25s ease;
}

.wp-industries__button:hover .wp-industries__arrow{
  transform:translateX(3px);
}

header.entry-header .entry-title{
  display:none;
}

/* Sayfa başlığı ve kapladığı tüm alanı tamamen kaldır */
.entry-header{
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* Bazı temalarda h1 ayrıca boşluk bırakır */
.entry-title{
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Astra & benzeri temalarda içerik üst boşluğunu sıfırla */
.ast-single-post .entry-content,
.ast-page-builder-template .entry-content,
.site-content{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Ürün başlığını görünür yap ve siyah renk ver */
.single-product .entry-title, 
h1.entry-title {
    display: block !important;
    visibility: visible !important;
    color: #000000 !important;
    opacity: 1 !important;
}

/* Başlık alanındaki gizlemeyi kaldır */
.entry-header {
    display: block !important;
    height: auto !important;
}