/**
 * EgitimTR ana sayfa — Jannah mag-box ile uyumlu
 */

body.home.egitimtr-custom-home #tie-body,
body.home.egitimtr-custom-home {
  background: #eef4fb !important;
}

body.home.egitimtr-custom-home .sidebar,
body.home.egitimtr-custom-home #sidebar,
body.home.egitimtr-custom-home .tie-col-md-4.sidebar {
  display: none !important;
}

body.home.egitimtr-custom-home .main-content {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

body.home.egitimtr-custom-home #content.site-content.egitimtr-home-page {
  padding-top: 18px;
}

.egitimtr-home {
  margin-bottom: 24px;
}

.egitimtr-home .mag-box {
  margin-bottom: 22px;
}

.egitimtr-home .mag-box > .container-wrapper {
  padding: 18px 20px 20px;
}

.egitimtr-home .mag-box-title.the-global-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.egitimtr-home .mag-box-title .the-subtitle {
  margin: 0;
  font-size: 1.15rem;
}

.egitimtr-home a.eg-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0369a1 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.egitimtr-home a.eg-more:hover {
  color: #0ea5e9 !important;
}

/* Hero */
.eg-hero .container-wrapper {
  background: linear-gradient(118deg, #0369a1 0%, #0ea5e9 52%, #38bdf8 100%);
  color: #fff;
  border: none !important;
}

.eg-hero-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 992px) {
  .eg-hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.eg-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.eg-hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
  color: #fff !important;
}

.eg-hero-lead {
  margin: 0 0 16px;
  max-width: 34rem;
  line-height: 1.55;
  opacity: 0.95;
}

.eg-hero-search {
  display: flex;
  gap: 8px;
  max-width: 440px;
}

.eg-hero-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.95rem;
  color: #0f172a;
}

.eg-hero-search button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.eg-hero-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.eg-quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease;
}

.eg-quick-link:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.eg-quick-link.is-accent {
  background: #fff;
  color: #0369a1 !important;
  border-color: #fff;
}

/* News block — 6 kart */
.eg-news-grid-6 {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .eg-news-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.eg-news-card {
  border: 1px solid #d5dee8;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.eg-news-card .eg-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}

.eg-news-card .eg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eg-news-card .eg-news-body {
  padding: 12px 14px 14px;
  flex: 1;
}

.eg-news-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.eg-news-card h3 a {
  color: #0f172a !important;
  text-decoration: none !important;
}

.eg-news-card h3 a:hover {
  color: #0369a1 !important;
}

/* Eski featured layout (kalinti) */
.eg-news-layout {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .eg-news-layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
}

.eg-news-feature {
  border: 1px solid #d5dee8;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.eg-news-feature .eg-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.eg-news-feature .eg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eg-news-body {
  padding: 14px 16px 16px;
}

.eg-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 700;
}

.eg-news-feature h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.eg-news-feature h3 a {
  color: #0f172a !important;
  text-decoration: none !important;
}

.eg-news-feature h3 a:hover {
  color: #0369a1 !important;
}

.eg-meta {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.eg-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #d5dee8;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.eg-news-list li {
  border-bottom: 1px solid #e8edf3;
}

.eg-news-list li:last-child {
  border-bottom: 0;
}

.eg-news-list a {
  display: block;
  padding: 12px 14px;
  text-decoration: none !important;
}

.eg-news-list a strong {
  display: block;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 4px;
}

.eg-news-list a span {
  color: #64748b;
  font-size: 0.78rem;
}

.eg-news-list a:hover strong {
  color: #0369a1;
}

/* Öğretmenevi */
.eg-ogretmen-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.eg-ogretmen-card {
  border: 1px solid #d5dee8;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.eg-ogretmen-card .eg-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}

.eg-ogretmen-card .eg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eg-ogretmen-card h4 {
  margin: 0;
  padding: 10px 11px 12px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.eg-ogretmen-card h4 a {
  color: #0f172a !important;
  text-decoration: none !important;
}

.eg-ogretmen-card h4 a:hover {
  color: #0369a1 !important;
}

.eg-ogretmen-grid-21 {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

@media (min-width: 1200px) {
  .eg-ogretmen-grid-21 {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

.eg-ogretmen-section .container-wrapper {
  margin-top: 4px;
}

/* Kategori bloklari */
.eg-cat-sections {
  display: grid;
  gap: 16px;
}

@media (min-width: 992px) {
  .eg-cat-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eg-main-columns {
    align-items: stretch;
  }

  .eg-col-side {
    display: flex;
    flex-direction: column;
  }

  .eg-forum-box {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .eg-forum-box > .container-wrapper {
    flex: 1;
  }
}

.eg-cat-block .container-wrapper {
  height: 100%;
}

.eg-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eg-cat-list li {
  border-bottom: 1px solid #e8edf3;
}

.eg-cat-list li:last-child {
  border-bottom: 0;
}

.eg-cat-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  text-decoration: none !important;
  color: inherit;
}

.eg-cat-list a:hover strong {
  color: #0369a1;
}

.eg-cat-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
}

.eg-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eg-cat-text {
  min-width: 0;
}

.eg-cat-text strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #0f172a;
}

.eg-cat-text small {
  color: #64748b;
  font-size: 0.75rem;
}

.eg-cat-empty {
  margin: 0;
  padding: 14px 0 4px;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

.eg-cat-empty a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  color: #0369a1 !important;
  text-decoration: none !important;
}

/* Forum sidebar */
.eg-forum-box .container-wrapper {
  display: flex;
  flex-direction: column;
}

.eg-forum-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.eg-forum-stats span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 0.75rem;
  color: #334155;
}

.eg-forum-stats strong {
  color: #0369a1;
}

.eg-forum-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.eg-forum-subhead {
  margin: 14px 0 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0369a1;
}

.eg-forum-subhead:first-of-type {
  margin-top: 4px;
}

.eg-forum-list-compact li {
  padding: 7px 0;
}

.eg-forum-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e8edf3;
}

.eg-forum-list li:last-child {
  border-bottom: 0;
}

.eg-forum-list a {
  display: block;
  color: #0f172a !important;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none !important;
}

.eg-forum-list a:hover {
  color: #0369a1 !important;
}

.eg-forum-list small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 0.75rem;
}

.eg-forum-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.eg-forum-shortcuts a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  color: #0369a1 !important;
  text-decoration: none !important;
}

.eg-forum-shortcuts a:hover {
  background: #eff6ff;
}

.eg-forum-cta {
  display: block;
  text-align: center;
  padding: 11px 14px;
  border-radius: 10px;
  background: #0ea5e9;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  margin-top: auto;
}

.eg-forum-cta:hover {
  background: #0284c7;
  color: #fff !important;
}

.eg-home-ad {
  margin: 16px 0;
  text-align: center;
  clear: both;
}

.eg-home-ad--sidebar_top,
.eg-home-ad--sidebar_bottom {
  margin: 0 0 16px;
}

.eg-home-ad iframe,
.eg-home-ad ins,
.eg-home-ad img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 991px) {
  .eg-main-columns {
    display: flex;
    flex-direction: column;
  }

  .eg-col-side {
    order: 3;
  }
}
