

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #fff;

}

.group-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
a{
    text-decoration: none;
}

.mgv-card {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 10px 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  height: 100px;
  overflow: hidden;
  position: relative;
}

.profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  flex-shrink: 0;
}

.group-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.group-name,
.description {
  font-size: 12px;
  color: #333;
  line-height: 1.2;
  max-height: 2.4em; /* Max 2 lines */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.group-name
 {
  font-weight:bold;

}
.group-name:hover
 {
  text-decoration:underline;

}

.myviews{
    
  color: #777;
  font-size: 8px;
  margin-top: 4px;
  margin-left: 10px;
  font-weight:bold;
    
}




.description {
  color: #777;
  font-size: 12px;
  margin-top: 3px;
}

.mgv-join-btn {
  background-color: #176aa0;
  border: none;
  color: white;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 13px;
  height: fit-content;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 10px;
  margin-top: 4px;
  text-decoration: none;
}

.categories {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 2px;
  margin-bottom: 2px;
  text-decoration: none;
  padding-left: 1px; /* adjust to align under text */
}

.tag {
  font-size: 10px;
  padding: 3px 6px;
  background-color: #e8f0f6;
  color: #d81b60;
  border-radius: 4px;
  margin-right: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  
  
}
.tag a{
    font-weight:500;
}

.tag:hover {
  background-color: #d1e1ec;
}





.mgv-join-btn:hover {
  background-color: #155f90;
}


#get_views{
    text-decoration:underline;
}







@media (min-width: 768px) {
    
    
   
}

/* --- Desktop (1024px and up) --- */
@media (min-width: 1024px) {
    
    .mgv-card {

  height: 150px;

}

.profile-pic {
  width: 75px;
  height: 75px;

}

.group-name
 {
  font-size: 18px;
  font-weight:bold;

}


.description {
  font-size: 18px;

}

.mgv-join-btn {

  padding: 6px 12px;
  border-radius: 5px;
  font-size: 16px;
  font-weight:bold;

}
.myviews{
    

  margin-top: 10px;
  font-size: 14px;

    
}

.tag {
  font-size: 14px;
  padding: 5px 10px;
  background-color: #e8f0f6;
  color: #d81b60;
  border-radius: 5px;
}
}
/*-------------------------------------------------------------------- */






.mgv-single-group {
  max-width: 600px;
  margin: auto;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.detail-page-group-name {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.2;
}

.group-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.group-content {
  padding: 20px;
}



.group-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
}

.group-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.detail-page-tag {
  font-size: 12px;
  padding: 4px 10px;
  background-color: #e8f0f6;
  color: #155f90;
  border-radius: 12px;
  white-space: nowrap;
}

.detail-page-tag:hover {

  background-color: #d1e1ec;

}

.group-stats {
  font-size: 13px;
  color: #777;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.join-btn {
  display: block;
  width: 100%;
  background-color: #176aa0;
  color: white;
  border: none;
  padding: 12px;
  font-size: 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.join-btn:hover {
  background-color: #155f90;
}

#single-page-button{
  display: block;
  width: 100%;
  background-color: #176aa0;
  color: white;
  border: none;
  padding: 12px;
  font-size: 15px;
  border-radius: 999px;
  cursor: pointer;
  font-weight:bold;
  text-align: center;
  transition: background-color 0.2s ease-in-out;
}
#single-page-button:hover{

  background-color: #155f90;
  color: white;

}
/*--------------------------------------------*/

/* Wrapper */
.mgv-load-more-wrapper {
  text-align: center;
  padding: 40px 20px;
  width: 100%;
  background-color: #f9f9f9;
}

/* Load More Button */
.mgv-load-more-btn {
  background-color: #176aa0;
  color: white;
  padding: 12px 28px;
  font-size: 16px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(46, 163, 242, 0.3);
  transition: all 0.3s ease;
}

.mgv-load-more-btn:hover {
  background-color: #1c8ed8;
  box-shadow: 0 6px 14px rgba(46, 163, 242, 0.4);
}

/* Loader */
.mgv-loader {
  margin-top: 15px;
  font-size: 16px;
  color: #777;
  animation: fadeIn 0.5s ease-in-out;
}

/* End Message */
.mgv-end-message {
  margin-top: 20px;
  color: #999;
  font-size: 15px;
  font-style: italic;
  animation: fadeIn 0.5s ease-in-out;
}

/* Optional Fade-in Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/*-------------------*/

