/* Main variables */
:root {
  --primary-color: #159957;
  --primary-hover: #13884b;
  --text-dark: #2c3e50;
  --text-medium: #555;
  --text-light: #fff;
  --background-light: #f8f9fa;
  --border-color: #eee;
}

/* Base styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #fff;
  margin: 0;
  padding: 0;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

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

/* Layout */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.page-header {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-light);
  text-align: center;
  padding: 8rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  background-image: url('/images/pano1.jpg');
}

.page-header[data-overlay-image] {
  background-image: var(--header-overlay-image);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-header > .wrapper {
  position: relative;
  z-index: 2;
}

.page-header .project-name {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.page-header .project-tagline {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn:hover {
  background: var(--primary-hover);
  color: white;
  text-decoration: none;
}

/* Header Buttons */
.header-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Main Content */
.main-content {
  padding: 2rem 0;
}

.intro {
  text-align: center;
  margin-bottom: 3rem;
}

.intro h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.intro p {
  font-size: 1.2rem;
  color: var(--text-medium);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Blog posts */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.page-title {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  text-align: center;
}

.intro-text {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-medium);
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.category-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.category-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.post-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.post-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.post-link:hover {
  color: var(--primary-color);
}

.post-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.post-date {
  font-size: 0.85rem;
  color: var(--text-medium);
}

.all-posts {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.all-posts h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.post-tags {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  background-color: var(--background-light);
  color: var(--text-medium);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.tag:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Section Headers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
}

h2 {
  font-size: 2rem;
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

/* Feature Rows */
.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

.feature-item {
  flex: 1 1 300px;
  background: #fff;
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.feature-item h3 {
  margin-top: 0;
  color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .page-header {
    padding: 5rem 1rem;
  }
  
  .page-header .project-name {
    font-size: 2.2rem;
  }
  
  .page-header .project-tagline {
    font-size: 1.2rem;
  }
  
  .intro h1 {
    font-size: 1.8rem;
  }
  
  .intro p {
    font-size: 1.1rem;
  }
  
  .feature-row {
    flex-direction: column;
  }
}
