/* content-media-standard-v94.css */
/* v94 — One consistent media display size for four editorial sections:
   Makaleler / Spot Bilgiler / Bebegim / Soru-Cevap.
   16:9 = example upload/display 1200 x 675 for slider; 640 x 360 for small cards.
   Existing uploaded pictures are not modified or cropped; original proportions remain intact.
   Does NOT style the homepage main slider, article detail, video gallery or admin screens. */

/* Home: equal-sized news cards in all four categories (including empty placeholders). */
#anasayfa .cms-home-content-section .article-grid .article-card > img,
#anasayfa .cms-home-content-section .article-grid .article-card > .cms-card-image-placeholder {
  display:block !important;
  width:100% !important;
  height:auto !important;
  aspect-ratio:16 / 9 !important;
  max-width:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  background:linear-gradient(135deg,#e9f5ff 0%,#f6faff 52%,#edf8f8 100%) !important;
  margin:0 !important;
  border-radius:0 !important;
}
#anasayfa .cms-home-content-section .article-grid .article-card > .cms-card-image-placeholder {
  display:grid !important;
  place-items:center;
}

/* Article category: same 16:9 proportion for the additional article cards. */
.site-box .inner-page.cms-articles-list-page .content-grid .content-card > img {
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  aspect-ratio:16 / 9 !important;
  object-fit:contain !important;
  object-position:center center !important;
  background:linear-gradient(135deg,#e9f5ff,#f7fbff) !important;
  margin:0 !important;
  border-radius:0 !important;
}

/* Featured article carousel: every slide's media frame uses the same 16:9 ratio.
   A maximum frame width prevents the category slider from becoming too tall. */
.site-box .inner-page.cms-articles-list-page .cms-category-slider {
  width:100% !important;
  max-width:1120px !important;
  margin-inline:auto !important;
}
.site-box .inner-page.cms-articles-list-page .cms-category-slide-link {
  box-sizing:border-box;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  aspect-ratio:16 / 9 !important;
  background:linear-gradient(135deg,#e8f5fc,#f4faff 65%,#eaf8f4) !important;
}
.site-box .inner-page.cms-articles-list-page .cms-category-slide-image {
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
}
.site-box .inner-page.cms-articles-list-page .cms-category-slide-noimage {
  width:100% !important;
  height:100% !important;
}
.site-box .inner-page.cms-articles-list-page .cms-category-slider-arrow {
  top:50% !important;
}

/* On phones, keep 16:9 imagery readable: show the title panel BELOW the photo
   rather than covering potentially important text in portrait/infographic uploads. */
@media (max-width:767px) {
  .site-box .inner-page.cms-articles-list-page .cms-category-slide-link {
    display:flex !important;
    flex-direction:column !important;
    aspect-ratio:auto !important;
    height:auto !important;
  }
  .site-box .inner-page.cms-articles-list-page .cms-category-slide-image,
  .site-box .inner-page.cms-articles-list-page .cms-category-slide-noimage {
    flex:0 0 auto !important;
    aspect-ratio:16 / 9 !important;
    height:auto !important;
    width:100% !important;
    max-height:none !important;
  }
  .site-box .inner-page.cms-articles-list-page .cms-category-slide-caption {
    position:relative !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    box-sizing:border-box !important;
    width:100% !important;
    max-width:100% !important;
    height:150px !important;
    min-height:150px !important;
    padding:13px 20px !important;
    border:0 !important;
    border-radius:0 !important;
    background:linear-gradient(110deg,rgba(248,252,255,.99),rgba(234,248,253,.99)) !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }
  .site-box .inner-page.cms-articles-list-page .cms-category-slide-caption h2 {
    font-size:clamp(16px,4.1vw,21px) !important;
    -webkit-line-clamp:3 !important;
    line-height:1.3 !important;
    margin-bottom:6px !important;
  }
  .site-box .inner-page.cms-articles-list-page .cms-category-slider-arrow {
    top:29% !important;
  }
}

@media (max-width:380px) {
  .site-box .inner-page.cms-articles-list-page .cms-category-slide-caption {
    height:158px !important;
    min-height:158px !important;
    padding:12px 14px !important;
  }
}

/* news-cards-motion-v98.css */
/* 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;
  }
}
