:root {
  --primary-color: #b49a5f;
  --text-color: #333;
  --bg-light: #f8f8f8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Lexend', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  padding: 40px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-overlay h1 {
  margin: 0;
  font-size: 2.5rem;
}

.hero-overlay .meta {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Container Layout */
.container {
  display: flex;
  align-items: flex-start;
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  gap: 40px;
  overflow-x: hidden;
}

.blog-content {
  flex: 3;
}

.blog-content p {
  margin-bottom: 20px;
}

/* Sidebar */
.sidebar {
  align-self: flex-start;
  background: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.sidebar h3 {
  margin-top: 0;
}

/* Social Share */
.social-share {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social-share li {
  margin-bottom: 10px;
}

.social-share a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-share a:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

.social-share a svg {
  vertical-align: middle;
  fill: var(--text-color);
  transition: fill 0.2s ease;
}

.social-share a:hover svg {
  fill: var(--primary-color);
}

.social-share a i {
  color: var(--text-color);
  transition: color 0.2s ease;
}

.social-share a:hover i {
  color: var(--primary-color);
}

/* Back Link */
.back-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover {
  text-decoration: underline;
  color: var(--text-color);
}

/* Category Tag */
.category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Footer */
footer {
  flex-shrink: 0;
  background: #b49a5f;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

footer p {
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 0 16px;
  }

  .hero {
    height: auto;
    padding: 60px 20px;
    background-position: center top;
  }

  .hero-overlay {
    padding: 20px;
  }

  .hero-overlay h1 {
    font-size: 1.75rem;
  }

  .hero-overlay .meta {
    font-size: 0.85rem;
  }
}
