/* General Styling */
.charity-opportunity-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 45px;
    margin-bottom: 45px;
}

.charity-header {
    text-align: center;
    margin-bottom: 30px;
}

.charity-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.charity-description {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Detail Cards */
.charity-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-card {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.detail-icon {
    font-size: 1.5rem;
    color: #3498db;
    margin-right: 10px;
}

.detail-content {
    font-size: 1rem;
    color: #34495e;
}

.map-link {
    color: #3498db;
    text-decoration: none;
}

.map-link:hover {
    text-decoration: underline;
}

/* Media Section */
.charity-media {
    margin-bottom: 30px;
}

.cover-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.youtube-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Referees Section */
.referees-section {
    margin-bottom: 30px;
}

.referees-section h3 {
    font-size: 1.5rem;
    color: #34495e;
    margin-bottom: 15px;
}

.referees-list {
    list-style: none;
    padding: 0;
}

.referee-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.referee-icon {
    font-size: 1.2rem;
    color: #3498db;
    margin-right: 10px;
}

.referee-info {
    font-size: 1rem;
    color: #34495e;
}
/* Title Styling */
.charity-title {
    font-size: 2.5rem;
    color: #3498db; /* Blue color for the title */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Description Box */
.charity-description-box {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.charity-description {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* Contact Number Styling */
.contact-number {
    cursor: pointer;
    color: #3498db;
    font-weight: bold;
    margin-right: 10px;
}

.copy-icon {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-left: 5px;
    cursor: pointer;
}

.copy-icon:hover {
    color: #3498db;
}

.call-link {
    color: #27ae60; /* Green color for call icon */
    margin-left: 10px;
    text-decoration: none;
}

.call-icon {
    font-size: 1rem;
}

.call-link:hover {
    color: #2ecc71; /* Lighter green on hover */
}

/* Referees Section */
.referees-section {
    margin-bottom: 30px;
}

.referees-section h3 {
    font-size: 1.5rem;
    color: #34495e;
    margin-bottom: 15px;
}

.referees-list {
    list-style: none;
    padding: 0;
}

.referee-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.referee-icon {
    font-size: 1.2rem;
    color: #3498db;
    margin-right: 10px;
}

.referee-info {
    font-size: 1rem;
    color: #34495e;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.youtube-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}
/* Button Container */
.button-container {
    display: flex;
    gap: 10px; /* Space between buttons */
    margin-top: 20px; /* Adjust as needed */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center; /* Center buttons horizontally */
    margin-bottom: 10px;
}

/* Base Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

/* Edit/Create Album Button */
.btn-edit-album {
    background-color: #4CAF50; /* Green */
    color: white;
}

.btn-edit-album:hover {
    background-color: #45a049; /* Darker green on hover */
}

/* Edit Opportunity Button */
.btn-edit-opportunity {
    background-color: #2196F3; /* Blue */
    color: white;
}

.btn-edit-opportunity:hover {
    background-color: #1e88e5; /* Darker blue on hover */
}
.view-rise-hands-details {
  background-color: #05754e; /* Green */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none; /* Remove underline */
}

.view-rise-hands-details:hover {
  background-color: #3e8e41; /* Darker green on hover */
}
.delete-opportunity-button {
    text-align: center;
    margin-top: 20px;
}

.btn-delete {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-delete:hover {
    background-color: #e60000;
}

/* Confirmation Popup Styles */
.confirmation-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    width: 100%;
}

.popup-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

.popup-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-confirm, .btn-cancel {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 7px;
}

.btn-confirm {
    background-color: #ff4d4d;
    color: white;
    border: none;
}

.btn-confirm:hover {
    background-color: #e60000;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
    border: none;
}

.btn-cancel:hover {
    background-color: #5a6268;
}
/* Album Grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Set 5 columns */
    gap: 10px;
    margin-top: 20px;
}

.album-image img {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.album-image img:hover {
    transform: scale(1.05);
}

/* Full-Screen Image Popup */
.image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    color: black;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
}

.prev-button {
    left: 20px;
}

.next-button {
    right: 20px;
}
.btn-show-album {
  background-color: #4CAF50; /* Green */
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-show-album:hover {
  background-color: #3e8e41; /* Darker green on hover */
}
/* Rise Hand Button */
.btn-rise-hand {
    background: linear-gradient(45deg, #662D91, #B22222, #FF6347, #FFCE54, #EAFFD0);
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 24px;
    transition: background-color 0.3s;
    width: 100%;
}
.btn-rise-hand-link {
    display: block; /* Make it a block-level element */
    width: 100%; /* Full width */
    text-align: center; /* Center the text */
    padding: 10px 20px; /* Match padding with the button */
    font-size: 16px; /* Match font size */
    border: none; /* Remove border */
    border-radius: 5px; /* Match border radius */
    cursor: pointer; /* Add pointer cursor */
    transition: background-color 0.3s ease; /* Smooth transition */
    text-decoration: none; /* Remove underline for the link */
}
.btn-rise-hand-link:hover {
    background-color: #45a049; /* Darker gradient on hover */
}
.btn-rise-hand:hover {
    background-color: #45a049;
}

/* Rise Hand Form */
.rise-hand-form {
    margin-top: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-actions {
    margin-top: 10px;
    text-align: right;
}

.btn-submit {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-submit {
    background-color: #4CAF50;
    color: white;
}

.btn-submit:hover {
    background-color: #45a049;
}
/* Rise Hand Users Section */
.rise-hand-users-section {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.rise-hand-count {
    text-align: center;
    margin-bottom: 20px;
}

.count-number {
    font-size: 36px;
    font-weight: bold;
    color: #4CAF50;
}

.count-text {
    font-size: 18px;
    color: #666;
}

.rise-hand-users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rise-hand-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 16px;
    color: #333;
}

.user-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn {
    display: block;
    margin: 20px auto 0;
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.load-more-btn:hover {
    background-color: #45a049;
}
/* Achieved Notice */
.achieved-notice {
    background-color: #ffebee; /* Light red background */
    color: #c62828; /* Dark red text */
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
}

/* Mark as Achieved Button */
.mark-achieved-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.mark-achieved-button.achieved {
    background-color: #4caf50; /* Green for achieved */
    color: white;
}

.mark-achieved-button.unachieved {
    background-color: #f44336; /* Red for unachieved */
    color: white;
}
/* Styling for the creator avatar */
.creator-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

/* Styling for the creator link */
.creator-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.creator-link:hover {
    text-decoration: underline;
}

/* Styling for the creator name */
.creator-name {
    vertical-align: middle;
}
/* Report Button Container */
.report-button-container {
    text-align: center;  /* Center the button */
    margin: 10px 0;  /* Add some margin for spacing */
}

/* Report Button Styling */
.btn-report-opportunity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    color: #fff;
    background-color: #dc3545;  /* Red color for urgency */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-report-opportunity:hover {
    background-color: #c82333;  /* Darker red on hover */
    text-decoration: none;
}

/* Icon Styling */
.btn-report-opportunity i {
    margin-right: 8px;  /* Space between icon and text */
    font-size: 14px;  /* Match icon size with text */
}
/* Responsive Design */
@media (max-width: 768px) {
    .charity-header h1 {
        font-size: 2rem;
    }

    .charity-description {
        font-size: 1rem;
    }

    .detail-card {
        flex-direction: column;
        text-align: center;
    }

    .detail-icon {
        margin-bottom: 10px;
    }
    .charity-title {
        font-size: 2rem;
    }

    .charity-description-box {
        padding: 15px;
    }

    .charity-description {
        font-size: 1rem;
    }
    .button-container {
        flex-direction: column; /* Stack buttons vertically on small screens */
        gap: 8px; /* Reduce gap for smaller screens */
    }

    .btn {
        width: 100%; /* Full width buttons on small screens */
        padding: 12px 20px; /* Slightly larger padding for better touch targets */
    }
    .btn-delete {
        padding: 8px 16px;
        font-size: 12px;
    }
    .btn-edit-album {
        background-color: #4CAF50; /* Green */
        color: white;
        padding: 8px 16px;
        font-size: 12px;
    }
    .popup-content {
        padding: 15px;
    }

    .btn-confirm, .btn-cancel {
        padding: 8px 16px;
        font-size: 12px;
    }
}