/* SANCTORUM STYLE GUIDE */

:root {
  --sanc-gold: #ffbb24;      /* [cite: 3] */
  --sanc-blue: #243d96;      /* [cite: 21] */
  --font-heading: 'Sanctorum', Georgia, serif; /* [cite: 36, 37] */
  --font-body: 'Lato', Arial, sans-serif;      /* [cite: 42, 52] */
}

/* --- Global Base Elements --- */

body {
  /* Updated to background.png with a blue tint overlay for legibility */
  background: linear-gradient(rgba(36, 61, 150, 0.7), rgba(36, 61, 150, 0.7)), url('background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  
  color: #ffffff;                    
  font-family: var(--font-body);      
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Yellow emphasis for lore keywords */
b {
  color: var(--sanc-gold); 
  font-weight: bold;
}

/* Headers: Unbolded per project requirements */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-weight: normal; 
}

/* --- Layout --- */

.container {
  max-width: 900px; 
  margin: 0 auto;
  padding: 40px 20px;
}

.nav-link {
  color: var(--sanc-gold); 
  text-decoration: none; 
  font-family: var(--font-heading); 
  font-size: 1.2em;
  margin: 5px 15px;
  display: inline-block;
  transition: color 0.3s ease;
  font-weight: normal; 
}

.nav-link:hover { color: #ffffff; }

/* --- Section Styling (Modular Blocks) --- */

.history-section {
  /* Increased opacity for a clean, professional "card" look over the PNG */
  background-color: rgba(0, 0, 0, 0.75); 
  padding: 25px;
  margin-bottom: 30px;
  border-left: 4px solid var(--sanc-gold);
  border-radius: 0 4px 4px 0;
  text-align: left;
}

/* --- Grids --- */

.houses-grid, .gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 20px;
}

.houses-grid {
  max-width: 500px;
  margin: 0 auto;
}

.gallery-item {
  background-color: rgba(0, 0, 0, 0.75);
  padding: 20px;
  border: 1px solid rgba(255, 187, 36, 0.1);
  text-align: center;
}

.gallery-item img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--sanc-gold);
}

.gallery-item.large {
  grid-column: span 2;
}

.button-primary {
  display: inline-block;
  background-color: var(--sanc-gold); 
  color: #000000;
  text-decoration: none;
  padding: 12px 24px;
  margin-top: 15px;
  border-radius: 2px;
  font-weight: normal;
  transition: background-color 0.3s ease;
}

.button-primary:hover {
  background-color: #ffffff;
}

/* Responsive Tweak */
@media (max-width: 600px) {
  .houses-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: span 1; }
}