* { box-sizing: border-box; }
body { margin: 0; background: #e0e0e0; color: #000; font-family: Arial, Helvetica, sans-serif; }
#container { max-width: 800px; margin: 0 auto; }
#banner { width: 100%; height: 238px; background: url("images/banner.png") center top / cover no-repeat; }
#banner a { display: block; width: 100%; height: 100%; }
#mainbody { display: flex; align-items: stretch; background: #eee; }
#left_column { flex: 0 0 210px; padding: 5px; background: #eee; text-align: center; font-size: 16px; }
#left_column ul { list-style: none; margin: 0; padding: 10px 0 20px; }
#left_column li { padding: 14px 8px 4px; font-weight: bold; }
#left_column a { color: #000; text-decoration: none; }
#left_column a:hover, #left_column a[aria-current="page"] { color: #297acc; text-decoration: underline; }
.sidebar-promos img { display: block; max-width: 100%; height: auto; margin: 18px auto 8px; object-fit: contain; }
.sidebar-promos p { margin: 8px 0 18px; }
#middle_column { flex: 1; min-width: 0; padding: 12px 14px 28px; background: #fff; font-size: 14px; line-height: 1.5; }
#middle_column a { color: #000; }
#middle_column a:hover { text-decoration: underline; }
#middle_column h1 { font-size: 1.7em; line-height: 1.2; }
#middle_column h2 { font-size: 1.35em; }
.date-line { text-align: right; color: #555; font-size: 12px; margin-bottom: 10px; }
.feature-image { display: block; max-width: 100%; height: auto; margin: 14px auto; }
.racecourse { background: #000; color: #fff; padding: 12px; margin-top: 20px; }
.racecourse h2 { text-align: center; }
.racecourse-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.racecourse-grid img { width: 100%; height: auto; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; align-items: center; margin: 14px 0 24px; }
.gallery img, .testimonial-gallery img { display: block; width: 100%; height: auto; }
.gallery a, .testimonial-gallery a { display: block; }
.before-after { grid-template-columns: repeat(2, minmax(0,1fr)); }
.testimonial-gallery { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 16px auto; max-width: 560px; }
.larger { font-size: 16px; }
#product_banner { display: flex; justify-content: space-around; align-items: center; gap: 8px; padding: 10px; background: #eee; }
#product_banner img { width: auto; max-width: 13%; max-height: 65px; object-fit: contain; }
#lower_banner { width: 100%; height: 160px; background: url("images/lower_banner.png") center / cover no-repeat; }
#footer { padding: 10px; text-align: center; font-size: 12px; }
#footer a { color: #000; font-weight: bold; }
form { max-width: 520px; }
form label { display: block; margin: 12px 0 4px; font-weight: bold; }
form input, form textarea { display: block; width: 100%; padding: 8px; border: 1px solid #888; font: inherit; }
form button { margin-top: 14px; padding: 9px 18px; cursor: pointer; }
.form-note { color: #555; font-size: 12px; }
@media (max-width: 650px) {
  #banner { height: auto; aspect-ratio: 800 / 238; }
  #mainbody { display: block; }
  #left_column { width: 100%; padding: 4px 10px; }
  #left_column ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding: 8px 0; }
  #left_column li { padding: 5px; }
  .sidebar-promos { display: none; }
  #middle_column { width: 100%; padding: 12px 16px 24px; }
  .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #product_banner { flex-wrap: wrap; }
  #product_banner img { max-width: 22%; max-height: 48px; }
  #lower_banner { height: auto; aspect-ratio: 5 / 1; }
}
