:root {
  --primary-color: #A86E48;
  --secondary-color: #6D3D1B;
  --accent-color: #803530;
  --text-color: #fafafa;
  --border-color: #803530;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --container-width: 978px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', 'Segoe UI', sans-serif;
}

body {
  color: var(--text-color);
  font-size: 13px;
  background: #000 url('images/header.jpg') no-repeat top center;
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}
a:hover,
a:active,
a:visited {
  color: #fff;
}

h1, h2, h3 {
  font-family: 'Open Sans', 'Segoe UI Light', sans-serif;
  color: var(--text-color);
  font-weight: 200;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 37pt;
  line-height: 50px;
}
h2 {
  font-size: 17pt;
  line-height: 21pt;
}
h3 {
  font-size: 15pt;
}

header {
  width: 1002px;
  margin: auto;
  position: relative;
  height: 380px;
  line-height: 40px;
  overflow: hidden;
}

.site-branding {
  text-align: left;
  margin-top: 190px;
  margin-left: 20px;
  padding-right: 10px;
  width: 600px;
}

.site-title {
  font-size: 37pt;
  color: #fff;
  line-height: 50px;
  letter-spacing: -2px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}
.site-title a {
  color: #fff;
  padding: 5px;
}

#menu {
  width: 997px;
  margin: auto;
  height: 50px;
  background: var(--primary-color);
  border: 1px solid var(--accent-color);
  color: #fff;
  box-shadow: inset 0 0 10px var(--shadow-color), 0 5px 0 var(--shadow-color);
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
}

#menu ul {
  list-style: none;
  width: 1000px;
  margin: auto;
  display: flex;
  justify-content: center;
}
#menu ul li {
  padding: 12px;
  transition: all 0.3s ease-in-out;
}
#menu ul li:hover {
  background: var(--secondary-color);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2), inset 0 0 15px rgba(0, 0, 0, 0.2);
}
#menu ul li a {
  color: #fff;
  padding: 0 10px;
  font-size: 11px;
  display: block;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}
#menu ul li a:hover,
#menu ul li a.active {
  color: #FFFF55;
}

.content {
  max-width: var(--container-width);
  padding: 20px 10px;
  background: #3E1D1A;
  margin: auto;
  border: 1px solid var(--accent-color);
  border-top: 0;
  color: var(--text-color);
}

.page-title,
.news-title,
.info-title {
  text-align: left;
  color: var(--text-color);
  padding: 7px;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  background: var(--secondary-color);
  max-width: 615px;
  border: 2px solid var(--accent-color);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2), 0 5px 0 var(--shadow-color);
  margin-bottom: 1rem;
}

.page-content,
.news-content {
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.7;
  padding: 0 10px 10px 0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.news-card {
  background: #2a120f;
  color: var(--text-color);
  border: 1px dashed var(--secondary-color);
  padding: 10px;
  margin-bottom: 15px;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.news-date {
  font-size: 12px;
  color: #ccc;
  text-align: center;
}

.no-news {
  text-align: center;
  color: #ccc;
  font-size: 14px;
}

.form-label {
  display: block;
  padding: 5px 0;
  font-weight: bold;
  color: var(--text-color);
  font-size: 13px;
}

.form-input {
  width: 99%;
  padding: 5px;
  margin-bottom: 10px;
  background: #6F6753;
  color: var(--text-color);
  border: 1px solid var(--accent-color);
  font-size: 13px;
}

.success-message {
  color: #fff;
  background: var(--primary-color);
  padding: 5px;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 10px;
}

.error-message {
  color: #fff;
  background: var(--accent-color);
  padding: 5px;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 10px;
}

.styled-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #2a120f;
  color: var(--text-color);
  border: 1px solid #444;
  margin-bottom: 15px;
}

.styled-table th,
.styled-table td,
.data-table th,
.data-table td {
  padding: 10px;
  text-align: center;
  border: 1px solid #555;
  font-size: 13px;
}

.styled-table th,
.data-table th {
  background: var(--primary-color);
  color: #fff;
}

.styled-table tbody tr:hover,
.data-table tbody tr:hover {
  background: #4b3328;
}

.main-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.left-column {
  flex: 2;
  min-width: 300px;
  max-width: 615px;
}

.right-column {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
}

.server-info {
  margin-bottom: 15px;
}

.info-card {
  background: #2a120f;
  border: 1px dashed var(--secondary-color);
  padding: 10px;
  max-width: 100%;
  color: var(--text-color);
}

.info-list {
  list-style: none;
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.7;
}
.info-list li {
  padding: 8px 0;
  border-bottom: 1px solid #444;
}
.info-list li:last-child {
  border-bottom: none;
}

.status-online {
  color: #28a745;
  font-weight: bold;
}
.status-offline {
  color: #dc3545;
  font-weight: bold;
}

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

/* === Button Styles === */
button,
.read-more,
.btn-submit {
  display: inline-block;
  padding: 5px 12px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50px;
  border: none;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(221, 221, 221, 0.5), inset 3px 3px 0 rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease-in-out, transform 0.2s ease;
}

button:hover,
.read-more:hover,
.btn-submit:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
}

button:disabled,
.btn-submit:disabled {
  background: #999;
  color: #ccc;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-small {
  padding: 3px 10px;
  font-size: 12px;
}

