body {
  /* reduced to match navbar height and bring hero closer */
  padding-top: 64px;
}

.navbar-brand span {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-family: 'Libre Baskerville', serif;
  font-size: 1.4rem;
  color: #f4d29f;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}


.site-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0.08em;
}

.site-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  opacity: 0.9;
}


/* Hero: full-bleed background, content centered inside a container */
.hero {
  /* make hero span the full viewport width even if inside a centered container */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
  color: #fff;
  background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('../images/kitap_istanbul_hero.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-content {
  /* inner wrapper keeps content centered */
  position: relative;
  z-index: 2;
  /* tighten vertical spacing to approximately two text lines */
  padding: 4rem 0;
  margin-top: 1px;
}

.hero-featured-img {
  max-height: 400px;
  transition: transform 0.5s ease;
  border: 4px solid rgba(255, 255, 255, 0.1);
}

.hero-featured-img:hover {
  transform: scale(1.02) translateY(-5px);
}

.hero-image-wrapper {
  position: relative;
  display: inline-block;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid #f4d29f;
  z-index: -1;
  border-radius: 1rem;
  opacity: 0.3;
  transition: all 0.5s ease;
}

.hero-image-wrapper:hover::after {
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  opacity: 0.6;
}

.category-card img,
.book-card img {
  object-fit: cover;
  height: 220px;
}

.book-price-old {
  text-decoration: line-through;
  color: #888;
  font-size: 0.9rem;
}

.book-price-new {
  color: #c20000;
  font-weight: 600;
  font-size: 1.05rem;
}

.footer-links a {
  text-decoration: none;
  color: #ccc;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #fff;
}

/* CSS: SUBMENU SAĞA VE HOVER İLE AÇILMA 
  
     Kategori dropdown içindeki alt menü için */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu>.dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  /* Sağa açılma */
  margin-left: .1rem;
  margin-top: -.25rem;
  display: none;
  /* Başta kapalı */
}

/* Hover olunca 3. seviye menü açılır, fare çıkınca kapanır */
.dropdown-submenu:hover>.dropdown-menu {
  display: block;
}

/* About page styles */
.hero .display-5 {
  font-size: 2.2rem;
}

.team-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.team-card {
  border: none;
}

@media (min-width: 992px) {
  .hero .display-5 {
    font-size: 3rem;
  }
}

/* Book detail modern styles */
.page-content {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.breadcrumb {
  font-size: 0.95rem;
  color: #6c757d;
}

.breadcrumb a {
  color: #6c757d;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: #343a40;
}

.book-detail {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 6px 20px rgba(20, 20, 30, 0.06);
}

.top-detail .font-adjust {
  font-size: 0.95rem;
}

.top-detail .resFont,
.top-detail .decFont {
  cursor: pointer;
  margin-right: 0.6rem;
  color: #444;
}

.top-detail .print {
  color: #6c757d;
  text-decoration: none;
}

.top-detail .print:hover {
  color: #000;
}

.big-book .images {
  display: flex;

  align-items: start;
  margin-top:30px;
  justify-content: center;
  height: 100%;
}

.big-book .images img {
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(10, 10, 20, 0.08);
}

.book-detail .title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.book-detail .title .small {
  font-weight: 400;
}

.book-detail .type ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 0.5rem;
}

.book-detail .type ul li {
  padding: 0.12rem 0;
  color: #495057;
}

.book-detail .type b {
  color: #343a40;
}

.more .btn {
  border-radius: 28px;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.share-list i {
  font-size: 1.05rem;
  color: #6c757d;
}

.share-list a {
  color: inherit;
  margin-right: 0.6rem;
}

.share-list a:hover i {
  color: #0d6efd;
}

.book-description {
  margin-top: 1rem;
  line-height: 1.65;
  color: #212529;
}

.book-details .back a {
  color: #0d6efd;
  text-decoration: none;
}

.book-details .back a:hover {
  text-decoration: underline;
}

.book-details .card {
  border: none;
}

.book-details .card .card-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.book-details .very-small {
  font-size: 0.8rem;
}

@media (max-width: 767px) {
  .page-content {
    padding-left: .75rem;
    padding-right: .75rem;
  }

  .book-detail {
    padding: 1rem;
  }

  .big-book .images {
    margin-bottom: .75rem;
  }
}

.fa,
.fas,
.far,
.fab {
  background-color: transparent !important;
  background: none !important;
  fill: none !important;
}

.btn i,
button i,
.icon {
  background-color: transparent !important;
}

.fa-trash {
  color: #dc3545 !important;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.2s;
}

.fa-trash:hover {
  background-color: rgba(220, 53, 69, 0.1);
  color: #c82333 !important;
}

/* ---------- Yazı kartı ---------- */

.article-card {
  border-radius: 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

/* Yazı başlıkları ve gövde */

.article-card h1,
.article-card h2,
.article-card h3 {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.article-card h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.article-card h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
}

.article-body p {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  text-align: justify;
}

.article-body p+p {
  margin-top: 0.4rem;
}

.interview-body p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  text-align: justify;
}

/* Gövde içindeki vurgular */

.article-body em,
.article-body i {
  font-style: italic;
  color: #374151;

}

/* Yazar ve meta bilgiler */

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Sağ sidebar: kart ve linkler ---------- */

.sidebar-card {
  border-radius: 0.85rem;
  background: linear-gradient(145deg, #0f172a, var(--bg-sidebar));
  color: #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
  overflow: hidden;
}

.sidebar-header {
  padding: 0.9rem 1.1rem;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-soft));
  color: #0f172a;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

/* Yazı listesi */

.post-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.post-list-item {
  border-bottom: 1px dashed rgba(148, 163, 184, 0.5);
}

.post-list-item:last-child {
  border-bottom: none;
}

.post-link {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.95rem;
  transition: background 140ms ease, color 140ms ease, text-decoration 140ms ease;
}

.post-link-icon {
  width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.4rem;
  color: #9ca3af;
  flex-shrink: 0;
}

/* Sadece başlık metni için ayrı sınıf */
.post-link-text {
  flex: 1;
}

/* Hover ve aktif durum */

.post-link:hover {
  background: rgba(15, 23, 42, 0.7);
  color: #fefce8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-link.active {
  background: rgba(15, 23, 42, 0.9);
  color: #facc15;
  font-weight: 600;
}

.post-link.active .post-link-icon {
  color: #facc15;
}