 /* Basic Reset */
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.messages-section {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    display: flex;
    justify-content: space-between; /* Pushes news-section to the right */
    /* max-width: 1200px; */
    width: 80%;
    gap: 20px;
}

/* Message Boxes Container */
.message-boxes {
    display: flex;
    gap: 20px;
    flex: 1;
}

/* Message Box Style */
.message-box {
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex: 1;
}

.message-box:hover {
    transform: scale(1.02);
}

.officer-image {
    /*width: 80px;*/
    /*height: 120px;*/
    width: 140px;
    height: 190px;
    /* border-radius: 50%; */
    border-radius: 10%;
    object-fit: cover;
    margin-right: 5px;
    margin-top: 15px;
}

.message-content {
    flex: 1;
}

.message-content h3 {
    text-align: left;
    font-size: 1.2em;
    margin: 10px 15px 5px;
}

.message-content p {
    font-size: 1em;
    margin-bottom: 8px;
}

.officer-name {
    font-size: 1.1rem;
    color: #555;
    font-weight: 700;
    margin-left: 8px;
}

.text-content {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10; /* Limit to 10 lines */
  overflow: hidden; /* Hide overflowing content */
  position: relative;
}

.text-content.scrollable {
  -webkit-line-clamp: unset; /* Remove line clamping for scrollable content */
  overflow: auto; /* Enable vertical scrolling */
  max-height: calc(1.2em * 10); /* Set height for 10 lines (adjust line-height if needed) */
}

/* News Section Style */
.news-section {
    position: relative;
    width: 30%;
    padding: 15px;
    /* background-color: #333; */
    /* background-color: #009688; */
    background-color: #d7d7d7;
    /* background-color: #3f51b5d9; */
    /* color: #fff; */
    color: #000;
    border-radius: 8px;
    max-height: 600px;
    overflow-y: auto;
    margin-left: auto; /* Ensures it stays at the extreme right */
}

.news-section h3 {
    font-size: 1.2em;
    margin-bottom: 20px;
    /* margin-left: 10px; */
    /* text-align: left; */
}

.news-section ul {
    list-style: none;
    /* padding-bottom: 20px; */
}

.news-section li {
    font-size: 0.9em;
    margin-bottom: 8px;
}
.news-section li a{
    text-decoration: none;
    /* color: white; */
    color: #000;
    line-height: 1.3;
    font-size: 14px;
}

.news-view-all{
    text-decoration: none;
    /* color: white; */
    color: #000;
    font-size: 1rem;
    margin-top: 20px;
}

.file-time{
    /*color:#891414;*/
    color: #1c1489;
}

/*.ribbon {*/
/*  width: 60px;*/
/*  font-size: 14px;*/
/*  padding: 4px;*/
/*  position: absolute;*/
/*  right: -25px;*/
/*  top: -12px;*/
/*  text-align: center;*/
/*  border-radius: 25px;*/
/*  transform: rotate(20deg);*/
/*  background-color: #ff9800;*/
/*  color: white;*/
/*}*/

.ribbon{
    color: red;
}

.news-ribbon-title{
    color:#dd0c0c;
}

/* Responsive Design */
@media (max-width: 1150px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .message-boxes {
        flex-direction: column;
    }

    .news-section {
        width: 100%;
        margin-top: 20px;
        order: -1;  /* Shows the news-section at the top in the small screens  */ 
    }
}

@media (max-width: 900px){
    .news-section li a{
        font-size: 12px;
    }
}