/* ==========================================================
   TASC — tasarım düzeltmeleri ve sosyal medya akışı
   ========================================================== */

/* Masaüstü slider yüksekliği (index.php'deki kural media query içinde kalmıştı) */
.image-overly-dark-opacity { background-size: cover; background-position: center; min-height: 85vh; display: flex; align-items: center; }

/* Ana sayfa "About" HTML alanı: tutarlı tipografi ve okunabilir satır uzunluğu */
#why-us { background: #fafafa; }
#why-us .py-5 { max-width: 920px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
#why-us h1, #why-us h2, #why-us h3, #why-us h4 {
  font-family: 'Red Hat Display', sans-serif !important;
  font-weight: 700 !important;
  color: #1d1d1f !important;
  margin: 2.2rem 0 1rem;
}
#why-us h3:first-child, #why-us h2:first-child { margin-top: 0; }
#why-us p, #why-us li { font-size: 17px; line-height: 1.75; color: #444; }
#why-us ul { text-align: left; display: inline-block; }

/* Kart başlıkları ve görselleri */
.themeioan_event article { border-radius: 10px; overflow: hidden; box-shadow: 0 6px 22px rgba(0,0,0,.06); }
.themeioan_event .event-photo img { transition: transform .4s ease; }
.themeioan_event:hover .event-photo img { transform: scale(1.04); }
.themeioan_event h5.title a { color: #1d1d1f; text-decoration: none; }
.themeioan_event h5.title a:hover { color: var(--renk); }

/* Üst bar adresinin sonunda kalan gereksiz "/" ve taşma */
.social_top_header a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; max-width: 100%; }

/* Mobil slider: metni görselin altına al (küçük ekranda üst üste binmesin) */
@media (max-width: 768px) {
  .mobile-slide-container { margin-bottom: 0 !important; }
  .mobile-slide-text {
    position: static !important; transform: none !important; border-radius: 0 !important;
    background: #111 !important; padding: 18px 16px 22px !important;
  }
  .mobile-slide-text h2 { font-size: 20px !important; }
  .mobile-slide-text p { font-size: 14px !important; }
  .mobile-slide-button { align-self: center; }
  #why-us p, #why-us li { font-size: 15px; }
}

