body {
  font-family: 'Pretendard', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fefefe;
}

.main {
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 22px 120px;
  gap: 30px;
}

h1,
h3,
p {
  margin: 0;
}

#logo {
  height: 40px;
}

#logoMobile {
  display: none;
}

#keyboardImage {
  width: 478px;
}
#notice {
  width: 360px;
}

.menus {
  width: 50%;
  display: flex;
  justify-content: end;
  align-items: center;
}

.menu {
  justify-content: center;
  align-items: center;
  padding: 0px 16px;

  font-size: 18px;
  font-style: normal;
  font-weight: 500;

  white-space: nowrap;
}
.menu:hover {
  cursor: pointer;
  color: #005fce;
}

.half {
  display: flex;
  flex-direction: column;
}

.left {
  gap: 22px;
}

.right {
  margin-top: 18px;
  gap: 30px;
}

.intro {
  display: flex;
  color: #999;
}
.intro h1 {
  color: #000000;
  font-size: 38px;
  font-style: normal;
  font-weight: 700;
}

.intro-text {
  display: flex;
  flex-direction: column;
  width: 310px;
  gap: 48px;
  margin: 40px 0 0 0;
}

.card-wrapper {
  display: flex;
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  width: 254px;
  box-sizing: border-box;
  gap: 4px;
  padding: 32px;
  border-radius: 22px;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.card:hover {
  cursor: pointer;
  transform: translateY(-14px);
}

.card-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-style: normal;
  font-weight: 600;
}

.card-description {
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  word-break: keep-all;
}
.card-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.card-bottom p {
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
}

.card-image {
  width: 145px;
  margin-bottom: -32px;
  margin-right: -32px;
}

.green {
  background-color: #00d3ba;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.blue {
  background-color: #18acff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.skyblue {
  background-color: #00c5f0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.button-wrapper {
  display: flex;
  gap: 10px;
}

.button {
  display: flex;
  padding: 14px;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  color: #231815;
  background-color: #00d3ba;
  text-align: center;
}
.button:hover {
  cursor: pointer;
}

.brochure {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(54, 219, 199, 0.22);
}

.watch {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(53, 190, 220, 0.22);
}

.button p {
  width: 147px;
  margin: 0;
}

.white-icon {
  width: 22px;
  height: 22px;
}

.favorites {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 32px;
  gap: 32px;
  border-radius: 22px;
  border: 1px solid #dfe1e4;
  background: #fff;
}

.icon-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 16px 48px;
}

.icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
  gap: 8px;
}

.icon {
  display: flex;
  width: 54px;
  height: 54px;
  padding: 11px;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  border-radius: 18px;
  border: 1px solid #e1e1e1;
}

.icon:hover {
  cursor: pointer;
}

.icon-text {
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
}

.topbar {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #a7a7a7;
  padding: 30px 120px;
}

.topbar-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 900px) {
  .main {
    flex-direction: column;
    padding: 22px 18px;
  }
  .topbar {
    padding: 14px 18px;
  }
  .topbar-content {
    flex-direction: column;
    align-items: start;
    gap: 15px;
  }
  #logo {
    display: none;
  }
  #logoMobile {
    display: block;
    width: 126px;
  }
  .menus {
    width: 100%;
    justify-content: start;
    overflow-x: auto;
  }
  .menus::-webkit-scrollbar {
    display: none;
  }
  .menu {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    padding: 0px 7px;
  }
  .intro {
    flex-direction: column;
    gap: 0px;
  }
  .intro-text {
    margin-top: 0;
    gap: 16px;
  }
  .intro-text h1 {
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
  }
  .intro-text p {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
  }
  .intro-image-wrapper {
    display: flex;
    justify-content: end;
  }
  #keyboardImage {
    width: 50%;
    min-width: 227px;
  }
  .card-wrapper {
    flex-direction: column;
    gap: 16px;
  }

  .card {
    position: relative;
    width: 100%;
    padding: 22px;
    overflow: hidden;
  }
  .card:hover {
    transform: none;
  }
  .card-title-wrapper {
    flex-direction: row;
    gap: 10px;
  }
  .card-title {
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
  }
  .card-bottom {
    overflow: hidden;
  }
  .card-description {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
  }
  .card-image {
    position: absolute;
    margin: 0;
    right: 0;
    top: 20px;
  }
  .card-bottom p {
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
  }

  #notice {
    width: 100%;
  }

  .icon-container {
    display: flex;
    justify-content: space-between;
  }

  .button {
    width: 50%;
    padding: 12px 14px;
  }
  .button p {
    width: auto;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
  }
  .favorites {
    border: none;
    padding: 0 4px;
    gap: 18px;
  }
  .icon-container {
    gap: 12px;
  }
  .icon-wrapper {
    padding: 0;
  }
  .right-child:nth-child(1) {
    order: 2;
  }
  .right-child:nth-child(3) {
    order: 1;
  }
  .right-child:nth-child(2) {
    order: 3;
  }
}

@media (max-width: 1200px) {
  .main {
    justify-content: start;
    overflow: scroll;
  }
}
/* 기존 CSS 내용 */

.auth-section {
  display: flex;
  align-items: center;
}

#loginButton, #logoutButton {
  padding: 8px 16px;
  margin-left: 20px;
  cursor: pointer;
}

#userName {
  margin-left: 10px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 300px;
  border-radius: 14px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#loginForm input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  box-sizing: border-box;
}

#loginForm button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
}



/* 추가 */

/* General card style */
.lw-list-notice li {
  list-style: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 1300px; /* Set max width for the card */
  width: 1300px; /* Ensure cards expand on smaller screens */
}

/* Content area of the card */
.lw-list-content {
  display: flex;
  flex-direction: column;
}

/* Header: contains the category and title */
.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.notice-cat {
  font-weight: bold;
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
}

.notice-link a {
  font-size: 18px;
  font-weight: bold;
  color: #007bff;
  text-decoration: none;
}

.notice-link a:hover {
  text-decoration: underline;
}

/* Date styling */
.notice-date {
  font-size: 14px;
  color: #777;
  position: absolute;
  bottom: 10px;
  right: 15px;
}

/* Ensure the last item doesn't have extra margin */
.lw-list-notice li:last-child {
  margin-bottom: 0;
}

/* Media Query for Larger Screens */
@media (min-width: 768px) {
  .lw-list-notice li {
    flex-direction: row; /* Horizontal layout for larger screens */
    justify-content: space-between; /* Space between category, title, and date */
    max-width: 1000px; /* Allow more width on larger screens */
  }

  .notice-header {
    flex-direction: row; /* Ensure the category and title are on the same row */
    justify-content: space-between;
    width: 100%;
  }

  .notice-date {
    position: absolute;
    bottom: 10px;
    right: 20px;
  }
}

/* Mobile view tweaks */
@media (max-width: 767px) {
  .lw-list-notice li {
    flex-direction: column; /* Stack the content vertically for smaller screens */
    align-items: flex-start;
  }

  .notice-header {
    flex-direction: column; /* Stack the category and title vertically */
    align-items: flex-start;
  }

  .notice-link a {
    font-size: 16px; /* Adjust the title font size for small screens */
  }
}



/* Pagination Section */
.pagination-info {
  display: flex;

  justify-content: center; /* Center the button */
  align-items: center;
  margin-top: 20px;
}

.load-more-btn {
  padding: 12px 25px;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.load-more-btn:hover {
  background-color: #0056b3;
}

.load-more-btn span {
  font-weight: bold;
  margin-left: 8px;
}
