/* Can EBİRİ v98 — editorial card grid, no editorial carousel.
   Scope: home Makaleler/Spot Bilgiler/Bebeğim/Soru&Cevap + editorial listing.
   The homepage's MAIN hero slider, other galleries, menus and detail pages are unchanged. */

/* Category heading: subtle and compact. */
.site-box .inner-page.cms-articles-list-page .cms-news-list-heading {
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  gap:10px;margin:8px 0 18px;border-bottom:1px solid #dceaf5;padding-bottom:13px;
}
.site-box .inner-page.cms-articles-list-page .cms-news-list-eyebrow {
  font-size:12px;font-weight:800;letter-spacing:.1em;color:#2975a8;
}
.site-box .inner-page.cms-articles-list-page .cms-news-list-total {
  font-size:12px;font-weight:700;color:#6d87a0;
}
.site-box .inner-page.cms-articles-list-page .cms-news-grid {
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:clamp(14px,1.75vw,24px)!important;align-items:stretch!important;
  margin-top:15px!important;
}

/* Shared professional frame and gentle interaction. */
#anasayfa .cms-home-content-section .article-grid > .article-card,
.site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card {
  position:relative;min-width:0;isolation:isolate;
  border:1px solid rgba(176,209,232,.87)!important;
  border-radius:21px!important;
  background:linear-gradient(155deg,#fff 0%,#fff 72%,#f4faff 100%)!important;
  box-shadow:0 5px 12px rgba(13,60,114,.045),0 14px 30px rgba(30,89,144,.07)!important;
  overflow:hidden!important;
  text-decoration:none;
  transform:translateY(0);
  transition:transform .32s cubic-bezier(.2,.72,.2,1),box-shadow .32s ease,border-color .32s ease!important;
  will-change:auto;
}
#anasayfa .cms-home-content-section .article-grid > .article-card::before,
.site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card::before {
  content:"";position:absolute;z-index:2;top:0;left:19px;right:19px;height:3px;
  border-radius:0 0 7px 7px;
  background:linear-gradient(90deg,#1b8fe1,#3cc7d0,#fc82a6);
  opacity:.72;pointer-events:none;transition:opacity .3s ease;
}
#anasayfa .cms-home-content-section .article-grid > .article-card .cms-card-media,
.site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card .cms-card-media {
  position:relative;display:grid;place-items:center;
  width:calc(100% - 20px);height:auto;aspect-ratio:16 / 9;
  min-width:0;margin:10px 10px 0!important;padding:0!important;
  border:1px solid rgba(191,219,239,.82);border-radius:15px;
  overflow:hidden;
  background:linear-gradient(138deg,#e9f5ff 0%,#f8fcff 48%,#ebf9f7 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.8);
}
#anasayfa .cms-home-content-section .article-grid > .article-card .cms-card-media::after,
.site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card .cms-card-media::after {
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  border:2px solid rgba(255,255,255,.42);border-radius:14px;
  box-shadow:inset 0 -15px 30px rgba(11,74,122,.035);
}
#anasayfa .cms-home-content-section .article-grid > .article-card .cms-card-media > img,
.site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card .cms-card-media > img {
  display:block!important;position:relative;
  width:100%!important;height:100%!important;max-width:100%!important;
  aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;
  transform:scale(1);
  transition:transform .55s cubic-bezier(.2,.7,.2,1),filter .45s ease!important;
}
#anasayfa .cms-home-content-section .article-grid > .article-card .cms-card-media .cms-card-image-placeholder,
#anasayfa .cms-home-content-section .article-grid > .article-card .cms-card-media .cms-card-fallback,
.site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card .cms-card-media .cms-card-fallback {
  width:100%!important;height:100%!important;display:grid!important;place-items:center!important;
  margin:0!important;padding:0!important;background:transparent!important;
  color:#4c9cc6;font-size:35px;
}
#anasayfa .cms-home-content-section .article-grid > .article-card .body,
.site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card > div {
  position:relative;z-index:1;
}
#anasayfa .cms-home-content-section .article-grid > .article-card .body h3,
.site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card h2 {
  color:#103b6e!important;letter-spacing:-.015em;
}
.site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card > div {padding:17px 18px 20px!important;}
.site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card h2 {font-size:clamp(16px,1.45vw,19px)!important;line-height:1.35!important;}
.site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card p {color:#536d84!important;}
.site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card > div > span {
  color:#1178b9!important;font-weight:800!important;transition:color .2s ease;
}
/* Hover is only activated for pointer devices (touch does not get a sticky hover zoom). */
@media(hover:hover) and (pointer:fine){
  #anasayfa .cms-home-content-section .article-grid > .article-card:hover,
  .site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card:hover {
    transform:translateY(-6px)!important;
    border-color:#85bde9!important;
    box-shadow:0 10px 24px rgba(17,82,145,.105),0 20px 40px rgba(17,82,145,.13)!important;
  }
  #anasayfa .cms-home-content-section .article-grid > .article-card:hover .cms-card-media > img,
  .site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card:hover .cms-card-media > img {
    transform:scale(1.045);filter:saturate(1.055);
  }
  #anasayfa .cms-home-content-section .article-grid > .article-card:hover::before,
  .site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card:hover::before {opacity:1;}
}
#anasayfa .cms-home-content-section .article-grid > .article-card:focus-visible,
.site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card:focus-visible {
  outline:3px solid #2384d0;outline-offset:3px;
}
@media(max-width:960px){
  .site-box .inner-page.cms-articles-list-page .cms-news-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:600px){
  .site-box .inner-page.cms-articles-list-page .cms-news-grid {grid-template-columns:1fr!important;gap:17px!important;}
  .site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card .cms-card-media {border-radius:14px;}
  .site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card > div {padding:15px 16px 19px!important;}
  #anasayfa .cms-home-content-section .article-grid > .article-card .cms-card-media {width:calc(100% - 12px);margin:6px 6px 0!important;border-radius:11px;}
  #anasayfa .cms-home-content-section .article-grid > .article-card {border-radius:16px!important;}
  #anasayfa .cms-home-content-section .article-grid > .article-card .body {padding:9px 9px 12px!important;}
}
@media(prefers-reduced-motion:reduce){
  #anasayfa .cms-home-content-section .article-grid > .article-card,
  .site-box .inner-page.cms-articles-list-page .cms-news-grid > .cms-news-card,
  #anasayfa .cms-home-content-section .cms-card-media > img,
  .site-box .inner-page.cms-articles-list-page .cms-card-media > img {
    transform:none!important;transition:none!important;animation:none!important;
  }
}
