@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; }

/* =========================
   CARDS GRID (mirrors EducationProgram)
   ========================= */
.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));
  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) */
.media{
  position:relative; width:100%;
  aspect-ratio: 1 / 1;
  background:#151515;
  border-radius: 10px;
  overflow:hidden;
}
.media img{
  width:100%; height:100%;
  object-fit: cover;
  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; }

/* Break long tokens; keep clamp like EducationProgram */
.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 */
.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; }

/* ---------------- MODALS (same look & feel) ---------------- */
.img-modal {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.9);
  align-items: center; justify-content: center;
  padding: 24px;
}
.img-modal img {
  max-width: 90%; max-height: 90vh;
  border-radius: 8px; display: block;
}
.img-modal .close {
  position: absolute; top: 20px; right: 35px;
  color: #fff; font-size: 40px; font-weight: bold; cursor: pointer;
}

/* Text modal */
.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: 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; }
}
@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; } }
