/* Achievements */
.acheivements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 15px;
}

.acheive-card {
    border: 1px solid #f7f7f7;
    background-color: #f7f7f7;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    display: grid;
    grid-template-areas: "head"
        "content";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 15px;
}

.card-head {
    grid-area: head;
    position: relative;
}

.card-head h2 {
    grid-column: 1 / -1;
    /* Span across all columns */
    color: #292929;
}

.card-head h2 span {
    color: #ff671f;
}

.card-head .para {
    grid-column: 1 / -1;
    /* Span across all columns */
    color: #434343;
    text-indent: 50px;
    text-align: left;
    font-size: medium;
    font-weight: 500;
}

.toggle-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.view-participants-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #ff671f;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: medium;
    font-weight: 500;
}

.card-content {
    grid-area: content;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 15px;
    display: none;
    /* Hide content by default */
}

.card-content .profile-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    /* gap: 15px; */
    background-color: #f7f7f7;
    color: #f7f7f7;
    border-radius: 10px;
    transition: all 0.3s;
}

.profile-card:hover {
    transform: scale(1.05);
    /* Slightly enlarge on hover */
}

.profile-image {
    display: flex;
}

.profile-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    text-align: left;
    padding: 10px;
    background-color: #292929;
    border-radius: 10px;
}

.profile-image img {
    border-radius: 10px;
    width: 100%;
}

.profile-content h4 {
    text-align: left;
    color: #1fb7ff;
}

.profile-content p {
    text-align: left;
    font-size: small;
    color: #fff;
}

/* Media Queries */
@media (min-width: 768px) and (max-width: 1023px) {
    .acheivements {
        grid-template-columns: 1fr;
    }

    .card-content {
        grid-template-columns: 1fr 1fr;
        /* 2 columns for tablet view */
    }

    .profile-card {
        grid-template-columns: 1fr;
        /* Stack content vertically for tablet view */
    }

    .profile-image img {
        border-radius: 10px;
        /* Adjust border radius for stacked view */
    }
}

@media (max-width: 767px) {
    .acheivements {
        grid-template-columns: 1fr;
    }

    .card-content {
        grid-template-columns: 1fr;
        /* 1 column for mobile view */
    }

    .profile-card {
        grid-template-columns: 1fr;
        /* Stack content vertically for mobile view */
    }

    .profile-image img {
        border-radius: 10px;
        /* Adjust border radius for stacked view */
    }
}

/* WhatsApp Chat Styles */
.whatsapp-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .whatsapp-chat img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    cursor: pointer;
  }
  
  .whatsapp-chat img:hover {
    transform: scale(1.1);
  }
  
  #whatsapp-popup {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
  
  #whatsapp-popup.hidden {
    display: none;
  }
  
  #whatsapp-message {
    width: 250px; /* Increased width */
    height: 40px; /* Increased height */
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px; /* Increased font size */
  }
  
  #send-button {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 10px 15px; /* Adjusted padding */
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  #send-button:hover {
    background-color: #20c256;
  }