@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(black, red);
  color: #fff;
  font-family: Arial, sans-serif;
}

/* ---------------- NAVBAR ---------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  margin-left: 15px;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #FF0000;
  text-decoration: underline;
}

.logo-text {
  font-weight: bold;
}

.menu-icon {
  display: none;
  font-size: 22px;
  cursor: pointer;
  color: #fff;
}

.nav-right {
  display: flex;
  gap: 15px;
}

.nav-right.active {
  display: flex;
}


.filter-bar{
  margin: 28px 24px 8px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
}
.filter-label{ font-weight:600; color:#fff; }

.filter-select{
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding: 10px 12px;
  min-width: 150px;
  border-radius: 8px;
  border: 1px solid #e91e63;
  background: #0f0f10 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path fill='white' d='M1 1l5 5 5-5'/></svg>") no-repeat right 10px center/12px 8px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}
.filter-select option{ background:#0f0f10; color:#fff; }

.filter-btn{
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #e91e63;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(233,30,99,.3);
  transition: transform .05s ease, background .2s ease;
}
.filter-btn:hover{ background:#ff1744; }
.filter-btn:active{ transform: translateY(1px); }

.filter-reset{
  color:#ff9aaa; text-decoration:none; font-size:14px; margin-left:6px;
}
.filter-reset:hover{ color:#fff; text-decoration:underline; }

/* =========================
   CARDS GRID
   ========================= */
.cards-wrap{ padding: 12px 24px 60px; }
.empty-text{ color:#c8d1d9; padding:40px 0; text-align:center; }

.cards{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 per row */
  gap: 28px;
}

/* Card */
.card{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 12px;
  display:flex; flex-direction:column;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* Media square (image / video) */
.media{
  position:relative; width:100%;
  aspect-ratio: 1 / 1;           /* perfect square */
  background:#151515;
  border-radius: 10px;
  overflow:hidden;
}
.media img, .media video{
  width:100%; height:100%;
  object-fit: cover;              /* tile feel */
  display:block; background:#000;
}

/* Text */
.card-body{ padding: 10px 6px 2px; }
.card-title{ font-size:16px; font-weight:700; color:#fff; margin-bottom:6px; }
.card-desc{ font-size:14px; line-height:1.65; color:#e5e7eb; }

/* Wrap long words/tokens */
.card-title,
.card-desc {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* Clamp description to 3 lines */
.card-desc{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read more button */
.read-more{
  margin-top: 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: #e91e63;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(233,30,99,.35);
  transition: background .2s ease, transform .05s ease;
}
.read-more:hover{ background:#ff1744; }
.read-more:active{ transform: translateY(1px); }

/* ---------------- FOOTER ---------------- */
.footer {
  background: #24262b;
  padding: 70px 0;
  width: 100%;
}

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-col {
  width: 25%;
  padding: 0 15px;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-size: 18px;
  color: #fff;
  text-transform: capitalize;
  margin-bottom: 35px;
  font-weight: 500;
  position: relative;
}

.footer-col h4::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  background: #e91e63;
  height: 2px;
  width: 50px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li:not(:last-child) {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 16px;
  color: #bbb;
  text-decoration: none;
  font-weight: 300;
  display: block;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #fff;
  padding-left: 8px;
}

.footer-col .social-links a {
  display: inline-block;
  height: 40px;
  width: 40px;
  line-height: 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  transition: 0.5s;
  margin: 0 10px 10px 0;
}

.footer-col .social-links a:hover {
  color: #24262b;
  background: #fff;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 992px) {
  .footer-col {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-right {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #000;
    padding: 20px;
    text-align: center;
  }

  .nav-right a {
    margin: 10px 0;
  }

  .article-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .article-img img,
  .article-img video {
    max-width: 100%; /* scale media to container */
  }

  .article-text {
    width: 100%;
  }
}

@media (max-width: 574px) {
  .footer-col {
    width: 100%;
  }
}


/* Modal style */
.img-modal {
  display: none; 
  position: fixed;
  z-index: 2000; 
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.9);
}

.img-modal img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
}

.img-modal .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}


/* =========================
   TEXT MODAL (Read more)
   ========================= */
.text-modal{
  display:none; position:fixed; inset:0; z-index:2100;
  background: rgba(0,0,0,.85);
  align-items:center; justify-content:center;
  padding:24px;
}
.tm-dialog{
  width: min(800px, 92vw);
  max-height: 85vh;
  overflow:auto;
  background:#151515;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  box-shadow:0 12px 36px rgba(0,0,0,.6);
  padding:18px 20px 22px;
  color:#e5e7eb;
}
.tm-close{
  position: sticky; top:0; float:right;
  background:transparent; border:0; color:#fff;
  font-size:32px; cursor:pointer; margin-left:8px;
}
#tm-title{
  margin:0 36px 10px 0; color:#fff; font-size:18px; font-weight:700;
}
#tm-body{
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height:1.65;
  color:#e5e7eb;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1200px){
  .cards{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .cards{ grid-template-columns: 1fr; }
}
