/* ===============================
   TELEGRAM FEED (MATCHED DESIGN)
================================ */

#telegram-post{
  padding:60px 20px;
}

/* SAME WIDTH AS NAVBAR */
#telegram-post .tgx_wrapper{
  max-width:1220px;
  margin:0 auto;
}

/* GRID (PERFECT CENTER) */
.tgx_grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

/* RESPONSIVE */
@media(max-width:1100px){
  .tgx_grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:600px){
  .tgx_grid{
    grid-template-columns:1fr;
  }
}

/* CARD */
.tgx_card{
  box-shadow: 0 0 20px rgba(0, 0, 0, .25);
  border-radius:12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow:hidden;
  cursor:pointer;
  transition:.35s ease;
  transform:translateY(20px);
  opacity:0;
}

.tgx_card.show{
  transform:translateY(0);
  opacity:1;
}

.tgx_card:hover{
  transform:translateY(-6px);
  border-color: 0 0 20px rgba(0, 0, 0, 0.425);
}

/* IMAGE */
.tgx_imgwrap{
  position:relative;
}

.tgx_imgwrap img{
  width:100%;
  height:220px;
  object-fit:cover;
  filter:blur(10px);
  transition:.4s ease;
}

.tgx_imgwrap img.loaded{
  filter:blur(0);
}

.tgx_count{
  position:absolute;
  top:10px;
  right:10px;
  background:rgba(0,0,0,.65);
  padding:4px 8px;
  border-radius:6px;
  font-size:12px;
  color:#fff;
  z-index:2;
  backdrop-filter:blur(4px);
}

.tgx_content{
  padding:14px;
}

.tgx_text{
  font-size:14px;
  line-height:1.4;
  margin-bottom:6px;
}

.tgx_date{
  font-size:12px;
  color:#8b949e; /* matched your theme */
}

.tgx_id{
  font-size:11px;
  color:#00c6ff;
}

.tgx_modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.96);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:99999;
}

.tgx_modal.active{
  display:flex;
}

.tgx_modal_imgwrap img{
  max-width:90%;
  max-height:70vh;
  border-radius:10px;
}

.tgx_modal_count{
  position:absolute;
  top:20px;
  left:20px;
  background:rgba(0,0,0,.6);
  padding:6px 10px;
  border-radius:6px;
  font-size:13px;
}

#tgx_modalText{
  color: azure;
  padding-bottom: 5px;
}

.tgx_nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:34px;
  cursor:pointer;
  user-select:none;
}

.tgx_prev{ left:20px; }
.tgx_next{ right:20px; }

.tgx_close{
  position:absolute;
  top:15px;
  right:25px;
  font-size:32px;
  cursor:pointer;
}

.tgx_dots{
  text-align:center;
  margin-top:12px;
}

.tgx_dots span{
  width:8px;
  height:8px;
  background:#555;
  display:inline-block;
  border-radius:50%;
  margin:4px;
}

.tgx_dots span.active{
  background:#fff;
}

.tgx_pagination{
  display:flex;
  justify-content:center;
  gap:15px;
  margin:40px 0;
}

.tgx_pagination button{
  min-width: 150px;
  margin-right: 0px;
  margin-bottom: 0px;
  padding: 13px 20px;
  border-radius: 30px;
  background-color: #fa5853;
  background-image: -webkit-gradient(linear, left top, right top, from(#fa5853), color-stop(50%, #f46692), to(#ffc444));
  background-image: linear-gradient(90deg, #fa5853, #f46692 50%, #ffc444);
  -webkit-transition: letter-spacing 300ms ease, color 300ms ease;
  transition: letter-spacing 300ms ease, color 300ms ease;
  font-family: 'Open Sans', sans-serif;
  color: #fff;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0px;
  text-decoration: none;
}

.tgx_pagination button:hover {
  color: #fff;
  letter-spacing: 1px;
  text-decoration: none;
}

.tgx_pagination button:disabled{
  opacity:0.4;
}