/* ---------- Sosyal medya akışı ---------- */
.tasc-social { padding: 80px 0 60px; background: #f4f5f7; }
.tasc-social__lead { color: #666; margin-top: 12px; }
.tasc-social__card { background: #fff; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.07); padding: 18px; height: 100%; display: flex; flex-direction: column; }
.tasc-social__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #eee; margin-bottom: 14px; }
.tasc-social__head strong { display: block; font-size: 16px; color: #1d1d1f; line-height: 1.2; }
.tasc-social__head a { color: #777; font-size: 14px; text-decoration: none; }
.tasc-social__icon { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; flex-shrink: 0; }
.tasc-social__icon--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.tasc-social__icon--x { background: #000; }
.tasc-social__follow { margin-left: auto; background: var(--renk); color: #fff !important; padding: 7px 18px; border-radius: 999px; font-weight: 600; font-size: 14px !important; }
.tasc-social__follow:hover { opacity: .9; }
.tasc-social__embed { flex: 1; min-height: 420px; overflow: hidden; border-radius: 10px; }
.tasc-social__embed--ig iframe { width: 100%; height: 560px; border: 0; display: block; }
.tasc-x-fallback { text-align: center; padding: 60px 20px; color: #555; }
.tasc-ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tasc-ig-item { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background: #eee; }
.tasc-ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tasc-ig-item:hover img { transform: scale(1.06); }
.tasc-ig-play { position: absolute; top: 8px; right: 8px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
@media (max-width: 575px) {
  .tasc-ig-grid { grid-template-columns: repeat(2, 1fr); }
  .tasc-social__embed--ig iframe { height: 480px; }
}

/* ---------- Footer ---------- */
.tasc-footer { background: #141414; color: #bdbdbd; padding: 60px 0 0; }
.tasc-footer__logo img { max-height: 54px; width: auto; background: #fff; padding: 8px 12px; border-radius: 8px; }
.tasc-footer__about { margin-top: 16px; font-size: 15px; line-height: 1.7; color: #a9a9a9; }
.tasc-footer__title { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.tasc-footer__title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--renk); border-radius: 2px; }
.tasc-footer__links, .tasc-footer__contact { list-style: none; padding: 0; margin: 0; }
.tasc-footer__links li { margin-bottom: 9px; }
.tasc-footer__links a, .tasc-footer__contact a { color: #bdbdbd; text-decoration: none; }
.tasc-footer__links a:hover, .tasc-footer__contact a:hover { color: #fff; }
.tasc-footer__contact li { display: flex; gap: 12px; margin-bottom: 12px; line-height: 1.5; }
.tasc-footer__contact i { color: var(--renk); width: 16px; margin-top: 4px; }
.tasc-footer__social { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.tasc-footer__social a { width: 38px; height: 38px; border-radius: 50%; background: #262626; color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.tasc-footer__social a:hover { background: var(--renk); }
.tasc-footer__bottom { border-top: 1px solid #262626; margin-top: 30px; padding: 18px 0; font-size: 14px; color: #8a8a8a; text-align: center; }

/* ---------- X gönderi kartları ---------- */
.tasc-x-list { flex: 1; max-height: 620px; overflow-y: auto; padding-right: 4px; }
.tasc-x-post { padding: 14px 2px 16px; border-bottom: 1px solid #eee; }
.tasc-x-post:last-child { border-bottom: 0; }
.tasc-x-post__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tasc-x-post__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.tasc-x-post__head strong { display: block; font-size: 15px; color: #0f1419; line-height: 1.2; }
.tasc-x-post__head span, .tasc-x-post__head span a { font-size: 13px; color: #536471; text-decoration: none; }
.tasc-x-post__text { font-size: 15px; line-height: 1.5; color: #0f1419; margin: 0 0 10px; overflow-wrap: anywhere; }
.tasc-x-post__text a { color: #1d9bf0; text-decoration: none; }
.tasc-x-post__media { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid #eee; }
.tasc-x-post__media img { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.tasc-x-post__meta { display: flex; gap: 18px; margin-top: 10px; font-size: 13px; }
.tasc-x-post__meta a { color: #536471; text-decoration: none; }
.tasc-x-post__meta a:hover { color: var(--renk); }
.tasc-x-post__open { margin-left: auto; font-weight: 600; }

/* ---------- Sosyal akış v4: Instagram tam genişlik (24 gönderi), X kartları yan yana ---------- */
.tasc-social .tasc-social__card { height: auto; }
.tasc-ig-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tasc-ig-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-size: 12px; line-height: 1.35;
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tasc-ig-item:hover .tasc-ig-caption { opacity: 1; }
.tasc-social__embed--ig { max-width: 560px; margin: 0 auto; min-height: 0; }
.tasc-social__embed--ig iframe { height: 470px; }

.tasc-x-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tasc-x-grid .tasc-x-post { border: 1px solid #eee; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; }
.tasc-x-grid .tasc-x-post:last-child { border-bottom: 1px solid #eee; }
.tasc-x-grid .tasc-x-post__media { margin-bottom: 10px; }
.tasc-x-grid .tasc-x-post__media img { aspect-ratio: 4 / 3; max-height: none; }
.tasc-x-grid .tasc-x-post__text {
  font-size: 14px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.tasc-x-grid .tasc-x-post__meta { margin-top: auto; padding-top: 8px; }

@media (max-width: 991px) {
  .tasc-ig-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tasc-x-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .tasc-ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tasc-ig-item:nth-child(n+13) { display: none; }   /* telefonda 12 fotoğraf yeterli */
  .tasc-x-grid { grid-template-columns: 1fr; }
  .tasc-social__embed--ig iframe { height: 470px; }
}

/* ---------- Sosyal akış v6: jetonsuz (6 gönderi) yan yana düzen ---------- */
.tasc-social__layout.is-full .tasc-social__card--ig { margin-bottom: 24px; }
.tasc-social__embed--ig { width: 100%; max-width: 540px; margin: 0 auto; }
.tasc-social__embed--ig iframe { width: 100% !important; height: 620px; transition: height .2s ease; }
.tasc-social__layout.is-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tasc-social__layout.is-split .tasc-x-grid { grid-template-columns: minmax(0, 1fr); max-height: 560px; overflow-y: auto; padding-right: 4px; gap: 12px; }
.tasc-social__layout.is-split .tasc-x-post__media img { aspect-ratio: 16 / 9; }
@media (max-width: 991px) {
  .tasc-social__layout.is-split { grid-template-columns: minmax(0, 1fr); }
  .tasc-social__layout.is-split .tasc-x-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; overflow: visible; }
}
@media (max-width: 575px) {
  .tasc-social__layout.is-split .tasc-x-grid { grid-template-columns: minmax(0, 1fr); }
  .tasc-social__embed--ig iframe { height: 560px; }
}
