/* Blog posts (app/parcalar/blog.php): service page styles plus date, author, sharing and post lists */

/* Top: category, title, date and reading time */
/* category as a calm red line of text (not a button), with room above and below */
.as-b-ust .as-h-yol { margin-bottom: 0; }
.as-b-kategori { margin: 30px 0 14px !important; }
.as-b-kategori a { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .88) !important; text-decoration: none; }
.as-b-kategori a::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: var(--as-kirmizi); }
.as-b-kategori a:hover { color: #fff !important; }
.as-b-ust h1 { font-size: clamp(30px, 3.6vw, 48px) !important; margin-top: 0 !important; }
/* date and reading time under a thin line */
.as-b-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; width: fit-content; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 15px; color: rgba(255, 255, 255, .78); }
.as-b-meta span { display: inline-flex; align-items: center; gap: 8px; }
.as-b-meta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.as-b-ust .as-h-foto img { aspect-ratio: 3 / 2; object-fit: cover; }

/* Author and sharing at the end of the text */
.as-b-yazar { display: flex; align-items: center; gap: 16px; max-width: 680px; margin: 40px 0 0; padding: 20px; border-radius: 18px; background: var(--as-gri); }
.as-b-yazar img { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.as-b-yazar p { margin: 0 !important; }
.as-b-yazar-ust { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--as-kirmizi); }
.as-b-yazar-ad { font-size: 18px; font-weight: 800; color: var(--as-lacivert); }
.as-b-yazar-unvan { font-size: 15px; color: #4a5763; }
.as-b-paylas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; max-width: 680px; margin: 24px 0 0; padding-top: 22px; border-top: 1px solid #e3e7ec; }
.as-b-paylas p { margin: 0 !important; font-size: 15px; font-weight: 700; color: var(--as-lacivert); }
.as-b-paylas ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.as-b-paylas li { padding: 0 !important; }
.as-b-paylas li::before { content: none !important; }
.as-b-paylas a, .as-b-kopyala { all: unset; box-sizing: border-box; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #d5dbe2; display: grid; place-items: center; cursor: pointer; color: var(--as-lacivert); transition: background-color .18s, border-color .18s, color .18s; }
.as-b-paylas a:hover, .as-b-kopyala:hover { background: var(--as-lacivert); border-color: var(--as-lacivert); color: #fff; }
.as-b-paylas a:focus-visible, .as-b-kopyala:focus-visible { outline: 3px solid var(--as-kirmizi); outline-offset: 2px; }
.as-b-paylas svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.as-b-kopyala.tamam { background: var(--as-kirmizi); border-color: var(--as-kirmizi); color: #fff; }

/* Post cards: small (latest posts at the side) and large (related articles) */
.as-b-son { padding: 22px; border-radius: 20px; border: 1px solid #e3e7ec; background: #fff; }
.as-b-son h2, .as-b-ilgili h2 { margin: 0 0 14px; font-size: 20px; font-weight: 800; color: var(--as-lacivert); }
.as-b-son ul, .as-b-ilgili ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.as-b-kart { display: flex; gap: 12px; align-items: flex-start; padding: 8px; border-radius: 12px; text-decoration: none; color: var(--as-lacivert); transition: background-color .18s; }
.as-b-kart:hover { background: var(--as-gri); }
.as-b-kart-resim { flex: none; width: 84px; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--as-gri); }
.as-b-kart-resim img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-b-kart-yazi { display: grid; gap: 3px; min-width: 0; }
.as-b-kart strong { font-size: 14.5px; line-height: 1.35; font-weight: 700; }
.as-b-kart:hover strong { color: var(--as-kirmizi); }
.as-b-etiket { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--as-kirmizi); }
.as-b-tarih { font-size: 13px; color: var(--as-gri-yazi); }
.as-b-tumu { display: inline-flex; margin: 10px 8px 0; font-size: 14px; font-weight: 700; color: var(--as-kirmizi) !important; }
.as-b-ilgili { padding: clamp(40px, 5vw, 72px) 0; background: var(--as-gri); }
.as-b-ilgili h2 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 24px; }
.as-b-ilgili ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.as-b-kart.buyuk { flex-direction: column; gap: 0; padding: 0; height: 100%; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(5, 28, 44, .06); }
.as-b-kart.buyuk:hover { background: #fff; box-shadow: 0 16px 40px rgba(5, 28, 44, .12); }
.as-b-kart.buyuk .as-b-kart-resim { width: 100%; border-radius: 0; }
.as-b-kart.buyuk .as-b-kart-yazi { padding: 16px 18px 20px; gap: 6px; }
.as-b-kart.buyuk strong { font-size: 17px; }

/* The side column holds the form and the latest posts */
.as-b-govde .as-h-yan { display: grid; gap: 20px; align-content: start; }

@media (max-width: 960px) {
  .as-b-ilgili ul { grid-template-columns: minmax(0, 1fr); }
  .as-b-kart.buyuk { flex-direction: row; gap: 12px; padding: 10px; }
  .as-b-kart.buyuk .as-b-kart-resim { width: 110px; border-radius: 10px; }
  .as-b-kart.buyuk .as-b-kart-yazi { padding: 0; }
}
@media (max-width: 767px) {
  .as-b-meta { font-size: 14px; }
  .as-b-yazar { padding: 16px; }
  .as-b-yazar img { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .as-b-paylas a, .as-b-kopyala, .as-b-kart { transition: none; }
}
/* the post's own title is the big heading right below, so the page path ends at the category */
.as-b-ust .as-h-yol li:last-child { display: none; }

/* ======== Blog home and category pages (app/parcalar/blog-liste.php) ======== */
.as-gorunmez { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* navy top: page path, title, one line under it */
.as-bl-ust { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 68px) 0 clamp(40px, 5.5vw, 76px); background: var(--as-lacivert); color: #fff; }
.as-bl-ust::before { content: ''; position: absolute; inset: 0; background: radial-gradient(55% 90% at 100% 0%, rgba(255, 255, 255, .07), transparent 70%); pointer-events: none; }
.as-bl-ust::after { content: ''; position: absolute; left: 0; bottom: 0; width: min(220px, 30vw); height: 4px; background: var(--as-kirmizi); }
.as-bl-ust .as-ic { position: relative; }
.as-bl-ust h1 { margin: 22px 0 0 !important; color: #fff !important; font-size: clamp(36px, 4.6vw, 60px) !important; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.as-bl-giris { max-width: 640px; margin: 18px 0 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .8); }
.as-bl-sayi { margin: 14px 0 0; font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, .75); }

/* category row */
.as-bl-kategoriler { border-bottom: 1px solid #e3e7ec; background: #fff; }
.as-bl-cipler { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 22px 0; }
.as-bl-kategoriler a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid #d5dbe2; background: #fff; color: var(--as-lacivert) !important; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: border-color .18s, background-color .18s, color .18s; }
.as-bl-kategoriler a:hover { border-color: var(--as-lacivert); }
.as-bl-cip-sayi { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--as-gri); font-size: 13px; font-weight: 700; color: var(--as-gri-yazi); }
.as-bl-kategoriler a[aria-current] { background: var(--as-lacivert); border-color: var(--as-lacivert); color: #fff !important; }
.as-bl-kategoriler a[aria-current] .as-bl-cip-sayi { background: rgba(255, 255, 255, .16); color: #fff; }

/* section names */
.as-bl-bolum-ad, .as-bl-bolum-baslik { display: flex; align-items: center; gap: 12px; margin: 0 0 22px !important; font-size: 13px !important; font-weight: 800 !important; letter-spacing: .1em !important; text-transform: uppercase; color: var(--as-lacivert) !important; line-height: 1.3 !important; }
.as-bl-bolum-ad::before, .as-bl-bolum-baslik::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: var(--as-kirmizi); }

/* cards */
.as-bl-kart { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 18px; border: 1px solid #e3e7ec; background: #fff; overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; }
.as-bl-kart:hover { border-color: transparent; box-shadow: 0 18px 44px rgba(5, 28, 44, .12); transform: translateY(-3px); }
.as-bl-kart:focus-within { outline: 3px solid var(--as-kirmizi); outline-offset: 3px; }
.as-bl-kart a:focus-visible { outline: none; }
.as-bl-resim { aspect-ratio: 3 / 2; overflow: hidden; background: var(--as-gri); }
.as-bl-resim img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.as-bl-kart:hover .as-bl-resim img { transform: scale(1.04); }
.as-bl-yazi { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.as-bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 10px; font-size: 13px; line-height: 1.4; color: var(--as-gri-yazi); }
.as-bl-etiket { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--as-kirmizi); }
.as-bl-etiket + time { display: inline-flex; align-items: center; gap: 14px; }
.as-bl-etiket + time::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #b9c1ca; }
.as-bl-baslik { margin: 0 !important; font-size: 19px !important; font-weight: 800 !important; line-height: 1.35 !important; letter-spacing: -.005em; }
.as-bl-baslik a { color: var(--as-lacivert) !important; text-decoration: none; }
.as-bl-baslik a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.as-bl-kart:hover .as-bl-baslik a { color: var(--as-kirmizi) !important; }
.as-bl-ozet { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 10px 0 0; font-size: 15.5px; line-height: 1.6; color: #4a5763; }
.as-bl-devam { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-size: 15px; font-weight: 700; color: var(--as-kirmizi); }
.as-bl-devam svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.as-bl-kart:hover .as-bl-devam svg { transform: translateX(4px); }

/* newest post: picture and text side by side */
.as-bl-one-bolum { padding: clamp(36px, 4.5vw, 64px) 0 0; }
.as-bl-kart.one { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); box-shadow: 0 14px 40px rgba(5, 28, 44, .07); }
.as-bl-kart.one .as-bl-resim { aspect-ratio: auto; min-height: 100%; }
.as-bl-kart.one .as-bl-resim img { aspect-ratio: 3 / 2; }
.as-bl-kart.one .as-bl-yazi { justify-content: center; padding: clamp(26px, 3.6vw, 52px); }
.as-bl-kart.one .as-bl-baslik { font-size: clamp(24px, 2.4vw, 34px) !important; line-height: 1.22 !important; letter-spacing: -.015em; text-wrap: balance; }
.as-bl-kart.one .as-bl-ozet { -webkit-line-clamp: 4; margin-top: 16px; font-size: 17px; }
.as-bl-kart.one .as-bl-devam { margin-top: 0; padding-top: 24px; font-size: 16px; }

/* all posts */
.as-bl-izgara-bolum { padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); }
.as-bl-izgara { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.as-bl-izgara.kisa > li[data-sonra] { display: none; }
.as-bl-daha { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 40px; }
.as-bl-gosterilen { margin: 0; font-size: 14.5px; color: var(--as-gri-yazi); }
.as-bl-gosterilen:empty { display: none; }
.as-bl-daha .as-dugme { min-width: 240px; }

@media (max-width: 1024px) {
  .as-bl-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
/* home page latest posts on tablet: two cards side by side, no single card left alone on a row */
@media (min-width: 768px) and (max-width: 1024px) {
  .as-ana-blog .as-bl-izgara > li:nth-child(3) { display: none; }
}
@media (max-width: 860px) {
  .as-bl-kart.one { grid-template-columns: minmax(0, 1fr); }
  .as-bl-kart.one .as-bl-resim { min-height: 0; }
}
@media (max-width: 767px) {
  .as-bl-izgara { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .as-bl-yazi { padding: 18px 18px 20px; }
  .as-bl-baslik { font-size: 18px !important; }
  .as-bl-kart.one .as-bl-yazi { padding: 22px 20px 24px; }
  .as-bl-kart.one .as-bl-ozet { font-size: 16px; -webkit-line-clamp: 3; }
  .as-bl-daha .as-dugme { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .as-bl-kart, .as-bl-resim img, .as-bl-devam svg { transition: none; }
  .as-bl-kart:hover { transform: none; }
  .as-bl-kart:hover .as-bl-resim img { transform: none; }
}
@media (max-width: 767px) {
  /* blog home: the path would be only "Home", so it is hidden; the title says where you are */
  .as-bl-ust .as-h-yol:not(:has(li:nth-child(3))) { display: none; }
  .as-bl-ust .as-h-yol + h1 { margin-top: 0 !important; }
  /* shorter cards on phones */
  .as-bl-izgara .as-bl-resim { aspect-ratio: 16 / 9; }
}

/* phones: the category row becomes one box that opens a list (no sideways scrolling) */
.as-bl-kat-ac { display: none; }
@media (max-width: 767px) {
  .as-bl-cipler { display: none !important; }
  .as-bl-kategoriler { border-bottom: 0; }
  .as-bl-kat-ac { display: block; margin: 20px 0 0; border: 1.5px solid #d5dbe2; border-radius: 16px; background: #fff; overflow: hidden; }
  .as-bl-kat-ac[open] { border-color: var(--as-lacivert); box-shadow: 0 12px 30px rgba(5, 28, 44, .1); }
  .as-bl-kat-ac summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; min-height: 64px; padding: 10px 16px 10px 18px; cursor: pointer; list-style: none; }
  .as-bl-kat-ac summary::-webkit-details-marker { display: none; }
  .as-bl-kat-ust { grid-column: 1; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--as-kirmizi); }
  .as-bl-kat-secili { grid-column: 1; display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--as-lacivert); }
  .as-bl-kat-ac summary svg { grid-column: 2; grid-row: 1 / 3; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--as-gri); fill: none; stroke: var(--as-lacivert); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s, background-color .25s; }
  .as-bl-kat-ac[open] summary svg { transform: rotate(180deg); background: var(--as-lacivert); stroke: #fff; }
  .as-bl-kat-ac ul { list-style: none; margin: 0; padding: 6px 8px 8px; border-top: 1px solid #e3e7ec; }
  .as-bl-kat-ac li + li { border-top: 1px solid #f0f2f5; }
  .as-bl-kat-ac a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 0 10px; border-radius: 10px; color: var(--as-lacivert) !important; font-size: 16px; font-weight: 600; text-decoration: none; border: 0; background: transparent; white-space: normal; }
  .as-bl-kat-ac a:active { background: var(--as-gri); }
  .as-bl-kat-ac a[aria-current] { font-weight: 800; color: var(--as-kirmizi) !important; }
  .as-bl-kat-ac a[aria-current]::before { content: ''; width: 16px; height: 2px; margin-right: -2px; border-radius: 2px; background: var(--as-kirmizi); order: -1; }
  .as-bl-kat-ac a[aria-current] { justify-content: flex-start; gap: 12px; background: transparent; }
  .as-bl-kat-ac a[aria-current] .as-bl-cip-sayi { margin-left: auto; background: var(--as-kirmizi); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .as-bl-kat-ac summary svg { transition: none; } }
