.card {
    margin-bottom: 20px;
}

/* Card styling */
.group-card {
   
    overflow: hidden;
    margin-bottom: 20px;
    width: 100%;
    padding-top: 100%;
    /* This makes the card square */
    position: relative;
}
.card-link{
    text-decoration: none;
    color: black;
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1;
}
.card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    /* Cover image takes up half the card */
    object-fit: cover;
}
.card-img-top, .profile-pic {
    max-width: 100%;
    height: auto;
}

/* Profile Picture styling */
.profile-pic-container {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 1;
    /* To ensure the picture stays on top */
    top: 40%;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    /* Makes the image circular */
    border: 3px solid white;
    /* Optional: gives a border to the circular image */
    object-fit: cover;
    
}

.card-body {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
}
.order-line{
    display: inline-flex;
    line-height: 1;
    flex-wrap: nowrap;
    text-align: center;
    place-items: center; 
    justify-content: space-evenly;
}
.size-width{
    width: 200px;
}
.custom-row {
    margin-left: 0;
    margin-right: 0;
}
.tight-padding {
    padding-right: 0.25rem !important; /* Use !important to override Bootstrap's default padding if necessary */
}

.icon-container {
    align-items: center;
}

.icon-wrapper {
    position: relative;
    margin: 0.5rem;
    cursor: pointer;
}

.icon-item {
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.card-title {
    margin-top: 20px; /* Adjust as needed */
}
.icon-text {
    position: absolute;
    bottom: 100%; /* This will place the text just above the icon */
    left: 50%;
    transform: translateX(-50%); 
    display: none;
    padding: 0.2rem 0.4rem; 
    background-color: black;
    color: white;
    border-radius: 5px;
    font-size: 0.8rem;
    z-index: 1;
    margin-bottom: 5px; /* Adjusts distance from icon */
}

.icon-arrow {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid black; /* Arrow color */
    transform: translateX(-50%);
}

.icon-item.fa-pencil-alt {
    color: #17a2b8;
}

.icon-item.fa-clock {
    color: #ffc107;
}

.icon-item.fa-users {
    color: #d34bc1;
}

.icon-wrapper:hover .icon-item {
    transform: scale(1.1);
}

.icon-wrapper:hover .icon-text {
    display: block;
}
@media (max-width: 888px) {  /* Adjusts styles for screens smaller than 576px, which is Bootstrap's breakpoint for small devices */
    .card-img-top {
        height: 40%;  /* Reduces height of cover image */
    }

    .profile-pic-container {
        top: 40%;  /* Moves profile picture up a bit more */
    }
    .card {
        margin-bottom: 10px;
    }

    .card-body {
        padding: 5px;
    }
    .card-title {
        font-size: 1rem; /* adjust as needed */
    }

    .icon-item {
        font-size: 1.2rem; /* adjust as needed */
    }
}

