
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


header {
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  color: #e60000;
  font-size: 2rem;
  font-weight: 900;
}

header .user-info {
  font-size: 0.9rem;
  color: #444;
}

.logout-btn {
  background-color: #e60000;
  color: white;
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  margin-left: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.logout-btn:hover {
  background-color: #b80000;
}


nav {
  background-color: #f8f8f8;
  padding: 0.75rem 2rem;
  border-top: 2px solid #e60000;
  border-bottom: 1px solid #ddd;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.2s;
}

nav a:hover {
  color: #e60000;
}


main.container {
  margin: 2rem auto;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex: 1;
}


.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  padding-left: 25px;
  padding-right: 25px;
}

.event-card {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
}

.event-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.event-content {
  padding: 1rem;
}

.event-content h3 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.event-content p {
  font-size: 0.95rem;
  color: #555;
}

.event-meta {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #999;
}

.event-link {
  margin-top: 0.5rem;
  display: inline-block;
  font-weight: bold;
  color: #e60000;
  text-decoration: none;
}

.event-link:hover {
  text-decoration: underline;
}


.event-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.event-detail img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.event-detail h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 1.5rem;
  color: #1a1a1a;
}

event-detail p {
  font-size: 1.1rem;
  color: #555;
  margin-top: 1rem;
  line-height: 1.6;
}

.event-detail .event-meta {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #888;
}

.event-detail .event-date {
  margin-top: 0.5rem;
  color: #e60000;
}

.event-detail .event-description {
  margin-top: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}


.comment-section {
  margin-top: 3rem;
}

.comment-section h3 {
  font-size: 1.5rem;
  font-weight: bold;
  border-left: 4px solid #e60000;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.comment-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-section textarea {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1rem;
  min-height: 120px;
}

.comment-section button {
  padding: 0.8rem 1.5rem;
  background-color: #e60000;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.comment-section button:hover {
  background-color: #b80000;
}


.comment-list {
  list-style-type: none;
  padding: 0;
  margin-top: 2rem;
}

.comment-list li {
  padding: 1.2rem;
  background-color: #f9f9f9;
  margin-bottom: 1rem;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.comment-list li strong {
  font-weight: bold;
  color: #333;
}

.comment-list li small {
  color: #888;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: block;
}


.main-footer {
  text-align: center;
  font-weight: bold;
  font-style: italic;
  padding: 1rem;
  background-color: #f0f0f0;
  border-top: 1px solid #ddd;
  margin-top: auto;
}


footer {
  text-align: center;
  padding: 20px;
  background-color: #333;
  color: #000;

  font-size: 16px;
  margin-top: 30px;
  border-radius: 10px;
}


.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  border-left: 4px solid #e60000;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}


.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  padding-left: 25px;
  padding-right: 25px;
}

.article-card {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-content {
  padding: 1rem;
}

.article-content h3 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.article-content p {
  font-size: 0.95rem;
  color: #555;
}

.article-meta {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #999;
}

.article-link {
  margin-top: 0.5rem;
  display: inline-block;
  font-weight: bold;
  color: #e60000;
  text-decoration: none;
}

.article-link:hover {
  text-decoration: underline;
}


@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  main.container {
    flex-direction: column;
    padding: 0;
  }

  .event-detail,
  .sidebar {
    width: 100%;
  }

  .article-list {
    padding: 0;
  }
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: #dcdcdc;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


header {
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  color: #e60000;
  font-size: 2rem;
  font-weight: 900;
}

header .user-info {
  font-size: 0.9rem;
  color: #444;
}

.logout-btn {
  background-color: #e60000;
  color: white;
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  margin-left: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.logout-btn:hover {
  background-color: #b80000;
}


nav {
  background-color: #f8f8f8;
  padding: 0.75rem 2rem;
  border-top: 2px solid #e60000;
  border-bottom: 1px solid #ddd;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.2s;
}

nav a:hover {
  color: #e60000;
}


main {
  padding: 2rem;
  background-color: #f9f9f9;
}

.event-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #fff;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.event-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.event-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-content h3 {
  font-size: 1.8rem;
  color: #333;
}

.event-date {
  font-size: 1rem;
  color: #777;
}


.main-footer {
  text-align: center;
  font-weight: bold;
  font-style: italic;
  padding: 1rem;
  background-color: #f0f0f0;
  border-top: 1px solid #ddd;
  margin-top: auto;
}


footer {
  text-align: center;
  padding: 20px;
  background-color: #333;
  color: #000;
  font-size: 16px;
  margin-top: 30px;
  border-radius: 10px;
}


@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .event-box {
    padding: 1.5rem;
  }

  .event-content {
    padding: 0;
  }

  .event-image {
    height: auto;
  }
}


.comment-section {
  margin-top: 3rem;
}

.comment-section h3 {
  font-size: 1.5rem;
  font-weight: bold;
  border-left: 4px solid #e60000;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.comment-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-section textarea {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1rem;
  min-height: 120px;
}

.comment-section button {
  padding: 0.8rem 1.5rem;
  background-color: #e60000;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.comment-section button:hover {
  background-color: #b80000;
}

.comment-list {
  list-style-type: none;
  padding: 0;
  margin-top: 2rem;
}

.comment-list li {
  padding: 1.2rem;
  background-color: #f9f9f9;
  margin-bottom: 1rem;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.comment-list li strong {
  font-weight: bold;
  color: #333;
}

.comment-list li small {
  color: #888;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: block;
}

.comment-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
}

