.show-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.show-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.show-logo {
    display: block;
    margin: 0 auto;
    max-width: 120px;
    height: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 20px; 
  justify-items: center; /* centers the cards in each grid cell */
}

.member {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  width: 250px;      /* fixed card width */
  height: 270px;     /* fixed card height (optional for equal size) */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%; 
  margin-bottom: 15px;
}

.member-info a, span, i{
  color: black;
  text-decoration: none;
}

.member-info a:hover {
  color: blue;
  transition: 0.3s;
}

@media (max-width: 992px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (1 column) */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .member {
    width: 90%;   /* take most of screen width */
    height: auto; /* let height expand with content */
  }
}

.post {
  width: 95%;
  margin: 20px auto;
  border-radius: 5px;
  background: white;
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 10px;
  overflow: hidden;
  border-top: 1px solid white;
  margin-top: 10px;
  padding-top: 10px;
}

.post img{
  height: 200px;
  width: 200px;
  float: left;
  margin-right: 10px;
}

.post .post-preview {
  width: 60%;
  display: flex;
  flex-direction: column;
  position: relative;
  display: block;
}

.post a:hover {
  transform: translateX(10px);
  color: rgb(89, 89, 243) !important;
}

.preview-text {
  margin: 10px 0;
  color: #333;
  overflow-wrap: break-word;
  padding-bottom: 40px; /* ensures room for the button */
}

.btn.read-more {
  position: absolute;
  bottom: 10px;
  right: 10px;
  border: 2px solid #4151e3;
  background: transparent;
  color: #4151e3 !important;
  padding: .5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.btn.read-more:hover {
  background: rgb(57, 136, 220);
  color: white !important;
  transition: 0.25s;
}


/*Article Box Area*/
.news-posts {
  width: 60%;                  /* narrower container */
  margin: 20px 0 20px 5%;      /* pushed left */
  border: 1px solid #ddd;      /* give it a boxed look */
  border-radius: 8px;
  background: #fafafa;         /* light newsprint feel */
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.news-posts h2 {
  color: #111;
  text-align: left;            /* headline aligned left */
  font-family: "Georgia", serif;
  border-bottom: 2px solid #ccc;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.article-post {
  display: flex;
  flex-direction: column;       /* stack image on top */
  align-items: flex-start;
  gap: 15px;
}

/* Keep top article image cropped like a news header */
.article-post img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* Special style for the bottom image */
.full-small-img {
  width: 60%;               /* smaller size */
  height: auto;             /* keep full ratio */
  display: block;
  margin: 15px auto;        /* center it */
  object-fit: contain;      /* show whole image */
  border: 1px solid #ddd;   /* optional frame */
  border-radius: 4px;
}

.article {
  font-family: "Georgia", serif; 
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  text-align: justify;          /* blocky paragraph style */
}

.article i, 
.article span {
  color: #666;
  font-size: 14px;
  margin-right: 8px;
}

.article-text {
  margin-top: 10px;
  background: #fff;            /* boxed text look */
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.article-list {
  margin: 15px 0;
  padding-left: 20px;
  list-style-type: disc;   /* classic bullet */
}

.article-list li {
  margin: 6px 0;
  font-size: 15px;
  line-height: 1.5;
}



.news-posts h2, a{
  color: black;
  text-align: center;
}

.news-posts .article-post{
  color:black;

}

/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  overflow: auto; /* allow scrolling for large images */
}

/* Wrapper for centering */
.lightbox-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  padding: 40px;
}

/* Image shows full size */
/* Make sure lightbox image shows full size, not cropped */
.lightbox-content {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
}


/* Close button */
.close {
  position: fixed;
  top: 20px;
  right: 35px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  z-index: 10000;
}

@media (max-width: 992px) {
  .news-posts {
    width: 70%;
  }
}

/* On mobile */
@media (max-width: 600px) {
  .news-posts {
    width: 90%;   /* still roomy but smaller than full width */
    margin: 15px auto;
    padding: 12px;
  }
}