/* Buyers Guide Heading */
.bnr-buyers-guide-heading {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 0 0 24px 0;
  padding-bottom: 12px;
  border-bottom: 3px solid #dc3545;
  line-height: 1.3;
}

/* Desktop: 5 columns, Mobile: 2 columns */
.bnr-mlb-grid{
  display: -webkit-grid; /* Safari fallback */
  display: grid;
  -webkit-grid-template-columns: repeat(5, 1fr); /* Safari fallback */
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 12px;
}

/* Mobile: 2 columns */
@media (max-width: 768px) {
  .bnr-mlb-grid{
    -webkit-grid-template-columns: repeat(2, 1fr); /* Safari fallback */
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Tablet: 4 columns */
@media (min-width: 769px) and (max-width: 1024px) {
  .bnr-mlb-grid{
    -webkit-grid-template-columns: repeat(4, 1fr); /* Safari fallback */
    grid-template-columns: repeat(4, 1fr);
  }
}
.bnr-mlb-card{
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  overflow: hidden;
  display: -webkit-flex; /* Safari fallback */
  display: flex;
  -webkit-flex-direction: column; /* Safari fallback */
  flex-direction: column;
}
.bnr-mlb-card-link{text-decoration:none;color:inherit;}
.bnr-mlb-thumb{
  background: #f7f7f7;
  display: -webkit-flex; /* Safari fallback */
  display: flex;
  -webkit-align-items: center; /* Safari fallback */
  align-items: center;
  -webkit-justify-content: center; /* Safari fallback */
  justify-content: center;
  position: relative;
  /* Fallback for older Safari - use padding-bottom technique */
  padding-bottom: 75%; /* 4:3 aspect ratio (3/4 = 0.75) */
  height: 0;
  overflow: hidden;
}

/* Modern browsers with aspect-ratio support */
@supports (aspect-ratio: 4/3) {
  .bnr-mlb-thumb {
    padding-bottom: 0;
    height: auto;
    aspect-ratio: 4/3;
  }
}
.bnr-mlb-thumb img{
  max-width: 100%;
  height: auto;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* For modern browsers with aspect-ratio support */
@supports (aspect-ratio: 4/3) {
  .bnr-mlb-thumb img {
    position: static;
    transform: none;
    height: auto;
  }
}
.bnr-mlb-thumb--placeholder{
  color: #999;
  font-size: 13px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.bnr-mlb-meta{padding:10px 12px 14px;}
.bnr-mlb-eyebrow{color:#d11;font-weight:800;letter-spacing:.3px;font-size:12px;margin-top:6px;}
.bnr-mlb-title{font-weight:700;line-height:1.25;}
.specs{border-collapse:collapse;width:100%;margin:1em 0;} .specs th{background:#f5f5f5;text-align:left;width:30%;} .specs td,.specs th{border:1px solid #ddd;padding:6px;} section{margin-bottom:20px;}
.bnr-bc {
  margin-top: 20px;
  margin-bottom: 20px;
}

.bnr-bc ol {
  list-style: none;
  display: flex;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.bnr-bc li {
  color: var(--ast-global-color-1);
}

.bnr-bc li a {
  color: var(--ast-global-color-1);
  text-decoration: none;
}

.bnr-bc li a:hover {
  text-decoration: underline;
}

.bnr-bc li::after {
  content: '-';
  margin: 0 8px;
  color: #f25d0a;
  font-weight: bold;
}

.bnr-bc li.current::after {
  content: '';
}

/* Fix for header overlap issue on model and year views */
/* Target bnr-buyers-guide class specifically */
.bnr-buyers-guide {
  padding-top: 100px !important; /* Push content below header */
  padding-left: 120px;
  padding-right: 120px;
}

/* More specific targeting for Astra theme with buyers guide */
body.ast-theme-transparent-header .bnr-buyers-guide,
body.ast-hfb-header .bnr-buyers-guide {
  padding-top: 120px !important; /* Extra padding for transparent header */
}

/* Alternative: If the above selectors don't work, use this more specific approach */
.bnr-bc + h1 {
  margin-top: 20px; /* Small margin after breadcrumbs */
}

/* History Section Styles for Buyers Guide */
.bnr-buyers-guide-history {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 24px;
  margin: 30px 0;
  border-left: 4px solid #dc3545;
}

.bnr-buyers-guide-history h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #dc3545;
}

.bnr-history-grid {
  display: -webkit-flex; /* Safari fallback */
  display: flex;
  -webkit-flex-direction: column; /* Safari fallback */
  flex-direction: column;
  gap: 24px;
}

.bnr-history-info {
  display: -webkit-flex; /* Safari fallback */
  display: flex;
  gap: 16px;
  -webkit-flex-wrap: wrap; /* Safari fallback */
  flex-wrap: wrap;
}

.bnr-history-item {
  -webkit-flex: 1; /* Safari fallback */
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #dc3545;
}

.bnr-history-item strong {
  display: block;
  color: #495057;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.bnr-history-item span {
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

.bnr-history-text {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.bnr-history-text h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
}

.bnr-history-text p {
  color: #555;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

/* Mobile responsive for history sections */
@media (max-width: 768px) {
  .bnr-buyers-guide {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .bnr-buyers-guide-heading {
    font-size: 22px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom-width: 2px;
  }
  
  .bnr-history-grid {
    gap: 16px;
  }
  
  .bnr-buyers-guide-history {
    padding: 16px;
    margin: 20px 0;
  }
  
  .bnr-buyers-guide-history h2 {
    font-size: 20px;
  }
  
  .bnr-history-text {
    padding: 16px;
  }
  
  .bnr-history-item {
    padding: 10px 12px;
    min-width: auto;
  }
  
  .bnr-history-info {
    -webkit-flex-direction: column; /* Safari fallback */
    flex-direction: column;
    gap: 12px;
  }
}

/* Generated Content Section */
.bnr-buyers-guide-about {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}

.bnr-buyers-guide-about h2 {
  color: #333;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #dc3545;
}

.bnr-generated-content {
  color: #555;
  line-height: 1.6;
  font-size: 16px;
}

.bnr-generated-content h1,
.bnr-generated-content h2,
.bnr-generated-content h3,
.bnr-generated-content h4,
.bnr-generated-content h5,
.bnr-generated-content h6 {
  color: #333;
  margin: 20px 0 12px 0;
  font-weight: 600;
}

.bnr-generated-content h1 { font-size: 28px; }
.bnr-generated-content h2 { font-size: 24px; }
.bnr-generated-content h3 { font-size: 20px; }
.bnr-generated-content h4 { font-size: 18px; }
.bnr-generated-content h5 { font-size: 16px; }
.bnr-generated-content h6 { font-size: 14px; }

.bnr-generated-content p {
  margin: 0 0 16px 0;
  text-align: justify;
}

.bnr-generated-content ul,
.bnr-generated-content ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.bnr-generated-content li {
  margin: 0 0 8px 0;
}

.bnr-generated-content strong {
  font-weight: 600;
  color: #333;
}

.bnr-generated-content em {
  font-style: italic;
}

.bnr-generated-content blockquote {
  border-left: 4px solid #dc3545;
  padding-left: 16px;
  margin: 16px 0;
  font-style: italic;
  color: #666;
}

/* Mobile responsive for generated content */
@media (max-width: 768px) {
  .bnr-buyers-guide-about {
    padding: 16px;
    margin: 16px 0;
  }
  
  .bnr-buyers-guide-about h2 {
    font-size: 20px;
    margin: 0 0 12px 0;
  }
  
  .bnr-generated-content {
    font-size: 14px;
  }
  
  .bnr-generated-content h1 { font-size: 24px; }
  .bnr-generated-content h2 { font-size: 20px; }
  .bnr-generated-content h3 { font-size: 18px; }
  .bnr-generated-content h4 { font-size: 16px; }
  .bnr-generated-content h5 { font-size: 14px; }
  .bnr-generated-content h6 { font-size: 13px; }
}
