/* Reset */
* {
  box-sizing: border-box;
}

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

/* Body: Retain current background */
body {
  font-family: 'Lato', sans-serif;
  padding: 20px;
  background: #f1f1f1;
  color: #1A1A1A;
  line-height: 1.6;
}

/* Header: Update with narwhal-inspired blue */
.header {
  padding: 30px;
  font-size: 2.5rem;
  text-align: center;
  background: #2B3A67;
  color: #FFFFFF;
}

/* Navigation: Keep for consistency, can remove if unwanted */
nav {
  background-color: #4E6E81;
  padding: 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav a {
  color: #FFFFFF;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
}

nav a:hover {
  color: #FF6F61;
}

/* Columns */
.leftcolumn {
  float: left;
  width: 75%;
}

.rightcolumn {
  float: left;
  width: 25%;
  padding-left: 20px;
}

.rightcolumn .sidebar-ad {
  max-width: 100%;
  overflow: hidden;  /* Hides any excess content */
  margin-bottom: 15px;  /* Space between ads */
  display: flex;          /* Use flexbox to center content */
  justify-content: center; /* Center horizontally */
  align-items: center;    /* Center vertically if needed */
}

.rightcolumn .sidebar-ad img {
  max-width: 100%;
  height: auto;
  display: block;  /* Prevents inline gaps */
}

.rightcolumn .sidebar-ad iframe {
  width: 100%;
  height: auto;  /* Or set a fixed height like 250px if needed */
  border: none;
}

.support-section {  /* Add this class to the div wrapping "More Ways To Support" */
  overflow: hidden;
  word-wrap: break-word;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Card */
.card {
  background-color: #FFFFFF;
  padding: 20px;
  margin-top: 20px;
  border: 1px solid #D9D9D9;
  border-radius: 8px;
}

/* Fakeimg: Border for images */
.fakeimg {
  background-color: #D9D9D9;
  padding: 20px;
  margin: 1rem 0;
  border-radius: 5px;
}

/* Images */
.img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Gallery */
.gallery-container {
  position: relative;
  overflow: hidden;
}

.gallery {
  display: flex;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  display: none;
}

.gallery-img.active {
  display: block;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #FF6F61;
  color: #FFFFFF;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 5px;
}

.gallery-btn.prev {
  left: 10px;
}

.gallery-btn.next {
  right: 10px;
}

.gallery-btn:hover {
  background-color: #E55A4E;
}

/* Buttons */
.cta-button {
  background-color: #FF6F61;
  color: #FFFFFF;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
}

.cta-button:hover {
  background-color: #E55A4E;
}

/* Links */
a {
  color: #2B3A67;
  text-decoration: none;
}

a:hover {
  color: #FF6F61;
}

.footer a {
  color: #FFFFFF;
}

.footer a:hover {
  color: #FF6F61;
}

/* Audio */
audio {
  width: 100%;
  margin: 1rem 0;
  outline: none;
}

/* Footer */
.footer {
  padding: 20px;
  text-align: center;
  background: #2B3A67;
  color: #FFFFFF;
  margin-top: 20px;
}

/* Table: For Dealer List and Legacy Products */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  padding: 0.8rem;
  border: 1px solid #D9D9D9;
  text-align: left;
}

th {
  background-color: #4E6E81;
  color: #FFFFFF;
}

/* Reverb Section (Aligned with .card) */
.reverb-section {
  background-color: #FFFFFF;
  padding: 20px;
  margin-top: 20px;
  border: 1px solid #D9D9D9;
  border-radius: 8px;
  text-align: center;
}

.reverb-section h1 {
  color: #1A1A1A;
  font-size: 1.8em;
  margin-bottom: 10px;
}

.reverb-section p {
  color: #1A1A1A;
  font-size: 1em;
  margin-bottom: 20px;
}

.reverb-section p a {
  color: #2B3A67; /* Matches site link color */
  text-decoration: none;
}

.reverb-section p a:hover {
  color: #FF6F61; /* Matches site link hover */
  text-decoration: underline;
}

.reverb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.reverb-card {
  background-color: #FFFFFF;
  padding: 20px;
  border: 1px solid #D9D9D9;
  border-radius: 8px;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.reverb-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.reverb-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 5px; /* Matches .img */
  margin-bottom: 10px;
}

.reverb-card h3 {
  font-size: 1.1em;
  margin: 0 0 5px;
  color: #1A1A1A;
}

.reverb-card .price {
  font-size: 1.2em;
  font-weight: bold;
  color: #1A1A1A; /* Changed from #0066cc to match body text */
  margin: 5px 0;
}

.reverb-card .shop {
  color: #1A1A1A;
  font-size: 0.9em;
  margin: 5px 0;
}

.buy-btn {
  background-color: #FF6F61; /* Matches cta-button */
  color: #FFFFFF;
  padding: 0.8rem 1.5rem; /* Matches cta-button */
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  margin-top: 10px;
  transition: background 0.2s ease;
}

.buy-btn:hover {
  background-color: #E55A4E; /* Matches cta-button hover */
}

/* Responsive */
@media screen and (max-width: 768px) {
  .leftcolumn, .rightcolumn {
    width: 100%;
    padding: 0;
  }
  .header {
    font-size: 2rem;
  }
  .card, .reverb-section {
    padding: 1rem;
  }
  nav a {
    margin: 0 0.5rem;
  }
  .gallery-btn {
    padding: 8px;
    font-size: 1rem;
  }
  .reverb-grid {
    grid-template-columns: 1fr;
  }
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio (9 ÷ 16 = 0.5625) */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000; /* Optional: black background for the video */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0; /* Ensure no border conflicts */
}