/* Internal linking: related entries box (single pages) + front page latest resources */

.atheme-related {
  margin: 40px 0 10px;
  padding: 28px 30px;
  background: var(--secondary-light);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--secondary-color);
  border-radius: 12px;
}

.atheme-related,
.atheme-related a {
  text-align: left;
}

.atheme-related__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.atheme-related__head .atheme-related__more {
  margin-top: 0;
}

.atheme-related__title {
  font-size: 1.2rem;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--heading-color);
}

.atheme-related__title i {
  color: var(--secondary-color);
}

.atheme-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.atheme-related__list li {
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--glass-border);
}

.atheme-related__list a {
  display: block;
  color: var(--heading-color);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
  transition: var(--transition);
}

.atheme-related__list a:hover,
.atheme-related__list a:focus-visible {
  color: var(--secondary-gold-dark);
}

.atheme-related__more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
}

.atheme-related__more:hover {
  color: var(--secondary-gold-dark);
}

.atheme-related__more i {
  font-size: 0.75rem;
  margin-left: 4px;
}

/* Tool pages: "İlginizi Çekebilir" card grid */
.atheme-related--cards {
  margin-top: 48px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.atheme-related--cards .atheme-related__title {
  font-size: 1.4rem;
}

.atheme-tool-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.atheme-tool-cards li {
  margin: 0;
  padding: 0;
}

.atheme-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 22px 20px 20px;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.atheme-tool-card:hover,
.atheme-tool-card:focus-visible {
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.atheme-tool-card__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--secondary-gold-light);
  font-size: 1.1rem;
}

.atheme-tool-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.atheme-tool-card__title {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
}

.atheme-tool-card__desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.atheme-tool-card__go {
  position: absolute;
  top: 24px;
  right: 20px;
  color: var(--secondary-color);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--transition);
}

.atheme-tool-card:hover .atheme-tool-card__go {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .atheme-tool-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .atheme-tool-cards {
    grid-template-columns: 1fr;
  }

  .atheme-tool-card {
    flex-direction: row;
    align-items: center;
  }
}

/* Front page */
.home-latest .container {
  padding: 0 20px;
  box-sizing: border-box;
}

.home-latest__header {
  margin-bottom: 40px;
}

.home-latest__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.home-latest__box {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.home-latest__box h3 a {
  color: inherit;
}

.home-latest__box .recent-list {
  flex: 1;
  padding: 0;
  margin: 0;
}

@media (max-width: 1100px) {
  .home-latest__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .atheme-related {
    padding: 22px 18px;
  }

  .atheme-related__list,
  .home-latest__grid {
    grid-template-columns: 1fr;
  }

  .home-latest .section-title {
    font-size: 1.9rem;
  }
}
