/* =========================
   OTOETKINLIK – CORE
   Layout + Hero + Sponsor Bar
   Scoped to: page-template-page-otoetkinlik
========================= */

body.page-template-page-otoetkinlik{
  background:#f5f5f5;
}

body.page-template-page-otoetkinlik .oto-landing{
  margin-bottom:30px;
}

/* =========================
   HERO SPACING
========================= */

body.page-template-page-otoetkinlik .home-hero{
  margin-top:10px;
}

/* =========================
   HERO V1 – BOXED WRAPPER
========================= */

body.page-template-page-otoetkinlik .hero-v1{
  background:transparent;
  padding:24px 0;
  margin-bottom:24px;
}

body.page-template-page-otoetkinlik .hero-v1 .container{
  background:#fff;
  border-radius:16px;
  padding:18px;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
}

/* =========================
   HERO LAYOUT
========================= */

body.page-template-page-otoetkinlik .hero-v1 .hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

body.page-template-page-otoetkinlik .hero-v1 .hero-small-wrap{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

body.page-template-page-otoetkinlik .hero-v1 .hero-big,
body.page-template-page-otoetkinlik .hero-v1 .hero-small{
  position:relative;
  overflow:hidden;
  border-radius:16px;
  isolation:isolate;
}

body.page-template-page-otoetkinlik .hero-v1 .hero-big{
  min-height:420px;
  height:420px;
}

body.page-template-page-otoetkinlik .hero-v1 .hero-small{
  min-height:200px;
  height:200px;
}

/* =========================
   HERO IMAGE FIT FIX
   - her zaman tam kapla
   - center crop
   - boşluk bırakma
========================= */

body.page-template-page-otoetkinlik .hero-v1 .hero-big > a,
body.page-template-page-otoetkinlik .hero-v1 .hero-small > a{
  display:block;
  width:100%;
  height:100%;
}

body.page-template-page-otoetkinlik .hero-v1 .hero-big .post-thumbnail,
body.page-template-page-otoetkinlik .hero-v1 .hero-small .post-thumbnail,
body.page-template-page-otoetkinlik .hero-v1 .hero-big .wp-post-image,
body.page-template-page-otoetkinlik .hero-v1 .hero-small .wp-post-image{
  width:100%;
  height:100%;
}

body.page-template-page-otoetkinlik .hero-v1 .hero-big img,
body.page-template-page-otoetkinlik .hero-v1 .hero-small img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}

/* =========================
   HERO OVERLAY
========================= */

body.page-template-page-otoetkinlik .hero-v1 .hero-overlay{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:18px;
  background:linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
  pointer-events:none;
}

body.page-template-page-otoetkinlik .hero-overlay h2{
  font-size:22px;
  color:#fff;
}

body.page-template-page-otoetkinlik .hero-overlay h3{
  font-size:15px;
  color:#fff;
}

/* =========================
   HERO CATEGORY BADGE
========================= */

body.page-template-page-otoetkinlik .hero-cat{
  position:absolute;
  top:14px;
  left:14px;
  z-index:3;
  background:rgba(0,0,0,.75);
  color:#fff;
  font-size:11px;
  font-weight:800;
  line-height:1;
  padding:5px 10px;
  border-radius:999px;
  pointer-events:none;
  transition:background .3s ease;
}

body.page-template-page-otoetkinlik article:hover .hero-cat{
  background:rgba(0,0,0,.85);
}

/* =========================
   HERO HOVER EFFECT
========================= */

body.page-template-page-otoetkinlik .home-hero article{
  transition:transform .35s ease, box-shadow .35s ease;
}

body.page-template-page-otoetkinlik .home-hero article:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 40px rgba(0,0,0,.18);
}

body.page-template-page-otoetkinlik .home-hero article img{
  transition:transform .5s ease;
  transform:scale(1);
}

body.page-template-page-otoetkinlik .home-hero article:hover img{
  transform:scale(1.03);
}

/* =========================
   SPONSOR BAR
========================= */

body.page-template-page-otoetkinlik .oto-sponsor-inline{
  width:100%;
}

body.page-template-page-otoetkinlik .home-sponsors.oto-sponsor-inline{
  width:100%;
  background:#fff;
  padding-top:18px;
  padding-bottom:15px;
  box-shadow:0 10px 24px -6px rgba(242,242,242,.9);
}

body.page-template-page-otoetkinlik .home-sponsors.oto-sponsor-inline .sponsors-grid{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:32px;
  flex-wrap:wrap;
}

body.page-template-page-otoetkinlik .home-sponsors.oto-sponsor-inline .sponsors-grid a{
  display:flex;
  align-items:center;
}

body.page-template-page-otoetkinlik .home-sponsors.oto-sponsor-inline .sponsors-grid img{
  width:auto;
  max-height:130px;
  opacity:.9;
  transition:transform .2s ease, opacity .2s ease;
}

body.page-template-page-otoetkinlik .home-sponsors.oto-sponsor-inline .sponsors-grid a:hover img{
  transform:scale(1.05);
  opacity:1;
}

/* =========================
   CONTENT WRAPPER
========================= */

body.page-template-page-otoetkinlik .oto-content-wrap{
  margin-top:15px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px){
  body.page-template-page-otoetkinlik .hero-v1 .hero-grid{
    grid-template-columns:1fr !important;
  }

  body.page-template-page-otoetkinlik .hero-v1 .hero-small-wrap{
    grid-template-columns:1fr;
  }

  body.page-template-page-otoetkinlik .hero-v1 .hero-big,
  body.page-template-page-otoetkinlik .hero-v1 .hero-small{
    min-height:220px;
    height:220px;
  }
}