/* KBD özel stiller — orijinal main CSS'in üzerine yazar. */

/* ---- Sosyal ikonlar: X (Twitter) SVG ---- */
.icon-x { display: inline-block; vertical-align: middle; }

/* ---- Footer: logo, dernek adı ve sosyal ikonlar sütunda ortalı ---- */
#footer-part .footer-about ul {
  padding-left: 0;
  margin-left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
#footer-part .footer-about ul li { margin: 0; }
#footer-part .footer-about ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  line-height: 1;
}
#footer-part .footer-about { padding-right: 0; text-align: center; }
#footer-part .footer-about .logo,
#footer-part .footer-about p { text-align: center; }
#footer-part .footer-about p { padding-left: 0; margin-left: 0; }

/* ---- Sosyal Etkinlikler: ortalı zaman çizgisi ---- */
.se-page .se-hint {
  font-style: italic;
  font-size: 14px;
  color: #8a94a0;
  text-align: center;
  margin: 0 0 30px;
}

.se-timeline { position: relative; padding: 10px 0 20px; }
.se-timeline::before {               /* orta çizgi */
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #e3e7ec;
}

.se-tl-item { position: relative; width: 50%; margin-bottom: 40px; }
.se-tl-item:last-child { margin-bottom: 0; }
.se-tl-item.se-right { margin-left: 50%; padding-left: 44px; }
.se-tl-item.se-left  { padding-right: 44px; text-align: right; }

/* Karşı tarafta hafif çizgili desen */
.se-tl-item::after {
  content: "";
  position: absolute;
  top: 40px;
  width: 70%;
  height: calc(100% - 20px);
  min-height: 90px;
  background: repeating-linear-gradient(135deg, rgba(7, 41, 77, .05) 0 1px, transparent 1px 9px);
  pointer-events: none;
}
.se-tl-item.se-right::after { right: calc(100% + 44px); }
.se-tl-item.se-left::after  { left: calc(100% + 44px); }

/* Nokta + kısa bağlantı çizgisi */
.se-tl-dot {
  position: absolute;
  top: 12px;
  width: 16px; height: 16px;
  border: 4px solid #e31d24;
  border-radius: 50%;
  background: #fff;
  z-index: 1;
}
.se-right .se-tl-dot { left: -8px; }
.se-left  .se-tl-dot { right: -8px; }
.se-tl-dot::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 22px; height: 2px;
  background: #e3e7ec;
}
.se-right .se-tl-dot::after { left: 14px; }
.se-left  .se-tl-dot::after { right: 14px; }

.se-tl-year {
  font-size: 30px;
  font-weight: 300;
  color: #3a4048;
  line-height: 1.2;
  margin: 0 0 12px;
}

