/* --- Bradford Guild Official Styles --- */
:root {
  --primary-teal: #005a5a;
  --dark-teal: #003333;
  --primary-gold: #d4af37;
  --secondary-gold: #b8962e;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --text-dark: #2d3436;
  --text-muted: #666666;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header & Navigation --- */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 20px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-teal);
}

/* --- Branded Gold Button --- */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
  color: white;
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--dark-teal) 0%, var(--primary-teal) 100%);
  color: white;
  padding: 5rem 0;
  margin-bottom: 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.search-box {
  background: white;
  padding: 5px;
  border-radius: 8px;
  display: flex;
  max-width: 500px;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.search-input {
  flex: 1;
  border: none;
  padding: 0.8rem 1rem;
  outline: none;
  font-size: 1rem;
  color: var(--text-dark);
}

    /* --- Stats Section (Separated Cards) --- */
.stats {
  padding: 2rem 0;
  margin-top: -4rem; /* Overlaps the hero slightly */
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem; /* This creates the physical space between the boxes */
}

.stat-card {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow); /* Each box now has its own shadow */
  transition: transform 0.3s ease, border-color 0.3s ease;
  border-bottom: 4px solid transparent;
}

.stat-card:hover {
  transform: translateY(-10px);
  border-bottom: 4px solid var(--primary-gold);
}

.stat-icon {
  width: 70px;
  height: 70px;
  background: #f0f4f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--primary-teal);
  font-size: 1.8rem;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* --- Content Layout --- */
.main-content {
  padding: 4rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 2.5rem;
}

.topic-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.9rem 1.2rem;
  background: var(--white);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.topic-link:hover, .topic-link.active {
  background: var(--primary-teal);
  color: var(--primary-gold);
  border-color: var(--primary-teal);
}

/* --- Post Cards --- */
.post-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.03);
  border-left: 5px solid transparent;
  transition: border-color 0.3s;
}

.post-card:hover {
  border-left-color: var(--primary-gold);
}

.author-avatar {
  background: var(--primary-teal);
  color: var(--primary-gold);
}

.post-title a {
  text-decoration: none;
  color: var(--primary-teal);
  font-weight: 700;
  font-size: 1.4rem;
}

/* --- Footer --- */
.footer {
  background: var(--dark-teal);
  color: white;
  padding: 5rem 0 2rem;
}

.footer-title {
  color: var(--primary-gold);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.footer-link {
  color: #bdc3c7;
  text-decoration: none;
  display: block;
  margin-bottom: 0.8rem;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--primary-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
}

/* Hero Illustration Animation */
.book-1 { background: var(--primary-gold); }
.book-2 { background: var(--white); }
.book-3 { background: #008080; }

/* Responsive */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
}