body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f6f8;
  margin: 0;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

h3 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 25px;
}

/* ===== POSTS GRID LAYOUT ===== */
#posts-container{
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

/* Desktop: 2 columns */
@media (min-width: 900px){
  #posts-container{
    grid-template-columns: 1fr 1fr;
  }
}

/* Large screens: 3 columns (optional premium feel) */
@media (min-width: 1300px){
  #posts-container{
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Card */
.announcement {
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.announcement:hover{
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* Image wrapper */
.image-wrapper {
  position: relative;
}

/* Image */
.announcement-image {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* Overlay Text */
.overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.2));
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

/* Timestamp */
.timestamp {
  display: block;
  text-align: right;
  padding: 12px 15px;
  font-size: 13px;
  color: #666;
  font-style: italic;
  background: white;
}

/* No posts message */
.no-posts {
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  color: #777;
}

/* ===== HAMBURGER MENU (unchanged behavior) ===== */

.menu-toggle{
position:absolute;
top:15px;
right:15px;
width:30px;
height:22px;
cursor:pointer;
display:flex;
flex-direction:column;
justify-content:space-between;
z-index:1000;
}

.menu-toggle span{
display:block;
height:4px;
background:#000;
border-radius:2px;
transition:0.3s;
}

.menu-toggle.active span:nth-child(1){
transform:rotate(45deg) translate(5px,5px);
}

.menu-toggle.active span:nth-child(2){
opacity:0;
}

.menu-toggle.active span:nth-child(3){
transform:rotate(-45deg) translate(6px,-6px);
}

.side-menu{
position:fixed;
top:0;
right:-260px;
width:260px;
height:100%;
background:#fff;
box-shadow:-2px 0 10px rgba(0,0,0,0.2);
padding-top:70px;
transition:0.3s;
z-index:999;
}

.side-menu a{
display:block;
padding:15px;
text-decoration:none;
border-bottom:1px solid #eee;
color:#000;
font-weight:bold;
}

.side-menu a:hover{
background:#000;
color:#fff;
}

.side-menu.active{
right:0;
}

.menu-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.4);
display:none;
z-index:998;
}

.menu-overlay.active{
display:block;
}

/* ===== MOBILE IMPROVEMENT ===== */
@media (max-width:600px){
  body{
    padding:15px;
  }

  .announcement-image{
    height:220px;
  }

  .overlay-text{
    font-size:13px;
  }
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea, button, select, a {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}