/* Blog Page Styles */
.blog-page {
    padding: 60px 0;
    background-color: #fff;
    min-height: 100vh;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.blog-card {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.blog-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.blog-date {
    margin-right: 15px;
}

.blog-category {
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
}

.blog-excerpt {
    color: var(--gray-color);
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.blog-read-more:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Blog Post Styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 15px;
}

.blog-post img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

.blog-post-content {
    line-height: 1.8;
    color: #333;
}

.blog-post-content p {
    margin-bottom: 1.5em;
}

/* Pagination */
.blog-pagination {
    margin-top: 40px;
    text-align: center;
}

.page-link {
    color: var(--primary-color);
    border: 1px solid #e5e7eb;
    margin: 0 5px;
    border-radius: 5px !important;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-link:hover {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .blog-card {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Override any hiding styles */
[style*="display: none"] {
    display: block !important;
}

[style*="opacity: 0"],
[style*="visibility: hidden"] {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure body and html have proper dimensions */
html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    display: block;
    position: relative;
    background: #fff;
}
