/* =========================
   SIDEBOX STYLING CLEANUP
   ========================= */

/* Normal sidebox */
.sidebox {
  width: 20%;                     /* default width */
  max-width: 300px;
  padding: 0.75em 1em;
  margin: 0 auto 1em auto;
  background-color: rgba(140, 120, 90, 0.95); /* darker brown */
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 0.9em;
  float: right;
  text-align: center;
}

/* Headings, paragraphs, buttons inside normal sidebox */
.sidebox h3,
.sidebox p,
.sidebox a {
  color: #F9E8B9;
}

.sidebox h3 {
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 0.5em;
  background: none;
  padding: 0;
  border: none;
  opacity: 1;
}

.sidebox p {
  font-size: 1.05em;
  line-height: 1.4;
  margin-bottom: 1em;
}

.sidebox strong {
  display: block;
  font-weight: bold;
  margin-bottom: 0.1em;
}

.sidebox-rule {
  border: none;
  height: 1px;
  background-color: #F7C990;
  width: 50%;
  margin: 1em 0;
}

/* Button styling */
.sidebox-button {
  margin-top: 1em;
  text-align: center;
}

.sidebox-button a {
  background-color: #A60321;
  text-decoration: none;
  padding: 0.4em 1.2em;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.sidebox-button a:hover {
  background-color: #7d0218;
}

/* Wider right-hand sidebox */
.sidebox.wider-righttextbox {
  width: 35%;
  max-width: 400px;
  float: right;
  margin: 0 0 1em 1.5em;
  padding: 1em 1.5em;
  background-color: rgba(140, 120, 90, 0.95); /* darker brown */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  box-sizing: border-box;
  text-align: left;
}

/* Headings inside wider box */
.sidebox.wider-righttextbox h3 {
  font-size: 1.4em;
  margin-bottom: 0.7em;
  text-align: center;
  color: #F9E8B9;
}

/* HR inside wider box */
.sidebox.wider-righttextbox .sidebox-rule {
  width: 70%;
  margin: 1em auto;
  background-color: #F7C990;
}

/* Button inside wider box */
.sidebox.wider-righttextbox .sidebox-button a {
  padding: 0.5em 1.5em;
  font-size: 1em;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.sidebox.wider-righttextbox .sidebox-button a:hover {
  background-color: #7d0218;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sidebox,
  .sidebox.wider-righttextbox {
    width: 90%;
    max-width: none;
    float: none;
    margin: 1em auto;
  }
}