.btn-large {
  padding: 8px 18px;
  font-size: 16px;
}

/* === Responsive === */
@media (max-width: 768px) {
  header {
    width: 100%;
    height: auto;
  }

  .site-branding {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
  }

  .site-title {
    font-size: 24pt;
    line-height: 30px;
  }

  #menu {
    width: 100%;
  }

  #menu ul {
    flex-direction: column;
    align-items: center;
  }

  #menu ul li {
    width: 100%;
    text-align: center;
  }

  .content {
    width: 100%;
    padding: 10px;
  }

  .main-content {
    flex-direction: column;
  }

  .left-column,
  .right-column,
  .page-title,
  .news-title,
  .info-title,
  .news-card,
  .info-card {
    max-width: 100%;
    width: 100%;
  }

  .form-input,
  button,
  .read-more,
  .btn-submit {
    width: 100%;
  }
}
.site-logo {
    width: 150px; /* Adjust size as needed */
    height: auto;
    vertical-align: middle;
}
.site-title {
    display: inline-block;
    margin-left: 10px; /* Space between logo and text */
    vertical-align: middle;
}
/* Specific styles for server-info to avoid global interference */
.server-info {
    margin-bottom: 15px;
}

.server-info .info-card {
    background: #2a120f;
    border: 1px dashed var(--secondary-color);
    padding: 10px;
    max-width: 100%;
    color: var(--text-color);
}

.server-info .info-title {
    text-align: left;
    color: var(--text-color);
    padding: 7px;
    font-size: 20px; /* Explicitly set to 20px for resize */
    background: var(--secondary-color);
    max-width: 615px;
    border: 2px solid var(--accent-color);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2), 0 5px 0 var(--shadow-color);
    margin-bottom: 1rem;
}

.server-info .info-list {
    list-style: none;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.7;
}
.server-info .info-list li {
    padding: 8px 0;
    border-bottom: 1px solid #444;
}
.server-info .info-list li:last-child {
    border-bottom: none;
}

.server-info .status-online {
    color: #28a745;
    font-weight: bold;
}
.server-info .status-offline {
    color: #dc3545;
    font-weight: bold;
}

@media (max-width: 768px) {
    .server-info .info-title {
        font-size: 18px; /* Smaller size for mobile */
    }
}
.nav-logo {
    width: 20px; /* Adjust size as needed */
    height: auto;
    vertical-align: middle;
    margin-right: 5px; /* Space between logo and text */
}
#menu {
    width: 997px;
    margin: auto;
    height: 50px;
    background: var(--primary-color);
    border: 1px solid var(--accent-color);
    color: #fff;
    box-shadow: inset 0 0 10px var(--shadow-color), 0 5px 0 var(--shadow-color);
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
}

#menu ul {
    list-style: none;
    width: 1000px;
    margin: auto;
    display: flex;
    justify-content: center;
}

#menu ul li {
    padding: 12px;
    transition: all 0.3s ease-in-out;
}

#menu ul li:hover {
    background: var(--secondary-color);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2), inset 0 0 15px rgba(0, 0, 0, 0.2);
}

#menu ul li a {
    color: #fff;
    padding: 0 10px;
    font-size: 18px;
    display: block;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
    font-weight: bold; /* Added to make the text bold */
}

#menu ul li a:hover,
#menu ul li a.active {
    color: #FFFF55;
}
/* Discord Widget Styles */
.sidebar-widget.discord-widget {
  margin-bottom: 15px;
}

.discord-widget .widget-header {
  background: var(--secondary-color);
  border: 2px solid var(--accent-color);
  padding: 7px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2), 0 5px 0 var(--shadow-color);
  margin-bottom: 10px;
}

.discord-widget .widget-header h3 {
  font-size: 15pt;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-widget .widget-content {
  background: #2a120f;
  border: 1px dashed var(--secondary-color);
  padding: 10px;
}

.discord-embed {
  width: 100%;
  overflow: hidden;
}

.discord-embed iframe {
  width: 100%;
  max-width: 300px; /* Matches right-column max-width */
  height: 400px;
  display: block;
  margin: 0 auto;
}

.btn-discord {
  display: flex; /* Use flexbox for centering */
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
  padding: 5px 12px;
  background: var(--primary-color); /* Matches site theme */
  color: var(--text-color);
  border-radius: 50px;
  border: none;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(221, 221, 221, 0.5), inset 3px 3px 0 rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease-in-out, transform 0.2s ease;
  gap: 5px; /* Space between icon and text */
}

.btn-discord i {
  font-size: 16px; /* Slightly larger icon */
}

.btn-discord:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
  color: #FFFF55; /* Matches menu hover color */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .discord-embed iframe {
    max-width: 100%;
    height: 350px; /* Shorter for mobile */
  }

  .discord-widget .widget-header h3 {
    font-size: 13pt;
  }

  .btn-discord {
    width: 100%;
    padding: 8px;
  }
}
.news-author {
    font-size: 12px;
    color: var(--text-light, #bbb);
    display: block;
    margin-top: 4px;
}
.news-header .news-meta {
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-light, #ccc);
    line-height: 1.4;
}

.news-author {
    display: block;
    font-style: italic;
    color: var(--text-light, #aaa);
}
