/* General Page Styling */
.container h2 {
    color: #343a40;
    font-weight: bold;
}

.post-buttons .btn {
    margin-right: 0.5rem;
}

/* Post List Styling */
.post-header img {
    border: 2px solid #007bff;
}

.post {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.post:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.post-photo img,
.post-video video,
.post-voice audio {
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.post-content {
    color: #495057;
    line-height: 1.6;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: #ffffff;
}

/* Pagination */
.pagination-container {
    margin-top: 2rem;
}

.pagination .page-item .page-link {
    color: #007bff;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
}

.video-container {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    width: 100%;
    border-radius: 8px;
    /* Optional: adds a rounded edge */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Optional: adds a soft shadow */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    /* Matches container radius */
}

.photo-container {
    position: relative;
    overflow: hidden;
}

.photo-container img {
    width: 100%;
    height: auto;
    /* Maintain aspect ratio */
    display: block;
    /* Remove bottom space/gap */
}

.voice-container {
    position: relative;
    width: 100%;
    /* Removed overflow: hidden to allow audio controls to be fully visible */
    padding: 10px 0;
    /* Optional: Add padding if the audio controls are too close to other elements */
}

.voice-container audio {
    width: 100%;
    /* Simplified audio element styling */
}