/* ===== Gov Activities styles ===== */

/* Grids */
.act-grid.home{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
@media (max-width:1024px){
  .act-grid.home{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width:640px){
  .act-grid.home{ grid-template-columns: 1fr; }
}

.act-grid.archive{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
@media (max-width:1024px){
  .act-grid.archive{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width:640px){
  .act-grid.archive{ grid-template-columns: 1fr; }
}

/* Card shell */
.act-card{
  background:#fff;
  border:1px solid var(--line, #e5e7eb);
  border-radius:16px;
  box-shadow: var(--shadow, 0 6px 16px rgba(0,0,0,.06));
  overflow:hidden;
  transition: transform .2s ease;
  display:flex;
  flex-direction:column;
  height:100%;
}
.act-card:hover{ transform: translateY(-2px); }

/* Inner layout: image → body → footer (title hidden here) */
.act-inner{
  display:flex;
  flex-direction:column;
  flex-grow:1;
}

/* Hide title on home/archive cards */
.act-grid.home .act-title,
.act-grid.archive .act-title {
  display:none;
}

.act-media{ margin:0 12px; }
.act-img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
  border-radius:12px;
}

/* Body expands; footer stays pinned bottom */
.act-body{
  flex-grow:1;
  margin:10px 12px;
  color:#5b6472;
  font-size:14px;
  line-height:1.6;
  text-align:justify;
}

.act-footer{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--line, #e5e7eb);
  padding:10px 12px;
  font-size:13px;
  color:#6b7280;
}
.act-more{
  color: var(--accent, #FF6F00);
  text-decoration:none;
  border:1px solid var(--line, #e5e7eb);
  padding:6px 10px;
  border-radius:10px;
  transition: all .2s ease;
}
.act-more:hover{
  border-color: var(--accent, #FF6F00);
  background: rgba(255,111,0,.08);
}

/* Pagination */
.act-pagination{ margin-top:12px; }
.act-pagination .page-numbers{
  display:inline-block;
  padding:6px 10px;
  border:1px solid var(--line, #e5e7eb);
  border-radius:10px;
  margin-right:6px;
}
.act-pagination .page-numbers.current{
  background: rgba(255,111,0,.08);
  border-color: var(--accent, #FF6F00);
  color:#000;
}

/* ===== Single view ===== */
.single .act-card{ margin:0; }
.single .act-inner .act-img{ height:auto; }
.single .act-inner{ flex-direction:column; }

/* Show title only in single/full view */
.single .act-title{
  display:block;
  font-size:20px;
  margin:16px;
}

.single .act-body{
  margin:16px;
  font-size:16px;
  line-height:1.7;
  color:#333;
}
.single .act-footer .act-more{ display:none; }

/* ===== Boxed full view for single activity ===== */
.single .act-card {
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 16px;
  box-shadow: var(--shadow, 0 6px 16px rgba(0,0,0,0.06));
  overflow: hidden;
  max-width: 900px;
  margin: 30px auto;
  padding: 0;
}

.single .act-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.single .act-title {
  font-size: 20px;
  margin: 16px;
  font-weight: 700;
  text-align: center;
  color: var(--text, #222);
}

.single .act-media {
  margin: 0;
}

.single .act-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.single .act-body {
  margin: 16px 24px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  text-align: justify;
}

.single .act-footer {
  border-top: 1px solid var(--line, #e5e7eb);
  padding: 12px 24px;
  font-size: 13px;
  color: #6b7280;
  text-align: right;
}

