.main {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a4d2e 0%, #2c5530 50%, #1a4d2e 100%);
  color: #ffffff;
  position: relative;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 40px;
  position: relative;
  z-index: 1;
}

.header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.headerContent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.headerContent > div {
  flex: 1;
  min-width: 200px;
}

.header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 700;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  user-select: text;
}

.subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  user-select: text;
}

.loading,
.error,
.empty {
  text-align: center;
  padding: 40px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
}

.error {
  color: #ff6b6b;
}

.blogGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  width: 100%;
}

.blogCard {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.blogCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.imageContainer {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.featuredImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blogCard:hover .featuredImage {
  transform: scale(1.05);
}

.cardContent {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.blogTitle {
  font-size: 1.5rem;
  margin: 0 0 15px 0;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.3;
  pointer-events: none;
}

.meta {
  margin-bottom: 15px;
}

.date {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.excerpt {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0 0 15px 0;
  flex: 1;
  pointer-events: none;
}

.readMore {
  color: #c8e6c9;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: auto;
  pointer-events: none;
}

.addButton {
  background: linear-gradient(135deg, #2c5530 0%, #1a3a1e 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  z-index: 100;
  pointer-events: auto;
}

.addButton:hover {
  background: linear-gradient(135deg, #1a3a1e 0%, #2c5530 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.blogCardWrapper {
  position: relative;
}

.adminActions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.editButton,
.deleteButton {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  pointer-events: auto;
}

.editButton {
  background: rgba(200, 230, 201, 0.9);
  color: #1a3a1e;
}

.editButton:hover {
  background: #c8e6c9;
  transform: scale(1.05);
}

.deleteButton {
  background: rgba(255, 107, 107, 0.9);
  color: #ffffff;
}

.deleteButton:hover {
  background: #ff6b6b;
  transform: scale(1.05);
}

.draftBadge {
  background: rgba(255, 193, 7, 0.3);
  color: #ffc107;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 10px;
}

.adminForm {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 50;
  pointer-events: auto;
}

.adminForm h2 {
  color: #ffffff;
  margin: 0 0 25px 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.formGroup {
  margin-bottom: 25px;
}

.formGroup label {
  display: block;
  color: #c8e6c9;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.formInput,
.formSelect {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.formInput:focus,
.formSelect:focus {
  outline: none;
  border-color: #c8e6c9;
  background: rgba(255, 255, 255, 0.15);
}

.formInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.formSelect {
  cursor: pointer;
}

.formTextarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
  font-family: 'Courier New', monospace;
  line-height: 1.6;
  resize: vertical;
  min-height: 300px;
  transition: all 0.2s ease;
}

.formTextarea:focus {
  outline: none;
  border-color: #c8e6c9;
  background: rgba(255, 255, 255, 0.15);
}

.formTextarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.formActions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.saveButton,
.cancelButton {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: inherit;
}

.saveButton {
  background: linear-gradient(135deg, #2c5530 0%, #1a3a1e 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.saveButton:hover {
  background: linear-gradient(135deg, #1a3a1e 0%, #2c5530 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cancelButton {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cancelButton:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .main {
    background: linear-gradient(135deg, #1a4d2e 0%, #2c5530 50%, #1a4d2e 100%);
    color: #ffffff;
  }

  .container {
    padding: 90px 15px 20px;
    max-width: 100%;
  }

  .headerContent {
    flex-direction: column;
    align-items: stretch;
  }

  .addButton {
    width: 100%;
  }

  .adminForm {
    padding: 20px;
  }

  .adminForm h2 {
    font-size: 1.5rem;
  }

  .formActions {
    flex-direction: column;
  }

  .saveButton,
  .cancelButton {
    width: 100%;
  }

  .header {
    text-align: center;
    margin-bottom: 30px;
  }

  .header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 700;
  }

  .subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
  }

  .blogGrid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    min-width: 0;
  }

  .blogCard {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
  }

  .cardContent {
    padding: 20px;
  }

  .blogTitle {
    font-size: 1.3rem;
    color: #ffffff;
    margin: 0 0 12px 0;
  }

  .excerpt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
  }

  .readMore {
    font-size: 0.9rem;
    color: #c8e6c9;
  }

  .loading,
  .error,
  .empty {
    padding: 30px 20px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 80px 10px 20px;
  }

  .header h1 {
    font-size: 1.75rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .blogCard {
    border-radius: 12px;
  }

  .cardContent {
    padding: 15px;
  }

  .blogTitle {
    font-size: 1.2rem;
  }

  .excerpt {
    font-size: 0.85rem;
  }

  .imageContainer {
    height: 200px;
  }
}