.se-tl-events { list-style: none; margin: 0; padding: 0; }
.se-tl-events > li { margin-bottom: 6px; }
.se-tl-event {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 4px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid #e3e7ec;
  text-align: inherit;
  cursor: pointer;
  transition: border-color .2s ease;
}
.se-left .se-tl-event { justify-content: flex-end; }
.se-tl-title { font-size: 15px; font-weight: 500; color: #b5121b; }
.se-tl-date { font-size: 13px; color: #8a94a0; }
.se-tl-event:hover, .se-tl-event:not(.collapsed) { border-bottom-color: #e31d24; }
.se-tl-event:not(.collapsed) .se-tl-title { font-weight: 700; }
.se-tl-event:focus-visible { outline: 2px solid #e31d24; outline-offset: 2px; }

/* Küçük resimler */
.se-gallery.show, .se-gallery.collapsing {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 6px;
}
.se-gallery.show { padding: 10px 0 6px; }
.se-thumb { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; background: #eef1f4; }
.se-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.se-thumb:hover img { transform: scale(1.06); }

/* Mobil: çizgi solda, tek sütun */
@media (max-width: 767px) {
  .se-page .se-hint { text-align: left; }
  .se-timeline::before { left: 8px; }
  .se-tl-item, .se-tl-item.se-right, .se-tl-item.se-left {
    width: 100%; margin-left: 0; padding: 0 0 0 36px; text-align: left;
  }
  .se-tl-item::after { display: none; }
  .se-right .se-tl-dot, .se-left .se-tl-dot { left: 0; right: auto; }
  .se-right .se-tl-dot::after, .se-left .se-tl-dot::after { left: 14px; right: auto; width: 14px; }
  .se-left .se-tl-event { justify-content: flex-start; }
}

/* ---- Lightbox (kbd-custom.js) ---- */
.kbd-lightbox {
  position: fixed; inset: 0;
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 20, 38, .92);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}
.kbd-lightbox.is-open { opacity: 1; visibility: visible; }
.kbd-lb-figure { margin: 0; max-width: 90vw; text-align: center; }
.kbd-lb-figure img { max-width: 90vw; max-height: 82vh; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.kbd-lb-figure figcaption { color: #cfd6de; font-size: 14px; margin-top: 10px; }
.kbd-lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .08);
  border: 0; color: #fff;
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 30px; line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease;
}
.kbd-lightbox button:hover, .kbd-lightbox button:focus-visible { background: #e31d24; outline: none; }
.kbd-lb-close { top: 18px; right: 18px; }
.kbd-lb-prev  { left: 18px; top: 50%; margin-top: -23px; }
.kbd-lb-next  { right: 18px; top: 50%; margin-top: -23px; }
.kbd-lb-single .kbd-lb-prev, .kbd-lb-single .kbd-lb-next { display: none; }

@media (prefers-reduced-motion: reduce) {
  .se-tl-event, .se-thumb img, .kbd-lightbox, .kbd-lightbox button { transition: none; }
}

/* ---- Header üst bar: X ikonu diğer FA ikonlarıyla aynı hizada ---- */
.header-contact ul li a.x-twitter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---- Haberler / Yazılar listesi: her haber ayrı kart ---- */
#category .post {
  background: #fff;
  border: 1px solid #e3e7ec;
  border-left: 3px solid #07294d;
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(7, 41, 77, .04);
  transition: box-shadow .2s ease, border-left-color .2s ease;
}
#category .post:hover {
  border-left-color: #e31d24;
  box-shadow: 0 6px 18px rgba(7, 41, 77, .08);
}
#category .post .title { margin-bottom: 6px; }
#category .post .title h2 { margin: 0; line-height: 1.3; }
#category .post .title a { font-size: 20px; transition: color .2s ease; }
#category .post .title a:hover { color: #e31d24; }
#category .post .info:empty { display: none; }
#category .post .content { margin: 10px 0 0; color: #4a525c; line-height: 1.6; }
#category .post .content iframe { max-width: 100%; }
#category .post .content a.more_text {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 13px;
  transition: background-color .2s ease;
}
#category .post .content a.more_text:hover { background: #e31d24; color: #fff; }

@media (max-width: 575px) {
  #category .post { padding: 16px; }
  #category .post .title a { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  #category .post, #category .post .title a, #category .post .content a.more_text { transition: none; }
}

/* ---- Kamu Bilişim Projeleri: kurum adıyla poster arama ---- */
.kbp-search {
  margin: 40px 0 10px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e3e7ec;
  border-radius: 6px;
}
.kbp-search-label { display: block; font-size: 14px; font-weight: 600; color: #07294d; margin-bottom: 8px; }
.kbp-search-field { position: relative; }
.kbp-search-field .fa-search {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: #8a94a0; pointer-events: none;
}
.kbp-search-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  font-size: 15px;
  color: #1d2025;
  background: #f8fafb;
  border: 1px solid #d5dbe2;
  border-radius: 4px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.kbp-search-field input:focus {
  outline: none;
  background: #fff;
  border-color: #07294d;
  box-shadow: 0 0 0 3px rgba(7, 41, 77, .12);
}
.kbp-search-meta { margin-top: 8px; font-size: 13px; color: #8a94a0; }
.kbp-empty { margin: 12px 0 0; font-style: italic; color: #8a94a0; }
.kamubilisimprojeleri li[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .kbp-search-field input { transition: none; }
}

/* ---- Bilişim Eğitimleri: her eğitim akordeon (<details>) ---- */
.egitim-acc {
  background: #fff;
  border: 1px solid #e3e7ec;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}
.egitim-acc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-left: 3px solid #07294d;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.egitim-acc > summary::-webkit-details-marker { display: none; }
.egitim-acc > summary:hover { background: #f6f8fa; }
.egitim-acc > summary:focus-visible { outline: 2px solid #e31d24; outline-offset: -2px; }
.egitim-acc[open] > summary { border-left-color: #e31d24; border-bottom: 1px solid #eef1f4; }
.egitim-acc-title { font-size: 17px; font-weight: 700; color: #07294d; letter-spacing: .3px; }
.egitim-acc-icon { font-size: 20px; color: #07294d; transition: transform .25s ease; }
.egitim-acc[open] .egitim-acc-icon { transform: rotate(180deg); }
.egitim-acc-body { padding: 16px 22px 8px; }
.egitim-acc-body p { margin: 0 0 6px; color: #07294d; }
.egitim-acc-body ul { margin: 0 0 16px; padding-left: 18px; }
.egitim-acc-body ul li { list-style: disc; color: #4a525c; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  .egitim-acc > summary, .egitim-acc-icon { transition: none; }
}

/* ---- Kurumsal Üyeler: üye arama ---- */
.ku-search { margin: 10px 0 24px; }
.sponsor-logolari > [hidden] { display: none !important; }

/* ---- İletişim: bilgiler + harita ---- */
.iletisim-bilgi p { margin-bottom: 10px; }
.iletisim-harita {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid #e3e7ec;
  border-radius: 6px;
  overflow: hidden;
  background: #eef1f4;
}
.iletisim-harita iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.iletisim-yol {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-size: 14px; font-weight: 600; color: #07294d;
}
.iletisim-yol:hover { color: #e31d24; }
@media (max-width: 767px) {
  .iletisim-bilgi { margin-bottom: 20px; }
}

/* ---- Anasayfa: Son Yazılar kartları eşit yükseklikte (genişlik, yazı boyutları orijinal) ---- */
/* Slick'in düzenine dokunulmaz; yükseklik kbd-custom.js ile en uzun karta eşitlenir (min-height). */
#course-part .single-course { display: flex; flex-direction: column; }
#course-part .single-course .cont { flex: 1; display: flex; flex-direction: column; }
#course-part .single-course .course-teacher { margin-top: auto; }   /* yazar satırı hep en altta */

/* Son Yazılar altındaki "Tüm Yazılar" butonu */
#course-part .son-yazilar-btn { margin-top: 40px; }
#course-part .son-yazilar-btn .fa { margin-left: 6px; }

/* ---- Anasayfa: Hakkımızda (solda yazı, sağda tanıtım videosu) + Yaklaşan Etkinlikler + Videolar ---- */
#about-part.kbd-about { padding-bottom: 80px; }
.kbd-about-row { align-items: center; }
.kbd-about-text { padding: 20px 10px 20px 0; }
.kbd-about-text .about-cont p { padding-top: 20px; }
.kbd-about-media { box-shadow: 0 10px 30px rgba(7, 41, 77, .12); border-radius: 6px; }

/* Ortak bölüm başlığı (Yaklaşan Etkinlikler, Videolar) */
.kbd-section-title {
  font-size: 24px; font-weight: 700; color: #07294d;
  padding-bottom: 10px; margin-bottom: 18px;
  border-bottom: 2px solid #e31d24;
  display: inline-block;
}

.kbd-upcoming-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.kbd-upcoming-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e3e7ec;
  border-radius: 6px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
a.kbd-upcoming-item:hover { border-color: #e31d24; box-shadow: 0 6px 18px rgba(7, 41, 77, .08); }
.kbd-upcoming-item img { width: 72px; height: 72px; object-fit: contain; flex-shrink: 0; border-radius: 4px; }
.kbd-upcoming-body { display: flex; flex-direction: column; gap: 4px; }
.kbd-upcoming-name { font-size: 16px; font-weight: 600; color: #07294d; }
.kbd-upcoming-date { font-size: 13px; color: #8a94a0; }
.kbd-upcoming-date .fa { color: #e31d24; margin-right: 4px; }
/* "Yakında duyurulacak" kartı */
.kbd-upcoming-soon { border-style: dashed; }
.kbd-upcoming-soon > .fa { font-size: 28px; color: #e31d24; width: 48px; text-align: center; flex-shrink: 0; }

/* YouTube 16:9 kutusu */
.kbd-video { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.kbd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Alt bölüm: solda etkinlikler + yatay video, sağda dikey video (9:16, kırpılmadan) */
.kbd-lower { margin-top: 50px; }
.kbd-videos { margin-top: 40px; }
.kbd-videos-item { margin: 0; }
.kbd-videos-item figcaption { margin-top: 10px; font-weight: 600; color: #07294d; font-size: 14px; }
.kbd-video-v { position: relative; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: #07294d; box-shadow: 0 10px 30px rgba(7, 41, 77, .12); }
.kbd-video-v video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 991px) {
  .kbd-about-text { padding-right: 0; margin-bottom: 24px; }
  .kbd-videos-vertical { max-width: 300px; margin: 40px auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  .kbd-upcoming-item { transition: none; }
}

/* ---- Header araması: menüdeki büyüteç + açılır kutu (kbd-custom.js) ---- */
.navigation { position: relative; }
.navigation .kbd-search-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  margin-left: 16px;
  border-radius: 50%;
  color: #07294d;
  font-size: 17px;
  transition: background-color .2s ease, color .2s ease;
}
.navigation .kbd-search-toggle:hover,
.navigation .kbd-search-toggle.is-active { background: #07294d; color: #fff; }
.navigation .kbd-search-toggle:focus-visible { outline: 2px solid #e31d24; outline-offset: 2px; }

/* Telefonda: büyüteç menü düğmesinin (☰) yanında, menü açılınca altta kalmaz */
@media (max-width: 991px) {
  .navigation .navbar .navbar-toggler { order: 1; }
  .navigation .navbar .kbd-search-toggle { order: 2; margin-left: auto; }
  .navigation .navbar .navbar-collapse { order: 3; }
}

.kbd-hsearch {
  position: absolute; left: 0; right: 0; top: 100%;
  z-index: 998;
  padding: 14px 0;
  background: #fff;
  border-top: 1px solid #eef1f4;
  box-shadow: 0 12px 24px rgba(7, 41, 77, .10);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
}
.kbd-hsearch.is-open { opacity: 1; transform: none; }
.kbd-hsearch-form { position: relative; display: flex; align-items: center; gap: 8px; }
.kbd-hsearch-form > .fa-search { position: absolute; left: 14px; color: #8a94a0; pointer-events: none; }
.kbd-hsearch-form input {
  flex: 1; min-width: 0;
  height: 46px;
  padding: 0 14px 0 40px;
  font-size: 15px; color: #1d2025;
  background: #f8fafb;
  border: 1px solid #d5dbe2;
  border-radius: 4px;
}
.kbd-hsearch-form input:focus { outline: none; background: #fff; border-color: #07294d; box-shadow: 0 0 0 3px rgba(7, 41, 77, .12); }
.kbd-hsearch-submit {
  height: 46px; padding: 0 22px;
  font-size: 15px; font-weight: 600; color: #fff;
  background: #07294d; border: 0; border-radius: 4px; cursor: pointer;
  transition: background-color .2s ease;
}
.kbd-hsearch-submit:hover, .kbd-hsearch-submit:focus-visible { background: #e31d24; outline: none; }
.kbd-hsearch-close {
  width: 40px; height: 40px; flex-shrink: 0;
  font-size: 26px; line-height: 1; color: #5b6570;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
}
.kbd-hsearch-close:hover, .kbd-hsearch-close:focus-visible { background: #eef1f4; color: #07294d; outline: none; }
@media (max-width: 575px) {
  .kbd-hsearch-submit { padding: 0 14px; }
}

/* ---- Arama sayfası (arama/) ---- */
.kbd-search-box {
  margin: 20px 0 10px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e3e7ec;
  border-radius: 6px;
}
.kbd-search-label { display: block; font-size: 14px; font-weight: 600; color: #07294d; margin-bottom: 8px; }
.kbd-search-field { display: flex; gap: 8px; }
.kbd-search-field input {
  flex: 1; min-width: 0;
  height: 44px; padding: 0 14px;
  font-size: 15px; color: #1d2025;
  background: #f8fafb;
  border: 1px solid #d5dbe2; border-radius: 4px;
}
.kbd-search-field input:focus { outline: none; background: #fff; border-color: #07294d; box-shadow: 0 0 0 3px rgba(7, 41, 77, .12); }
.kbd-search-field button {
  height: 44px; padding: 0 22px;
  font-size: 15px; font-weight: 600; color: #fff;
  background: #07294d; border: 0; border-radius: 4px; cursor: pointer;
  transition: background-color .2s ease;
}
.kbd-search-field button:hover, .kbd-search-field button:focus-visible { background: #e31d24; outline: none; }
.kbd-search-status { margin: 14px 0 8px; font-size: 14px; color: #5b6570; }
.kbd-search-progress { color: #8a94a0; font-style: italic; }
.kbd-search-results { list-style: none; margin: 0; padding: 0; }
.kbd-search-hit {
  margin: 0 0 12px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e3e7ec;
  border-left: 3px solid #07294d;
  border-radius: 6px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.kbd-search-hit:hover { border-left-color: #e31d24; box-shadow: 0 6px 18px rgba(7, 41, 77, .08); }
.kbd-search-hit > a { font-size: 17px; font-weight: 600; line-height: 1.35; color: #07294d; }
.kbd-search-hit > a:hover { color: #e31d24; }
.kbd-search-info { margin-top: 4px; font-size: 13px; color: #8a94a0; }
.kbd-search-hit p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: #4a525c; }
.kbd-search-hit mark { padding: 0 1px; background: #fff1b8; color: inherit; border-radius: 2px; }
.kbd-search-more-wrap { text-align: center; }
.kbd-search-more {
  margin-top: 8px; padding: 10px 22px;
  font-size: 14px; font-weight: 600; color: #07294d;
  background: #fff; border: 1px solid #07294d; border-radius: 4px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.kbd-search-more:hover, .kbd-search-more:focus-visible { background: #07294d; color: #fff; outline: none; }
@media (max-width: 575px) {
  .kbd-search-box, .kbd-search-hit { padding: 14px 16px; }
  .kbd-search-field button { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .navigation .kbd-search-toggle, .kbd-hsearch, .kbd-hsearch-submit, .kbd-search-field button,
  .kbd-search-hit, .kbd-search-more { transition: none; }
}
