/* Latest Updates Section Styles */
.latest-blog {
    padding: 60px 0;
    background: #f8f9fa;
}

.blog-social-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    max-width: 100%;
}

.update-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents overflow in grid items */
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.column-header {
    background: var(--primary-color);
    padding: 15px 20px;
    color: #fff;
    text-align: center;
    border-bottom: 3px solid rgba(255,255,255,0.1);
}

.column-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.blog-featured {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.blog-buttons {
    margin-top: auto;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.blog-buttons .btn {
    font-size: 0.85rem;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.blog-buttons .btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.blog-buttons .btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.blog-buttons .btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.blog-buttons .btn-primary:hover {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transform: translateY(-2px);
}

.facebook-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.facebook-content iframe {
    flex: 1;
    min-height: 400px;
    width: 100%;
}

.facebook-link {
    padding: 15px;
    text-align: center;
    background: #f8f9fa;
}

.facebook-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1877f2;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.facebook-button:hover {
    background: #0d6efd;
    transform: translateY(-2px);
}

/* Keep all cards in one row until screen is very small */
@media (max-width: 1200px) {
    .blog-social-container {
        gap: 15px;
    }
    
    .blog-content {
        padding: 15px;
    }
    
    .blog-content h3 {
        font-size: 1rem;
    }
    
    .blog-meta {
        font-size: 0.8rem;
    }
    
    .blog-buttons {
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
    }
    
    .blog-buttons .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 991px) {
    .blog-social-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Add loading spinner styles */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.facebook-feed-loading {
  padding: 30px;
  text-align: center;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 20px 0;
}

.facebook-fallback {
  padding: 30px;
  text-align: center;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #e5e5e5;
}

.facebook-fallback a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.facebook-fallback a:hover {
  text-decoration: underline;
}

