/* Ana sayfa hizmet kartları — yalnızca index.php. Tema renkleri: #0066B2 / #2b96cc (mavi), #E30916 (kırmızı) */

.hizmet-kartlar { padding: 50px 0 30px; background: #f4f7fa; }
.hizmet-kartlar-baslik { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 30px; color: #1b2a3a; text-align: center; text-transform: none; margin: 0 0 34px; }
.hizmet-kartlar-baslik:after { content: ""; display: block; width: 48px; height: 3px; margin: 12px auto 0; background: #E30916; border-radius: 2px; }

/* Eşit yükseklikli kartlar için satırı flex yap (bootstrap clearfix pseudo'ları flex'i bozar) */
.hizmet-kartlar .row { display: flex; flex-wrap: wrap; }
.hizmet-kartlar .row:before, .hizmet-kartlar .row:after { display: none; }
.hizmet-kartlar .row > [class*="col-"] { display: flex; float: none; }

.hizmet-kart { --hk-renk: #0066B2; --hk-zemin: #e8f2fb;
  flex: 1; display: flex; flex-direction: column; align-items: flex-start;
  margin: 0 0 30px; padding: 28px 28px 24px; background: #fff;
  border: 1px solid #e3e9ef; border-radius: 14px; box-shadow: 0 4px 18px rgba(20, 45, 80, .05);
  color: #1b2a3a; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.hizmet-kart:hover, .hizmet-kart:focus { transform: translateY(-4px); border-color: var(--hk-renk); box-shadow: 0 12px 30px rgba(20, 45, 80, .12); color: #1b2a3a; text-decoration: none; }

.hizmet-kart-ikon { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 14px; background: var(--hk-zemin); margin: 0 0 18px; transition: background .2s; }
.hizmet-kart-ikon svg { width: 28px; height: 28px; fill: none; stroke: var(--hk-renk); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.hizmet-kart:hover .hizmet-kart-ikon { background: var(--hk-renk); }
.hizmet-kart:hover .hizmet-kart-ikon svg { stroke: #fff; }

.hizmet-kart-baslik { font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.hizmet-kart-aciklama { font-size: 15px; line-height: 1.5; color: #5f6b78; margin: 0 0 18px; }
.hizmet-kart-incele { margin-top: auto; font-weight: 700; font-size: 15px; color: var(--hk-renk); }
.hizmet-kart-incele span { display: inline-block; transition: transform .2s; }
.hizmet-kart:hover .hizmet-kart-incele span { transform: translateX(4px); }

.hizmet-kart--pembe    { --hk-renk: #d63c74; --hk-zemin: #fdecf2; }
.hizmet-kart--kirmizi  { --hk-renk: #E30916; --hk-zemin: #fdeced; }
.hizmet-kart--mavi     { --hk-renk: #0066B2; --hk-zemin: #e8f2fb; }
.hizmet-kart--mor      { --hk-renk: #7a4bbd; --hk-zemin: #f1ebfa; }
.hizmet-kart--turuncu  { --hk-renk: #d8700c; --hk-zemin: #fdf1e4; }
.hizmet-kart--turkuaz  { --hk-renk: #0b8f9b; --hk-zemin: #e3f5f6; }
.hizmet-kart--lacivert { --hk-renk: #2f4a9e; --hk-zemin: #e9edf8; }
.hizmet-kart--yesil    { --hk-renk: #23884c; --hk-zemin: #e6f5ec; }
.hizmet-kart--sari     { --hk-renk: #b58300; --hk-zemin: #fcf4dc; }

/* Telefonda yatay, kompakt kart: ikon solda */
@media (max-width: 767px) {
  .hizmet-kartlar { padding: 34px 0 14px; }
  .hizmet-kartlar-baslik { font-size: 24px; margin-bottom: 24px; }
  .hizmet-kartlar .row > [class*="col-"] { width: 100%; }
  .hizmet-kart { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: center; padding: 18px; margin-bottom: 14px; }
  .hizmet-kart-ikon { grid-row: 1 / span 3; width: 52px; height: 52px; margin: 0; align-self: start; }
  .hizmet-kart-baslik { font-size: 17px; margin: 0 0 4px; }
  .hizmet-kart-aciklama { font-size: 14px; margin: 0 0 6px; }
  .hizmet-kart-incele { font-size: 14px; }
}

/* Ana sayfa: son duyurular + son makaleler (index.php .anasayfa-icerik) */
.anasayfa-icerik { padding: 50px 0 30px; background: #fff; }
.ai-baslik { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 26px; color: #1b2a3a; text-transform: none; margin: 0 0 22px; }
.ai-baslik:after { content: ""; display: block; width: 40px; height: 3px; margin: 10px 0 0; background: #E30916; border-radius: 2px; }

.ai-duyurular { list-style: none; margin: 0 0 16px; padding: 0; }
.ai-duyurular li { border-bottom: 1px solid #e3e9ef; }
.ai-duyurular a { display: flex; align-items: center; gap: 14px; padding: 14px 0; color: #1b2a3a; text-decoration: none; }
.ai-duyurular a:hover .ai-duyuru-baslik { color: #0066B2; }
.ai-tarih { flex: 0 0 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 56px; border-radius: 12px; background: #e8f2fb; color: #0066B2; font-size: 11px; font-weight: 700; letter-spacing: .5px; line-height: 1.1; }
.ai-tarih strong { font-size: 20px; }
.ai-duyuru-baslik { font-weight: 600; font-size: 16px; line-height: 1.4; transition: color .2s; }

/* Eşit yükseklikli makale kartları */
.ai-makaleler { display: flex; flex-wrap: wrap; }
.ai-makaleler:before, .ai-makaleler:after { display: none; }
.ai-makaleler > [class*="col-"] { display: flex; float: none; }
.ai-makale { flex: 1; display: flex; flex-direction: column; margin: 0 0 20px; background: #fff; border: 1px solid #e3e9ef; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(20, 45, 80, .05); color: #1b2a3a; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.ai-makale:hover, .ai-makale:focus { transform: translateY(-4px); border-color: #0066B2; box-shadow: 0 12px 30px rgba(20, 45, 80, .12); color: #1b2a3a; text-decoration: none; }
.ai-makale-gorsel { display: block; aspect-ratio: 16 / 10; background: #e8f2fb center / cover no-repeat; }
.ai-makale-govde { display: flex; flex-direction: column; padding: 16px 18px 18px; }
.ai-makale-tarih { font-size: 12px; font-weight: 600; color: #E30916; margin: 0 0 4px; }
.ai-makale-baslik { font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 17px; line-height: 1.35; margin: 0 0 6px; }
.ai-makale-ozet { font-size: 14px; line-height: 1.5; color: #5f6b78; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.ai-tumu { display: inline-block; font-weight: 700; font-size: 15px; color: #0066B2; margin: 0 0 20px; }
.ai-tumu span { display: inline-block; transition: transform .2s; }
.ai-tumu:hover span { transform: translateX(4px); }
.ai-tumu--sag { float: right; }

@media (max-width: 991px) and (min-width: 768px) {
  .ai-makaleler > .col-sm-4:nth-child(3) { display: none; } /* tablette 2 kart */
  .ai-makaleler > .col-sm-4 { width: 50%; }
}
@media (max-width: 767px) {
  .ai-makaleler > [class*="col-"] { width: 100%; } /* flex satırda col-sm-* genişliksiz kalıp daralmasın */
  .ai-tumu--sag { float: none; }
}

/* Mobil hero — slider'ın gizlendiği 525px altında görünür (index.php .mobil-hero) */
.mobil-hero { display: none; }
@media (max-width: 524px) {
  .mobil-hero { display: block; padding: 30px 20px 26px; color: #fff; background: linear-gradient(135deg, #0066B2 0%, #2b96cc 100%); }
  .mh-ust { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .4px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); margin: 0 0 14px; }
  .mh-baslik { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 28px; line-height: 1.2; color: #fff; text-transform: none; letter-spacing: 0; margin: 0 0 10px; }
  .mh-metin { font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .92); margin: 0 0 20px; }
  .mh-butonlar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
  .mh-buton { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 50px; padding: 0 8px; white-space: nowrap; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 30, 70, .2); }
  .mh-buton svg { width: 20px; height: 20px; flex: none; }
  .mh-buton--tel { background: #fff; color: #0066B2; }
  .mh-buton--tel svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .mh-buton--wa { background: #25D366; color: #fff; }
  .mh-buton--wa svg { fill: currentColor; }
  .mh-buton:hover, .mh-buton:focus { text-decoration: none; opacity: .92; }
  .mh-buton--tel:hover, .mh-buton--tel:focus { color: #0066B2; }
  .mh-buton--wa:hover, .mh-buton--wa:focus { color: #fff; }
  .mh-linkler { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .mh-linkler a { color: #fff; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .5); }
  .mh-linkler a:hover, .mh-linkler a:focus { color: #fff; text-decoration-color: #fff; }
}

/* Hızlı erişim şeridi (index.php .hizli-erisim). Renkler düz; eski şeritteki opacity beyaz yazıyı da soldurup kontrastı düşürüyordu. */
.hizli-erisim { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); background: #d70b17; }
.he-kutu { display: flex; flex-direction: column; align-items: flex-start; padding: 34px 26px 30px; color: #fff; text-decoration: none; border-left: 1px solid rgba(255, 255, 255, .16); transition: background .2s; }
.he-kutu:first-child { border-left: 0; }
a.he-kutu:hover, a.he-kutu:focus { background: #bf0913; color: #fff; text-decoration: none; }
.he-kutu--test { background: #b5101a; }

.he-ikon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(255, 255, 255, .15); margin: 0 0 16px; }
.he-ikon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.he-baslik { font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 20px; line-height: 1.25; color: #fff; margin: 0 0 8px; }
.he-metin { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .92); margin: 0 0 20px; }
.he-buton { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 8px; font-weight: 700; font-size: 14px; color: #fff; transition: background .2s, color .2s; }
.he-buton span { display: inline-block; transition: transform .2s; }
a.he-kutu:hover .he-buton, a.he-buton:hover, a.he-buton:focus { background: #fff; color: #b5101a; text-decoration: none; }
a.he-kutu:hover .he-buton span, a.he-buton:hover span { transform: translateX(3px); }

.he-ara { display: flex; width: 100%; margin: 6px 0 14px; background: #fff; border-radius: 8px; overflow: hidden; }
.he-ara input { flex: 1; min-width: 0; height: 44px; border: 0; padding: 0 12px; font-size: 15px; color: #1b2a3a; background: transparent; }
.he-ara input:focus { outline: none; }
.he-ara:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.he-ara button { flex: none; width: 46px; border: 0; background: #1b2a3a; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.he-ara button svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.he-harfler { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; }
.he-harfler a { display: flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 4px; border-radius: 6px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; transition: background .2s, color .2s; }
.he-harfler a:hover, .he-harfler a:focus { background: #fff; color: #b5101a; text-decoration: none; }

/* Tablet: Test Rehberi üstte tam genişlik, diğer dördü yan yana */
@media (max-width: 1199px) {
  .hizli-erisim { grid-template-columns: repeat(4, 1fr); }
  .he-kutu--test { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(220px, 340px) 1fr auto; align-items: center; column-gap: 24px; padding: 22px 26px; }
  .he-kutu--test .he-baslik, .he-kutu--test .he-ara, .he-kutu--test .he-harfler { margin: 0; }
  .he-kutu--test .he-buton { margin: 0; }
  .he-kutu:nth-child(2) { border-left: 0; }
  .he-kutu { padding: 28px 22px 26px; }
  .he-baslik { font-size: 18px; }
}

/* Telefon: Test Rehberi kartı + satır listesi (ikon solda, ok sağda) */
@media (max-width: 767px) {
  .hizli-erisim { display: block; }
  .he-kutu--test { display: flex; align-items: flex-start; padding: 24px 20px 22px; }
  .he-kutu--test .he-baslik { margin: 0 0 10px; }
  .he-kutu--test .he-ara { margin: 0 0 14px; }
  .he-harfler { display: none; }
  .he-kutu:not(.he-kutu--test) { display: grid; grid-template-columns: 44px 1fr 20px; column-gap: 14px; align-items: center; padding: 16px 20px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .he-kutu:not(.he-kutu--test) .he-ikon { grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; }
  .he-kutu:not(.he-kutu--test) .he-baslik { font-size: 17px; margin: 0 0 2px; }
  .he-kutu:not(.he-kutu--test) .he-metin { grid-column: 2; font-size: 14px; margin: 0; }
  .he-kutu:not(.he-kutu--test) .he-buton { grid-column: 3; grid-row: 1 / span 2; padding: 0; border: 0; font-size: 0; }
  .he-kutu:not(.he-kutu--test) .he-buton span { font-size: 20px; }
  a.he-kutu:hover .he-buton { background: none; color: #fff; }
}
