:root {
	--brand: #8C1D1D;
	--alt-brand: #A99F85;
	--primary: #8C1D1D;
	--secondary: #A99F85;
	--text: #1F1F1F;
	--heading: #2C2C2C;
	--border: #D6D6D6;
	--subtle-bg: #F8F8F8;
	--color-subtle-bg-trans: rgba(241, 245, 249, 0.75);
	--extra: #F26419;
	
	--legion-red: #c62828;  /* deep red */
	--legion-blue: #1565c0; /* deep blue */
}

body {
	margin: 0;
	font-family: 'Source Sans Pro', sans-serif;
	color: var(--text);
	background-color: var(--subtle-bg);
	line-height: 1.6;
}

.full-screen-container {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

header {
	background-color: var(--heading);
	color: white;
	padding: 1.5rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

header h1 {
	font-family: 'Special Elite', cursive;
	margin: 0;
	font-size: 1.8rem;
}

nav a {
	color: white;
	text-decoration: none;
	margin: 0 1rem;
	font-weight: 600;
}

nav a:hover {
	color: var(--alt-brand)
}

.hero {
  background: url('Images/homepage-hero.jpg') center/cover no-repeat;
  color: var(--color-heading);
  text-align: center;
  padding: 6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  background-color: var(--color-subtle-bg-trans);
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 700px;
}

.hero h2 {
	font-family: 'Special Elite', cursive;
	color: var(--text);
	font-size: 2.5rem;
	margin: 0 0 1rem;
}

.hero button {
	background: var(--brand);
	color: white;
	border: none;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.3s;
}

.hero button:hover {
	background: var(--extra);
}

.featured-posts {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	padding: 3rem 2rem;
	background: white;
	justify-content: center;
}

.post-card {
	background: var(--subtle-bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
	transition: transform 0.2s ease;
	flex: 1 1 calc(33% - 2rem);
	max-width: 350px;
	display: flex;
	flex-direction: column;
}

.post-card:hover {
	transform: translateY(-5px);
}

.post-card picture,
.post-card img {
  width: 100%;
  height: 200px;       /* was 200% — probably meant 200px for a fixed height */
  object-fit: cover;
  display: block;
}


.post-content {
	padding: 1rem;
}

.post-content h3 {
	font-family: 'Special Elite', cursive;
	color: var(--heading);
	margin-top: 0;
}

.post-content p {
	font-size: 0.95rem;
}

.page-header {
	text-align: center;
	padding: 3rem 1rem 2rem;
	background: var(--subtle-bg);
}

.page-header h2 {
	font-family: 'Special Elite', cursive;
	font-size: 2.2rem;
	margin-bottom: 0.5rem;
	color: var(--heading);
}

.affiliate-disclosure {
  background: var(--subtle-bg);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  border-left: 4px solid var(--primary);
  border-radius: 4px;
}


.dispatch-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	padding: 2rem;
}

.dispatch-card:hover {
	transform: translateY(-5px);
}

.dispatch-card img {
	width: 100%;
	height: 180px;
	object-fit: cover
}

.dispatch-content h3 {
	font-family: 'Special Elite', cursive;
	color: var(--heading);
	margin: 0;
}

.read-more {
	align-self: flex-start;
	color: var(--brand);
	text-decoration: none;
	font-weight: bold;
	margin-top: auto;
	transition: color 0.3s ease;
}

.read-more:hover {
	color: var(--extra);
}

.dispatch-post {
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem;
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Search box styling */
.dispatches-search {
  background: var(--subtle-bg);
  padding: 2rem 1rem;
  text-align: center;
}

.dispatches-search .search-label {
  display: block;
  font-weight: bold;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.dispatches-search input {
  width: 100%;
  max-width: 600px;
  text-align: center;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

#noResults {
  color: #555;
  font-style: italic;
}

#noResults a {
  color: var(--accent, #0077cc);
  text-decoration: underline;
}

#searchGame {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  max-width: 600px;
}

/* Dispatch cards (existing styles, tweak for grid) */
.dispatches-list .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.post-title {
	font-family: 'Special Elite', cursive;
	font-size: 2rem;
	color: var(--heading);
	margin-bottom: 0.5rem;
}

.post-meta {
	color: var(--secondary);
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}

.post-hero {
	width: 100%;
	max-height: 400px;
	object-fit: cover;
	margin-bottom: 1.5rem;
	border-radius: 4px;
}

.post-inline-image {
	width: 100%;
	margin: 1.5rem 0;
	border-radius: 4px;
}

.character-quote {
	border-left: 4px solid var(--brand);
	background: var(--subtle-bg);
	margin: 1.5rem 0;
	padding: 1rem;
	font-style: italic;
	font-size: 1.1rem;
	postion: relative;
}

.character-quote cite {
	display: block;
	text-align: right;
	font-size: 0.85rem;
	color: var(--secondary);
	margin-top: 0.5rem;
}

/* Army Section Title */
.army-section h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--primary);
  padding-left: 0.5rem;
}

/* Grid layout for the UL */
.army-section ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Each LI item */
.army-section li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
}

