/* Yula Eğitim - site geneli düzen ve okunabilirlik (temanın app.css dosyasından sonra yüklenir)
   - Görseller: kullanıcı hangi boyutta yüklerse yüklesin sabit oranlı çerçevede düzgün yerleşir
   - Kartlar: başlık / özet uzunluğundan bağımsız eşit yükseklik, butonlar aynı hizada
   - Etiket ve metinler: en az 4.5:1 kontrast (WCAG AA) */

:root {
  --color-primary: #0b7262;       /* tema: #1ab69d, beyaz yazıyla 2.6:1 -> 5.9:1 */
  --color-body: #51575d;          /* tema: gray (3.9:1) -> 7.2:1 */
  --yula-vurgu: #0b7262;          /* turkuazın koyu tonu, beyaz yazıyla 5.9:1 */
  --yula-zemin: #eef2f4;
}

/* ---------- Okunaklı etiketler ---------- */

.edu-course .thumbnail .duration {
  background-color: rgba(17, 18, 18, .85);
  color: #fff;
  font-weight: 600;
}

.edu-course .content .course-level,
.course-level {
  background-color: var(--yula-vurgu) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 3px 10px;
  align-self: flex-start;
  line-height: 1.6;
}

.blog-details-content .entry-content .category {
  display: inline-block;
  width: auto;
  background-color: var(--yula-vurgu);
  color: #fff;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 3px;
}

.edu-event .content .event-date {
  background: var(--yula-vurgu);
}

.blog-meta li,
.edu-course .content p,
.edu-event .content p {
  color: var(--color-body);
}

/* Sarı butonlarda beyaz yazı okunmuyordu (1.5:1): normalde koyu yazı, üzerine gelince koyu zemin + beyaz yazı */
.edu-btn.btn-secondary:not(:hover),
.edu-btn.btn-secondary:not(:hover) i {
  color: #181818;
}

.edu-btn:hover,
.edu-btn:hover i {
  color: #fff;
}

/* Butona gelince kayan katman açık yeşildi (beyaz yazıyla 2.5:1) */
.edu-btn:after,
button.edu-btn:after {
  background: #095c50;
}

/* Açık zeminde sarı vurgu (1.5:1) ve kırmızı link (3:1) okunmuyordu */
.section-title .title .color-secondary,
.title .color-secondary {
  color: #a36f00;
}

.btn-transparent {
  color: #b4282a !important;
}

/* ---------- Eşit yükseklikte kartlar (liste sayfaları) ---------- */

.edu-course-area .row > [class*="col-"],
.edu-event-area .row > [class*="col-"] {
  display: flex;
}

.edu-course-area .edu-course,
.edu-event-area .edu-event {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.edu-course-area .edu-course > .inner,
.edu-event-area .edu-event > .inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
}

.edu-course-area .edu-course .thumbnail,
.edu-event-area .edu-event .thumbnail {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--yula-zemin);
  flex: 0 0 auto;
}

.edu-course-area .edu-course .thumbnail > a,
.edu-event-area .edu-event .thumbnail > a {
  display: block;
  width: 100%;
  height: 100%;
}

.edu-course-area .edu-course .thumbnail img,
.edu-event-area .edu-event .thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.edu-course-area .edu-course .content,
.edu-event-area .edu-event .content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* Başlık en fazla 2 satır, özet en fazla 3 satır; alanlar sabit yükseklikte */
.edu-course-area .edu-course .content .title,
.edu-event-area .edu-event .content .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  min-height: 3em;
  max-height: 3em;
  padding-bottom: 0;
}

.edu-course-area .edu-course .content p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
  min-height: 4.8em;
  max-height: 4.8em;
  margin-bottom: 0;
}

.edu-course-area .edu-course .content .read-more-btn,
.edu-event-area .edu-event .content .read-more-btn {
  margin-top: auto;
  padding-top: 15px;
}

/* Tema butonu sadece fare üstüne gelince gösteriyordu; dokunmatik ekranda hiç görünmüyordu */
.edu-course-area .edu-course .content .read-more-btn {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  height: auto !important;
  margin-bottom: 0 !important;
}

/* Fotoğrafı olmayan kart: logo ortada */
.edu-course-area .edu-course .thumbnail .yula-yer-tutucu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.edu-course-area .edu-course .thumbnail .yula-yer-tutucu img {
  width: auto !important;
  height: auto !important;
  max-width: 45%;
  object-fit: contain;
}

/* ---------- Detay sayfası kapak görseli ---------- */
/* Fotoğraf kırpılmadan sığdırılır; boş kalan kısım fotoğrafın bulanık hali ile doldurulur */

.yula-kapak {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--yula-zemin);
}

.yula-kapak .yula-kapak-zemin {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(.9);
}

.blog-details-content .entry-content .yula-kapak img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

/* ---------- Yazı içeriği (panelde editörle eklenen görsel, tablo, video) ---------- */

.blog-yazi-icerik img,
.blog-details-content > p img {
  max-width: 100%;
  height: auto !important;
}

.blog-yazi-icerik iframe,
.blog-yazi-icerik video {
  max-width: 100%;
}

.blog-yazi-icerik table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.blog-yazi-icerik {
  color: var(--color-body);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* ---------- Fotoğraf galerisi: sabit ızgara, tüm kareler aynı boyutta ---------- */

.yula-galeri {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.yula-galeri a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 5px;
  background: var(--yula-zemin);
}

.yula-galeri a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.yula-galeri a:hover img {
  transform: scale(1.05);
}

.yula-galeri a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 18, 18, 0);
  transition: background .35s ease;
}

.yula-galeri a:hover::after {
  background: rgba(17, 18, 18, .25);
}

/* ---------- Videolar ---------- */

.yula-videolar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.yula-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  overflow: hidden;
  background: #000;
}

.yula-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Fotoğraf büyütme penceresi sabit üst menünün altında kalmasın */
.lg-backdrop { z-index: 100000 !important; }
.lg-outer { z-index: 100001 !important; }

/* ---------- Üst menü: 1200-1399px arası ekranlarda tek satıra sığsın ---------- */
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .mainmenu-nav .mainmenu > li > a {
    padding: 0 10px;
  }
}
