/* Styling for the Facebook updates container */
.facebook-updates {
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Set the width to a fixed value */
}

/* Container for individual Facebook posts */
.facebook-post-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Space between Facebook posts */
}

/* Styling for each Facebook post */
.facebook-post {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    /* Make the entire post clickable */
    transition: box-shadow 0.3s ease;
    /* Smooth transition for hover effects */
    overflow: hidden;
    /* Ensure content doesn't overflow */
    width: auto;
    /* Allow width to be adjusted dynamically */
    height: auto;
    /* Allow height to be adjusted dynamically */
}

.facebook-post:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Slightly larger shadow on hover */
}

/* Title styling for each Facebook post */
.facebook-post-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #007bff;
    cursor: pointer;
    /* Pointer cursor to indicate it's clickable */
}

/* Content area styling for the Facebook post */
.facebook-post-content {
    display: none;
    /* Initially hidden */
    overflow: hidden;
    transition: height 0.5s ease, width 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    background: #f8f9fa;
    position: relative;
    width: 100%;
    height: 0;
    /* Start with zero height */
}

.facebook-post-content.open {
    display: block;
    /* Change to block when open */
    height: 700px;
    /* Allow dynamic height */
    opacity: 1;
}

/* Adjusted iframe styling */
.adjusted-iframe {
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .facebook-updates {
        padding: 10px;
    }

    .facebook-post-title {
        font-size: 16px;
    }

    .facebook-post {
        padding: 10px;
    }

    .facebook-post-content {
        width: auto;
        /* Ensure the width adapts on small screens */
        height: auto;
        /* Ensure the height adapts on small screens */
        opacity: 1;
        overflow: visible;
        /* Ensure content is not hidden */
    }
}