/* Copied styling from static version to provide a consistent look */
/* Define school-themed color palette (approximate Miyazaki University colors) */
:root {
  --primary-color: #007236; /* deep green */
  --secondary-color: #005bac; /* deep blue */
  --light-background: #f9f9f9;
  --card-background: #ffffff;
  --border-color: #dddddd;
}

body {
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--light-background);
  color: #333;
}

nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.5rem 1rem;
}

nav a, nav button {
  color: #fff;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: opacity 0.2s ease;
}

nav a:hover, nav button:hover {
  opacity: 0.8;
  text-decoration: none;
}

.container {
  padding: 1rem;
}

.category-section {
  margin-bottom: 2rem;
}

.category-section h2 {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.25rem;
}

.post-card {
  display: inline-block;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem;
  margin: 0.5rem;
  width: 180px;
  background-color: var(--card-background);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  text-align: center;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

.post-card .name {
  margin-top: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
}

.post-detail {
  max-width: 800px;
  margin: 1rem auto;
  padding: 1.5rem;
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.post-detail h1 {
  margin-top: 0;
}

.post-detail img.main-icon {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.post-detail .president-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.form-group input[type="file"] {
  border: none;
}

.form-actions {
  margin-top: 1rem;
}

.form-actions button {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.form-actions button:hover {
  background-color: var(--secondary-color);
}

.sns-links {
  margin-bottom: 0.5rem;
}

.sns-links input {
  width: calc(100% - 2.5rem);
  margin-right: 0.5rem;
}

.sns-links button {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

/* Activity images: unify width but preserve aspect ratio */
.activity-images-preview img {
  width: 100px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
}

/* Links inside post detail for SNS etc. */
.post-detail a {
  color: var(--secondary-color);
  text-decoration: underline;
}