  /* Social Media Feed Styles - Optimized and Simplified */
.social-feed-section {
    background-color: #003767;
    position: relative;
    min-height: 600px;
}

.social-feed-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #79bde8;
}

/* Header Styles */
.feed-title {
    color: white;
    font-weight: 700;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header Button */
.btn-social-media {
    background-color: #79bde8;
    border: 2px solid #79bde8;
    color: #003767;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-social-media:hover {
    background-color: white;
    border-color: white;
    color: #003767;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Scrollable Container */
.posts-scroll-wrapper {
    position: relative;
}

.posts-scroll-container {
    height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    border: 2px solid rgba(121, 189, 232, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

/* Custom Scrollbar */
.posts-scroll-container::-webkit-scrollbar {
    width: 10px;
}

.posts-scroll-container::-webkit-scrollbar-track {
    background: rgba(121, 189, 232, 0.1);
    border-radius: 5px;
}

.posts-scroll-container::-webkit-scrollbar-thumb {
    background: #79bde8;
    border-radius: 5px;
}

.posts-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #5a9bd4;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding-bottom: 1rem;
}

/* Post Card */
.social-post-card {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid rgba(121, 189, 232, 0.3);
    height: 100%;
}

.social-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: #79bde8;
}

/* Post Image */
.post-image-container {
    position: relative;
    overflow: hidden;
    height: 140px;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    opacity: 0;
}

.post-image.loaded {
    opacity: 1;
}

.social-post-card:hover .post-image.loaded {
    transform: scale(1.05);
}

/* Image Placeholder */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #79bde8;
    font-size: 2rem;
    transition: opacity 0.3s ease;
}

.image-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}

.post-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #003767;
    color: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.social-post-card:hover .post-overlay {
    background-color: #79bde8;
    transform: scale(1.1);
}

.social-icon {
    font-size: 12px;
}

/* Post Content */
.post-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 140px);
}

.post-message {
    flex-grow: 1;
    margin-bottom: 0.75rem;
}

.post-message p {
    color: #333;
    line-height: 1.4;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Post Footer */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.post-date {
    color: #6c757d;
    font-size: 0.75rem;
}

.read-more-btn {
    background-color: #79bde8;
    border: none;
    color: white;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.read-more-btn:hover {
    background-color: #003767;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 10px;
    right: 20px;
    background: rgba(121, 189, 232, 0.9);
    color: #003767;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.scroll-indicator.hidden {
    opacity: 0;
}

.scroll-indicator i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Bottom Facebook Button */
.btn-facebook-bottom {
    background-color: #79bde8;
    border: 2px solid #79bde8;
    color: #003767;
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-facebook-bottom:hover {
    background-color: white;
    border-color: white;
    color: #003767;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* No Posts Message */
.no-posts-message {
    padding: 4rem 2rem;
}

.no-posts-message i {
    color: #79bde8;
}

/* Image Fallback */
.image-fallback {
    height: 140px;
    background-color: #79bde8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.fallback-content {
    text-align: center;
    font-size: 0.8rem;
}

/* Disabled State */
.btn.disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    .posts-scroll-container {
        height: 520px;
    }
}

@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .posts-scroll-container {
        height: 600px;
        padding: 0.75rem;
    }
    .feed-title {
        font-size: 2rem;
        text-align: center;
    }
    .post-image-container {
        height: 160px;
    }
    .post-content {
        height: calc(100% - 160px);
    }
}

@media (max-width: 768px) {
    .feed-title {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    .posts-scroll-container {
        height: 500px;
        padding: 0.5rem;
    }
    .posts-grid {
        gap: 0.75rem;
    }
    .post-content {
        padding: 0.75rem;
    }
    .post-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .read-more-btn {
        align-self: flex-end;
    }
    .btn-facebook-bottom {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    .scroll-indicator {
        bottom: 5px;
        right: 10px;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .social-feed-section {
        padding: 2rem 0;
    }
    .feed-title {
        font-size: 1.6rem;
    }
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .posts-scroll-container {
        height: 400px;
    }
    .post-image-container {
        height: 180px;
    }
    .post-content {
        height: calc(100% - 180px);
        padding: 1rem;
    }
    .post-message p {
        font-size: 0.9rem;
    }
    .post-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Smooth Scrolling */
.posts-scroll-container {
    scroll-behavior: smooth;
}

/* Focus Styles */
.posts-scroll-container:focus {
    outline: 2px solid #79bde8;
    outline-offset: 2px;
}