/* General styles */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

/* Flex container for the two panels */
.container {
  display: flex;
  height: 95vh; /* Full viewport height */
  background-color: transparent; /* Ensure the background is visible */
  gap: 15px; /* Add space between the left and main panels */
  padding: 10px; /* Slight padding around the content */
  box-sizing: border-box;
  overflow: hidden; /* Prevent the container from causing a scroll */
  text-align: center;
}

.centered-date {
    text-align: center;
    margin-top: 20px;
}

/* Left panel (announcements list) */
.left-panel {
  width: 25%;
  background-color: #2C2C34;
  padding: 20px;
  color: white;
  overflow-y: auto;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
  border-bottom-left-radius: 15px; /* Ensure bottom-left is rounded */
  border-top-left-radius: 15px; /* Optional: Top-left rounding */
  height: calc(100vh - 40px); /* Ensure it covers the full height, accounting for padding */
  text-align: center;
}

.left-panel h2 {
  color: #FFBE98;
  margin-bottom: 10px;
  font-size: 1.6rem;
  font-weight: bold;
}

.announcement-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #444;
  transition: background-color 0.3s ease;
}

.announcement-item:hover {
  background-color: #44485a; /* Smooth hover transition */
}

.announcement-item.active {
  background-color: #50505A; /* Highlight active item */
}

.announcement-date {
  font-size: 14px;
  color: #999;
  margin-top: 8px;
}

/* Main panel (announcement content) */
.main-panel {
  width: 75%;
  padding: 30px;
  background-color: #293045;
  color: white;
  overflow-y: auto;
  border-bottom-right-radius: 15px; /* Ensure bottom-right is rounded */
  border-top-right-radius: 15px; /* Optional: Top-right rounding */
  height: calc(100vh - 60px); /* Ensure it covers the full height, accounting for padding */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.main-panel h2 {
  color: #FFBE98;
  font-size: 2rem;
  margin-bottom: 15px;
}

.main-panel p {
  color: #FFFFFF;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 10px;
  text-align: center;
}

.main-panel .posted-date {
  text-align: right;
  color: #FFBE98;
  font-size: 14px;
  margin-top: 10px;
}

/* Hover transition for better interaction */
.announcement-item:hover {
  transition: background-color 0.2s ease-in-out;
}

.announcement-item.active {
  background-color: #383c49;
}

/* Responsive styles for smaller devices */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    margin-left: 0; /* Remove margin for smaller screens */
  }

  .left-panel {
    width: 95%;
    background-color: #2C2C34;
    padding: 10px;
    color: white;
    overflow-y: auto;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 15px;
    border-radius: 5px;
    height: calc(100vh - 40px);
    text-align: center;
}

  .main-panel {
    width: 95%;
    padding: 10px;
    background-color: #293045;
    color: white;
    overflow-y: auto;
    height: calc(100vh - 60px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

  .announcement-item {
    padding: 10px;
  }

  th, td {
    padding: 5px;
  }
}

h1, h3 {
  color: #FFBE98;
  text-align: center;
  margin: 10px 0;
}

h1 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

/* Align text to the left for announcements content */
.left-align {
  text-align: left;
}

/* Center text with some margin */
.center-text {
  text-align: center;
  margin: 10px 0;
}

/* Image styles */
.background-image {
  width: 100%;
  height: auto;
  position: fixed;
  z-index: -1;
}


/* Small Display */
@media (max-width: 992px) {
  .container {
    display: flex;
    height: 85vh;
    margin-left: 0px;
    background-color: transparent;
    gap: 15px;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
    text-align: center;
}


}


/* Small Display */
@media (max-width: 768px) {
  .container {
    display: flex;
    height: 85vh; /* Full viewport height */
    margin-left: 0px; /* Adjust for navbar width */
    background-color: transparent; /* Ensure the background is visible */
    gap: 15px; /* Add space between the left and main panels */
    padding: 10px; /* Slight padding around the content */
    box-sizing: border-box;
    overflow: hidden; /* Prevent the container from causing a scroll */
    text-align: center;
  }


}

@media (max-width: 576px) {
  .container {
    display: flex;
    height: 85vh; /* Full viewport height */
    margin-left: 0px; /* Adjust for navbar width */
    background-color: transparent; /* Ensure the background is visible */
    gap: 15px; /* Add space between the left and main panels */
    padding: 10px; /* Slight padding around the content */
    box-sizing: border-box;
    overflow: hidden; /* Prevent the container from causing a scroll */
    text-align: center;
  }

}
