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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  min-height: 100vh;
}

nav {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1rem 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

nav a.active {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1, h2, h3, h4, h5, h6 {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin: 1.5rem 0 1rem 0;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p, li {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffd700;
}

.alerts {
  margin-bottom: 2rem;
}

.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  margin-bottom: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInDown 0.6s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-top: 0;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.cta-buttons .btn-primary {
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  color: #667eea;
  font-weight: 600;
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 50px;
  border: 2px solid #667eea;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-buttons .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: white;
}

ul {
  list-style: none;
}

ul li {
  padding: 0.5rem 0;
}

ul li:before {
  content: "✓ ";
  color: #ffd700;
  font-weight: bold;
  margin-right: 0.5rem;
}
input, textarea, select {
  display: block;
  margin: 15px 0;
  padding: 12px;
  width: 100%;
  max-width: 500px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
button {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

button:active {
  transform: translateY(0);
}
.alert {
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 8px;
  border-left: 5px solid;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-error {
  background: #ffe6e6;
  color: #c33;
  border-color: #cc3333;
}

.alert-success {
  background: #e6ffe6;
  color: #3c3;
  border-color: #33cc33;
}
img {
  border-radius: 12px;
  margin-top: 10px;
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.05);
}

.notice {
  border: none;
  padding: 20px;
  margin: 15px 0;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeIn 0.3s ease;
  color: #333;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notice:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.notice-header strong {
  font-size: 18px;
  color: #667eea;
}

.notice p {
  line-height: 1.6;
  margin: 10px 0;
  color: #333;
}
/* make links inside notices stand out against white background */
.notice a {
  color: #667eea;
  text-decoration: underline;
}
.notice a:hover {
  color: #764ba2;
}

.notice small {
  color: #666;
  font-size: 12px;
}
.responses {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px solid #f0f0f0;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
}

.responses h4 {
  color: #667eea;
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
}

.response {
  background: white;
  padding: 12px;
  margin: 8px 0;
  border-radius: 6px;
  border-left: 4px solid #667eea;
  font-size: 13px;
  line-height: 1.5;
}

.response strong {
  color: #667eea;
}

.response small {
  display: block;
  margin-top: 5px;
  color: #999;
}

.reply-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.reply-form input {
  flex: 1;
  min-width: 250px;
  margin: 0;
}

.reply-form button {
  padding: 12px 20px;
  white-space: nowrap;
}
/* Modal for image enlargement */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  overflow: auto;
  padding: 20px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex !important;
}

.modal-content {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1002;
  background: rgba(0, 0, 0, 0.6);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.modal-close:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.9);
  transform: rotate(90deg);
}
.notice-image {
  cursor: pointer;
  transition: opacity 0.3s;
}
.notice-image:hover {
  opacity: 0.8;
}
.delete-btn {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  padding: 8px 16px;
  font-size: 12px;
  box-shadow: 0 4px 10px rgba(245, 87, 108, 0.3);
}

.delete-btn:hover {
  box-shadow: 0 6px 15px rgba(245, 87, 108, 0.4);
}

.notice-image {
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100%;
  height: auto;
}

.notices-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.notices-header h2 {
  font-size: 32px;
  color: white;
  margin: 0;
  white-space: nowrap;
  font-weight: bold;
}

.search-box {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
}

#searchInput {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  color: #333;
}

#searchInput:focus {
  outline: none;
  border-color: #667eea;
  background-color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

#searchInput::placeholder {
  color: #999;
}

.form-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  margin: 2rem auto;
  animation: fadeInUp 0.6s ease;
}

.form-container h2 {
  color: #667eea;
  text-shadow: none;
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 28px;
  text-align: center;
  animation: fadeInDown 0.6s ease;
}

.form-input {
  display: block;
  margin: 15px 0;
  padding: 12px;
  width: 100%;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  animation: slideInLeft 0.5s ease backwards;
}

.form-input:nth-of-type(1) { animation-delay: 0.1s; }
.form-input:nth-of-type(2) { animation-delay: 0.2s; }
.form-input:nth-of-type(3) { animation-delay: 0.3s; }
.form-input:nth-of-type(4) { animation-delay: 0.4s; }
.form-input:nth-of-type(5) { animation-delay: 0.5s; }

.form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-container button {
  width: 100%;
  margin-top: 20px;
  animation: slideInUp 0.6s ease 0.5s backwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-link {
  text-align: center;
  margin-top: 2rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.8s ease 0.6s backwards;
}

.form-link a {
  color: #667eea;
  font-weight: 600;
  transition: all 0.3s ease;
}

.form-link a:hover {
  color: #764ba2;
  text-decoration: underline;
  font-weight: 700;
}

.alert {
  animation: slideIn 0.3s ease !important;
}

@media (max-width: 768px) {
  .notices-header {
    flex-direction: column;
    align-items: stretch;
  }

  .notices-header h2 {
    text-align: center;
  }

  .search-box {
    max-width: 100%;
  }

  .form-container {
    padding: 30px 20px;
  }
}

/* Profile Page Styles */
.profile-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  animation: fadeIn 0.5s ease;
}

.profile-card {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.profile-card h2 {
  font-size: 32px;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.profile-card h3 {
  color: #667eea;
  font-size: 20px;
  margin-top: 30px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.profile-picture-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 12px;
}

.current-picture {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.current-picture:hover {
  transform: scale(1.05);
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.current-picture:hover .profile-picture {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  filter: brightness(0.95);
}

.profile-picture-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: white;
  border: 4px solid #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.current-picture:hover .profile-picture-placeholder {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  transform: scale(1.02);
}

.upload-hint {
  font-size: 12px;
  color: #667eea;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.profile-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group label {
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group small {
  color: #666;
  font-size: 12px;
  margin-top: 4px;
}

.form-input {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  background-color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.form-input:disabled {
  background-color: #f0f0f0;
  cursor: not-allowed;
  color: #999;
}

.form-error {
  color: #c41e3a;
  background: rgba(196,30,58,0.05);
  border-left: 3px solid rgba(196,30,58,0.12);
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 13px;
}

/* hide empty error containers to avoid unwanted spacing */
.form-error:empty {
  display: none;
  padding: 0;
  margin: 0;
  border: none;
}

.member-info {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
  text-align: center;
  color: #333;
}
.member-info p,
.member-info span {
  color: #333;
}

.member-info p {
  margin: 0;
  font-size: 14px;
}

.btn-primary {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
  align-self: flex-start;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  animation: slideIn 0.3s ease;
}

.alert-error {
  background-color: #ffe0e0;
  color: #c41e3a;
  border-left: 4px solid #c41e3a;
}

.alert-success {
  background-color: #e0f7ea;
  color: #27ae60;
  border-left: 4px solid #27ae60;
}

@media (max-width: 768px) {
  .profile-container {
    margin: 20px auto;
  }

  .profile-card {
    padding: 20px;
  }

  .profile-card h2 {
    font-size: 24px;
    padding: 15px;
  }

  .profile-picture-section {
    padding: 20px;
  }

  .profile-section {
    padding: 15px;
  }

  .btn-primary {
    align-self: stretch;
    width: 100%;
  }
}