.create-post-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.create-section {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border: 1px solid #ccc;
  width: 100%;
  max-width: 500px;
  flex-grow: 1;
}

.create-post__title {
  text-align: center;
}

.post-container,
.create-post__img-block {
  margin-bottom: 0.75rem;
  font-size: var(--main-size);
}

label {
  font-weight: 600;
}

input {
  width: 100%;
  font-size: var(--main-size);
}

.post-area {
  width: 100%;
}

.create-post__btn-block {
  display: flex;
  justify-content: end;
  align-items: center;
}

.create-post__btn {
  text-align: end;
  border: 1px solid var(--main-color);
  background-color: #fff;
  color: var(--main-color);
  margin: var(--secondary-mg);
  border-radius: var(--main-br);
  padding: var(--main-pd) 1rem;
  font-size: 18px;
  font-weight: 500;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.create-post__btn:hover {
  border: none;
  color: #fff;
  background-color: var(--main-color);
}

/* Mobile Responsive Design */

/* Tablets (768px and below) */
@media (max-width: 768px) {
  .create-section {
    max-width: 90%;
    padding: 15px;
  }

  .create-post__title {
    font-size: 1.25rem;
  }

  input {
    font-size: 16px;
  }

  .post-area {
    min-height: 150px;
    font-size: 16px;
  }

  .create-post__btn {
    font-size: 20px;
    font-weight: 600;
    padding: 0.75rem 1rem;
  }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
  .create-section {
    width: 95%;
    margin: 0 auto;
    padding: 12px;
    border: 1px solid #ddd;
  }

  .create-post__title {
    font-size: 1.1rem;
  }

  .post-container,
  .create-post__img-block {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }

  label {
    font-size: 0.95rem;
  }

  input {
    font-size: 14px;
    padding: 0.5rem;
  }

  .post-area {
    min-height: 120px;
    font-size: 14px;
    padding: 0.5rem;
  }

  .create-post__btn-block {
    flex-direction: column;
    align-items: stretch;
  }

  .create-post__btn {
    text-align: center;
    width: 100%;
    font-size: 20px;
    font-weight: 600;
    padding: 0.6rem;
    margin: 0.5rem 0 0 0;
  }
}
