/* CHG: metinv-nhf-modern-business-tema-26.8.30 */
:root {
  --bs-primary: #c17a2b;
  --bs-primary-rgb: 193, 122, 43;
  --bs-link-color: #9a5f1f;
  --bs-link-hover-color: #7a4a16;
  --nhf-ink: #2c2118;
}

.navbar.bg-dark,
footer.bg-dark,
.nhf-hero.bg-dark {
  background-color: var(--nhf-ink) !important;
}

.btn-primary {
  --bs-btn-bg: #c17a2b;
  --bs-btn-border-color: #c17a2b;
  --bs-btn-hover-bg: #a86622;
  --bs-btn-hover-border-color: #a86622;
  --bs-btn-active-bg: #8f571c;
  --bs-btn-active-border-color: #8f571c;
}

.bg-primary {
  background-color: #c17a2b !important;
}

.rte img {
  max-width: 100%;
  height: auto;
}

.rte table {
  width: 100%;
}

/* CHG: metinv-makale-pdf-26.9.8 */
.nhf-document {
  margin-top: 1.5rem;
}

.nhf-document-frame {
  display: block;
  width: 100%;
  height: 80vh;
  min-height: 32rem;
  border: 1px solid #dee2e6;
}

.nhf-nav .navbar-nav {
  flex-wrap: wrap;
}

.nhf-carousel-image {
  height: 28rem;
  object-fit: cover;
}

.nhf-carousel .carousel-caption {
  background: linear-gradient(transparent, rgba(44, 33, 24, 0.75));
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.5rem 1.5rem;
}

.nhf-card-image,
.nhf-card-placeholder {
  aspect-ratio: 600 / 350;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.nhf-card-placeholder {
  background: #ced4da;
}

.nhf-card-rule {
  margin: 0;
  border: 0;
  border-top: 1px solid #dee2e6;
  opacity: 1;
}

.nhf-blog-card .card-body {
  min-height: 9rem;
}

.nhf-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nhf-logo {
  max-height: 2.5rem;
  width: auto;
}

.nhf-page-title {
  margin: 0 0 1rem;
}

.rte > :first-child {
  margin-top: 0;
}

.nhf-related-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.nhf-related-thumb {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  flex-shrink: 0;
}

/* CHG: metinv-nhf-uretici-26.9.2 */
.nhf-producer-kicker {
  color: var(--nhf-ink);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #c17a2b;
}

.nhf-producer-card,
.nhf-producer-block {
  margin-bottom: 2.5rem;
}

.nhf-producer-name {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.nhf-producer-portrait {
  width: 100%;
  max-width: 16rem;
  height: auto;
  object-fit: cover;
}

.nhf-producer-logo {
  max-height: 5.5rem;
  width: auto;
}

.nhf-producer-field {
  margin-bottom: 1rem;
}

.nhf-producer-label {
  color: #c17a2b;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.nhf-producer-bio,
.nhf-producer-pre {
  white-space: pre-wrap;
}

.nhf-producer-qr {
  width: 8rem;
  height: 8rem;
}

.nhf-producer-year {
  font-size: 0.9rem;
  color: #5c5248;
  margin-top: 0.35rem;
  max-width: 16rem;
}

/* CHG: metinv-nhf-uretici-duzen-26.9.6 */
.nhf-producer-nhf-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nhf-producer-nhf-sep {
  color: #8a7d70;
}

.nhf-producer-qr-toggle {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: #9a5f1f;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

.nhf-producer-qr-panel {
  margin-top: 0.75rem;
}

.nhf-producer-qr-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nhf-producer-qr-inline .nhf-producer-year {
  margin-top: 0;
}

/* CHG: metinv-nhf-analiz-baglanti-26.9.6 */
.nhf-producer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.nhf-producer-tab {
  appearance: none;
  border: 1px solid #c17a2b;
  background: #fff;
  color: #5c3b14;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.nhf-producer-tab.is-active {
  background: #c17a2b;
  color: #fff;
}

.nhf-producer-year-panel[hidden] {
  display: none;
}

.nhf-producer-report {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1rem;
}

.nhf-producer-album {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1rem;
  margin-top: 1.15rem;
}

@media (min-width: 768px) {
  .nhf-producer-album {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.nhf-producer-album figure {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: #fff;
  border: 1px solid #eadfce;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(44, 33, 24, 0.08);
}

.nhf-producer-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: #f4efe6;
  cursor: pointer;
}

.nhf-producer-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
}

.nhf-producer-album figcaption {
  font-size: 0.8rem;
  color: #5c5248;
  margin: 0;
  padding: 0.5rem 0.55rem 0.6rem;
  text-align: center;
}

.nhf-producer-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(44, 33, 24, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 3rem 4.5rem;
}

.nhf-producer-lightbox[hidden] {
  display: none;
}

.nhf-producer-lightbox figure {
  margin: 0;
  text-align: center;
}

.nhf-producer-lightbox img {
  max-width: min(72vw, 720px);
  max-height: min(72vh, 720px);
  width: auto;
  height: auto;
  border-radius: 4px;
}

.nhf-producer-lightbox figcaption {
  color: #f4efe6;
  margin-top: 0.7rem;
  font-size: 0.95rem;
}

.nhf-producer-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.nhf-producer-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.nhf-producer-lightbox-nav.prev {
  left: 1rem;
}

.nhf-producer-lightbox-nav.next {
  right: 1rem;
}

.nhf-producer-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}