.comment-form textarea {
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: vertical;
  color: #333;
  transition: border 0.3s;
}

.comment-form textarea:focus {
  border-color: #e60000;
  outline: none;
}

.comment-btn {
  align-self: flex-end;
  padding: 0.75rem 1.5rem;
  background-color: #e60000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.comment-btn:hover {
  background-color: #b80000;
}

main {
  padding: 2rem;
  background-color: #f9f9f9;
}

.news-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #fff;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.news-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.news-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-content h3 {
  font-size: 1.8rem;
  color: #333;
}

.news-date {
  font-size: 1rem;
  color: #777;
}

.navbar {
  background-color: #222;
  overflow: hidden;
  padding: 10px;
}

.navbar a,
.dropbtn {
  float: left;
  color: white;
  text-align: center;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 16px;
}

.navbar a:hover,
.dropdown:hover .dropbtn {
  background-color: #444;
}

.dropdown {
  padding-top: 3rem;
  float: left;
  overflow: hidden;
  font-weight: bold;
}

.dropdown .dropbtn {
  background-color: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  margin: 0;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #333;
  min-width: 160px;
  z-index: 1000;
}

.dropdown-content.show {
  display: block;
}
.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #555;
}

.dropdown:hover .dropdown-content {
  display: block;
}


.pagination {
  text-align: center;
  margin-top: 20px;
}

.pagination ul {
  list-style-type: none;
  padding: 0;
  display: inline-flex;
  gap: 10px;
}

.pagination li {
  display: inline;
}

.pagination a {
  text-decoration: none;
  padding: 10px 20px;
  background-color: #ff0000;
  color: white;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.pagination a:hover {
  background-color: #840000;
}

.pagination .active a {
  background-color: #28a745;
  cursor: default;
}

.pagination .active a:hover {
  background-color: #28a745;
}

.pagination li a:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .pagination ul {
    flex-direction: column;
    gap: 5px;
  }

  .pagination a {
    padding: 8px 15px;
  }
}


.about-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 17px;
  line-height: 1.6;
}

.about-section .section-title {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.about-content ul {
  padding-left: 20px;
  margin-top: 10px;
}

.about-content ul li {
  margin-bottom: 8px;
}

.about-content a {
  color: #007bff;
  text-decoration: none;
}

.about-content a:hover {
  text-decoration: underline;
}


.contact-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 25px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info {
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.6;
}


.login-section {
  max-width: 400px;
  margin: 50px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.login-section h2 {
  margin-bottom: 20px;
}

.login-form input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background-color: #ff0000;
  border: none;
  color: #fff;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-btn:hover {
  background-color: #b30000;
}

.error-msg {
  background-color: #ffdddd;
  color: #c00;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #c00;
  border-radius: 6px;
}

.login-note {
  margin-top: 15px;
  font-size: 14px;
}

.news-detail {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-detail h2 {
  margin-bottom: 10px;
}

.published-date {
  color: #888;
  margin-bottom: 20px;
  font-size: 14px;
}

.detail-image {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.news-text {
  font-size: 16px;
  line-height: 1.6;
}

.comments {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
}

.comment-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 10px;
}

.comment-btn {
  padding: 10px 20px;
  background-color: #007bff;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.comment-btn:hover {
  background-color: #0056b3;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.comment-item {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.comment-item strong {
  color: #007bff;
}

.comment-item small {
  display: block;
  color: #666;
  font-size: 12px;
  margin-top: 4px;
}

.register-section {
  max-width: 400px;
  margin: 50px auto;
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.register-section h2 {
  text-align: center;
  margin-bottom: 20px;
}

.register-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.register-form input:focus {
  border-color: #ff0000;
  outline: none;
}

.register-form input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.register-btn {
  width: 100%;
  padding: 12px;
  background-color: #ff0000;
  border: none;
  color: #fff;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.register-btn:hover {
  background-color: #b30000;
}

.error-msg,
.success-msg {
  color: white;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.error-msg {
  background-color: #f44336;
}

.success-msg {
  background-color: #ff0000;
}

.register-note {
  text-align: center;
}

.register-note a {
  color: #ff0000;
  text-decoration: none;
}

.register-note a:hover {
  text-decoration: underline;
}

main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #dcdcdc;
}

section {
  background-color: #fff;
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

section:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

section h2 {
  font-size: 26px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #333;
}

section form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 15px;
  margin-bottom: 20px;
}

section form input,
section form select,
section form textarea {
  padding: 12px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: all 0.3s;
}

section form input:focus,
section form select:focus,
section form textarea:focus {
  border-color: #00b30c;
  outline: none;
  background-color: #e6f2ff;
}

section form button {
  padding: 12px 20px;
  background-color: #00b30c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  grid-column: span 2;
}

section form button:hover {
  background-color: #007408;
}

table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

table th,
table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #f4f4f4;
  font-size: 16px;
}

table td {
  font-size: 14px;
}

table td button {
  background-color: #ff4d4d;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

table td button:hover {
  background-color: #d43f3a;
}

table td form {
  display: inline;
}

.info {
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 30px;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #333;
  color: #000;
  font-size: 16px;
  margin-top: 30px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  section form {
    grid-template-columns: 1fr;
  }

  section form button {
    grid-column: span 1;
  }

  header {
    font-size: 22px;
  }
}

a {
  text-decoration: none;
}

section form button1 {
  padding: 12px 20px;
  background-color: #ff0000;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  grid-column: span 2;
  text-align: center;
  color: white;
  text-decoration: none;
}

section form button1:hover {
  background-color: #b70202;
}