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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #111827;
  line-height: 1.6;
}

.max-width {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Header */
.header {
  background-color: #c0A176;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #4b5563;
}

.menu-toggle span {
  width: 1.5rem;
  height: 0.2rem;
  background-color: #4b5563;
  border-radius: 0.1rem;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #2563eb;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.search-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.search-btn:hover {
  color: #111827;
}

/* Mobile Menu */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
  }

  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem;
    gap: 1rem;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(to bottom, #d3b590, #dcbf9f);
  padding: 3rem 0 8rem;
  text-align: center;

}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 1rem;
  background-color: #f6dba3;
  max-width: 30rem;
  line-height: 1.75;
 border-radius: 15px;
}

.hero-description {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Buttons */
.btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background-color: #466577;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #93acb8;
  color: #ffffff;
}

.btn-secondary {
  background-color: #bd9e71;
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #e3c6a6;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: #4b5563;
  max-width: 82rem;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: #e3c6a6;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background-color: #f9fafb;
  padding: 2rem;
  border-radius: 0.5rem;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background-color: #dbeafe;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #2563eb;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.card-text {
  color: #4b5563;
  line-height: 1.625;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: #b99a6a;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background-color: #dbeafe;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #2563eb;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.feature-text {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.625;
}

/* Community Section */
.community {
  padding: 5rem 0;
  background-color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background-color: #eff6ff;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
}

.stat-icon {
  color: #2563eb;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.stat-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #4b5563;
}

/* Posts Section */
.posts-section {
  margin-top: 3rem;
}

.posts-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post {
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
}

.post:hover {
  border-color: #bfdbfe;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.post-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.post-comments {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #4b5563;
  font-size: 0.875rem;
}

.post-comments svg {
  color: #4b5563;
}

.post-content {
  color: #4b5563;
  margin-bottom: 1rem;
  line-height: 1.625;
}

.post-link {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.post-link:hover {
  color: #1d4ed8;
}

/* Footer */
.footer {
  background-color: #416173;
  color: #ffffff;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-text {
  color: #d1d5db;
  font-size: 0.875rem;
  line-height: 1.625;
}

.footer-subtitle {
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #d1d5db;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 0 4rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .about {
    padding: 3rem 0;
  }

  .features {
    padding: 3rem 0;
  }

  .community {
    padding: 3rem 0;
  }

  .footer {
    padding: 2rem 0;
  }

  .post-header {
    flex-direction: column;
    gap: 1rem;
  }

  .post-comments {
    margin-top: 0.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  .card {
    padding: 1.5rem;
  }

  .feature-card {
    padding: 1rem;
  }

  .max-width {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