/* Upgrades styling (smaller, lighter) */
.army-section li .upgrade {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Make cards responsive and side by side */
.army-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

/* Army Card */
.army-card {
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.03);
  padding: 1rem;
}

/* Legion Red / Blue background */
.army-card-legion-blue {
  background: rgba(0, 123, 255, 0.1); /* subtle blue tint */
  border: 1px solid rgba(0, 123, 255, 0.3);
}

.army-card-legion-red {
  background: rgba(220, 53, 69, 0.1); /* subtle red tint */
  border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Affiliate Button */
.affiliate-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-top: 0.75rem;
  background: var(--primary);
  color: var(--subtle-bg);
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  transition: background 0.3s;
}

.affiliate-link:hover {
  background: var(--secondary);
}

.unit-affiliate {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.3s;
}

.unit-affiliate:hover {
  color: var(--secondary);
}

/* ABOUT PAGE STYLING */
.about-page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.about-page h2,
.about-page h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.about-page p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.styled-list {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: disc;
}

.youtube-embed {
  margin: 1.5rem 0;
  text-align: center;
}

.youtube-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--subtle-bg);
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}

.youtube-button:hover {
  background: var(--secondary);
  color: var(--subtle-bg);
}

footer {
	background: var(--heading);
	color: white;
	text-align: center;
	padding: 1rem;
	font-size: 0.9rem;
	margin-top: auto;
}

/* ========== CONTACT PAGE STYLES ========== */

/* Hero section for contact page */
.hero-contact {
  background: url('Images/homepage-hero.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  display: block;
}

.hero-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.hero-contact .hero-text-box {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: rgba(255, 255, 255, 0.15); /* subtle white box */
  padding: 1.5rem 2rem;
  border-radius: 8px;
  backdrop-filter: blur(3px); /* optional: adds glassy effect */
}

.hero-contact h1 {
  display: block;
  margin: 0 0 0.5rem 0; /* space below heading */
  font-size: 2.5rem;
  color: white;
}

.hero-contact p {
  display: block;
  margin: 0.5rem 0 0 0; /* space above paragraph */
  font-size: 1.25rem;
  color: white;
}

/* Contact Section */
.contact-section {
  padding: 4rem 2rem;
  background: var(--subtle-bg);
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--heading);
}

.contact-section p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: var(--text);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--heading);
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

/* Button inside form */
.contact-form button,
.contact-form .btn-primary {
  background: var(--primary);
  color: var(--subtle-bg);
  font-weight: bold;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: center;
}

.contact-form button:hover,
.contact-form .btn-primary:hover {
  background: var(--secondary);
  cover: var(--subtle-bg);
}


/* Responsive Layout */
@media (max-width: 1024px) {
	.post-card {
		flex: 1 1 calc(50% - 2rem);
	}
}

@media (max-width: 600px) {
	.header {
		flex-direction: column;
		text-align: center;
	}
	
	nav a {
		display: inline-block;
		margin: 0.5rem;
	}
	
	.post-card {
		flex: 1 1 100%;
	}
	
	.hero {
		padding: 3rem 1rem;
	}
	
	.hero h2 {
		font-size: 1.8rem;
	}
	
	.dispatch-post {
		padding: 1rem;
	}
	
	.post-title {
		font-size: 1.6rem;
	}
	
	.army-lists {
    grid-template-columns: 1fr 1fr;
	}
	
	.about-page {
    padding: 0.5rem;
	}

  .youtube-button {
    width: 100%;
	}
	
	.contact-form {
    padding: 1.5rem;
  }
  .hero-contact {
    padding: 3rem 1rem;
  }
}