/* Link Styling */
a:link, a:visited, a:active { text-decoration: none; color: #920000; }
a:hover { text-decoration: underline; color: #B70000; }

/* Special Link Styles */
a.feat:link, a.feat:visited { text-decoration: none; color: #920000; }
a.feat:hover { text-decoration: none; color: #B70000; }

/* General Table Text */
td { font: 10px Verdana, Arial; color: #000000; }

/* Specific Text Styles */
.newstitle { font: 12px Verdana; color: #921717; font-weight: bold; }
.sub-header, .header { font-weight: bold; text-align: center; }

/* Highlighted Section */
.highlight { font-size: 16px; font-weight: bold; background-color: yellow; text-align: center; }

/* Input & Select Elements */
textarea { color: #000000; font-family: verdana; font-size: 12px; }
select { color: #000000; font-family: verdana; font-size: 10px; }
blockquote { font-family: tahoma, arial, verdana; font-size: 11px; }


/* General Styling */
body {
	font-family: Arial, sans-serif;
}

footer {
	background-color: #660000;
	text-align: center;
	color: #FFFFFF;
	font-weight: bold;	
}

footer p{
	font-color: #FFFFFF;
	margin: 0;
	padding: 10px 0; /* Keeps some padding for readability */
}

/* Header Image */
.header-table img {
	width: 100%;
	max-width: 1159px;
	height: auto;
}

.header {
	font-size: 24px;
	font-weight: bold;
	text-align: center;
	text-decoration: underline;	
	padding: 10px;
}

.sub-header {
	font-size: 20px;
	text-align: center;
	font-weight: bold;
	padding: 10px;
}

/* === Layout and Flex Container === */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centers both children horizontally */
  gap: 20px; /* optional: space between the two columns */
}

/* === Left Column: Main Content === */
.sidebar {
  width: 30%;
  max-width: 400px;
  flex-shrink: 0;
  background-color: #660000;
  margin-bottom: 0;
}

/* === Right Column: Sidebar === */
.main-content {
  width: 68%;
  //max-width: 1000px;
  flex-grow: 1;
  text-align: center;
}

/* === Responsive Tables and Images === */
.main-content table,
.sidebar table {
  width: 100%;
  border-collapse: collapse;
}

.main-content img,
.sidebar img {
  display: inline-block;         /* Ensures images behave like text for centering */
  max-width: 100%;
  height: auto;
  padding: 10px;
}

.link-table-wrapper {
	width: 80%;
	margin: 0 auto;
}

.link-table-container {
	width: inherit; /* Restricts the <td> itself */
	margin: 0 auto; /* Centers the <td> */
	background-color: #660000;
	vertical-align: top;
}

.link-table {
	border: 2px solid #990000;
	border-collapse: collapse;
	padding: 5px;	
	width: 100%; /* Ensures it takes up 80% of its parent */
	margin: 0 auto; /* Centers it */
}

.link-table td{
	background-color: #FFFFFF;
}

.contact-table-wrapper {
	width: 60%; /* Restrict the container to 80% */
	margin: 0 auto; /* Center it */
	margin-top: 20px; /* Adds space above the contact table */
}

.contact-table {
	border: 2px solid #990000;
	border-collapse: collapse;
	padding: 5px;
	width: 100%; /* Ensure it respects the parent width */
}

.contact-table td {
	padding: 5px;
	text-align: center;
	background-color: #FFFFFF;
	border: 2px solid #990000;
	font-weight: bold;
}

/* Form Container */
form {
	width: 80%; /* Adjust to fit within the page */
	margin: 20px auto; /* Centers form */
	padding: 20px;
	background-color: #660000; /* Matches theme */
	border-radius: 10px;
}

.form-group {
	display: flex;
	justify-content: center; /* Center horizontally */
	align-items: center; /* Center vertically */
	flex-direction: column;
	width: 100%;
}

.form-group label {
	display: block;
	font-weight: bold;
	color: #FFFFFF; /* White text */
	margin-bottom: 5px;
}

/* Input Fields */
.form-control {
	width: 70%;
	padding: 10px;
	border: 2px solid #990000; /* Matches contact-table */
	border-radius: 5px;
	background-color: #FFFFFF;
	font-size: 16px;
	text-align: center; /* Centers text inside input fields */
}

.has-error {
	border: 2px solid #cc0000; /* Red border to highlight errors */
	background-color: #ffcccc; /* Light red background */
}

.file-wrapper {
	display: flex;
	flex-direction: column; /* Stacks label and input vertically */
	align-items: center; /* Centers both elements horizontally */
	width: 100%;
}

/* File Upload */
input[type="file"] {
	width: auto; /* Prevents it from stretching */
	text-align: center; /* This may not affect file inputs, but let's include it */
	margin: 0 auto; /* Ensures proper centering */
}

/* Textarea */
textarea {
	width: 100%;
	height: 120px;
	resize: vertical;
	border-radius: 5px;
	font-size: 16px;
	text-align: center;
}

/* Submit Button */
button {
	background-color: #B70000; /* Strong CTA */
	color: #FFFFFF;
	font-size: 18px;
	padding: 10px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	width: 25%;
	text-transform: uppercase;
}

button:hover {
	background-color: #920000;
}

/* Mobile-friendly adjustments */
@media (max-width: 768px) {
	form {
		width: 90%;
	}
	.container {
		flex-direction: column;
		align-items: center;
	}

	.main-content,
	.sidebar {
		width: 100%;
		max-width: none;
	}
}
