:root {
  --primary-bg: #ffffff;
  --accent-gold: #d4af37;
  --text-dark: #2c2c2c;
  --text-light: #666666;
  --border-color: #e5e5e5;
  --hover-gold: #b8941f;
  --section-spacing: 3rem;
  --content-width: 900px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Georgia", serif;
  background-color: var(--primary-bg);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
}

.gradient-text {
  background-image: radial-gradient(
    circle,
    rgba(176, 144, 93, 1) 0%,
    rgba(246, 218, 167, 1) 50%,
    rgba(161, 128, 71, 1) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: bolder;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  margin-top: 120px;
  padding: 2rem;
}

header.page-header {
  text-align: center;
  margin-bottom: var(--section-spacing);
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--accent-gold);
}

h1 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 2rem;
}

.element-section {
  margin-bottom: var(--section-spacing);
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.element-section:nth-child(even) {
  flex-direction: column;
}

.element-section:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.element-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.element-emoji {
  font-size: 2rem;
  margin-right: 1rem;
}

.element-title {
  font-size: 1.8rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.element-content {
  font-size: 1.1rem;
  color: var(--text-dark);
  text-align: justify;
  flex: 1;
}

.element-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1.5rem;
}

.element-image:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.conclusion {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  padding: 3rem 2rem;
  margin: var(--section-spacing) -2rem 0;
  text-align: center;
  border-top: 3px solid var(--accent-gold);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.conclusion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../../images/fire-sunset.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: -1;
}

.conclusion h2 {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.conclusion p {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.cta {
  background-color: var(--accent-gold);
  color: var(--primary-bg);
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta:hover {
  background-color: var(--hover-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.highlight {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Blog styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.blog-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.blog-card-excerpt {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: auto;
}

.blog-card-link {
  display: inline-block;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.blog-card-link:hover {
  color: var(--hover-gold);
  text-decoration: underline;
}

/* Navigation */
.site-header {
  position: fixed;
  top: 30px;
  left: 30px;
  right: 30px;
  padding: 10px 40px;
  background-color: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50px;
  transition: all 0.5s ease;
  z-index: 97;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .main-logo {
  display: flex;
  align-items: center;
  z-index: 1;
}

.site-header .main-logo img {
  height: 40px;
  width: auto;
}

.site-header .nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.site-header .nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.site-header .nav-links a:hover {
  color: var(--accent-gold);
}

.site-header .nav-links a.button {
  background-color: var(--accent-gold);
  color: #fff;
  padding: 8px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.site-header .nav-links a.button:hover {
  background-color: var(--hover-gold);
  transform: translateY(-2px);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* Add this to hide the close button by default */
.close-menu {
  display: none;
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 99;
}

.close-menu:hover {
  color: var(--accent-gold);
}

/* When scrolling, make header more compact */
.site-header.scrolled {
  top: 0;
  padding: 5px 40px;
  background-color: rgba(0, 0, 0, 0.8);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Selection styling */
::selection {
  background-color: var(--accent-gold);
  color: var(--primary-bg);
}

/* Responsive styles */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .element-content {
    margin-left: 0;
    margin-top: 1rem;
  }

  .element-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .element-emoji {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .element-image {
    width: 100%;
    height: 250px;
  }

  .site-header {
    padding: 10px 20px;
  }

  .menu-btn {
    display: block;
  }

  .close-menu {
    display: block; /* Show the close button only on mobile */
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 30px 50px;
    transition: right 0.4s ease;
    z-index: 98;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    padding: 15px 0;
    font-size: 18px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Add a dark overlay when mobile menu is open */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 97;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }
}
