/* Blog Section Styling */
#blog {
    background: transparent;
    padding: 80px 0;
}

.blog-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px auto 0;
    max-width: 1200px;
}

.blog-item {
    flex: 0 1 45%;
    min-width: 300px;
    max-width: 500px;
    background: transparent;
    border: none;
    transition: transform 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-5px);
}

.blog-img {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 15px;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.blog-item:hover .blog-img img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px 0 0 0;
    background: transparent;
    min-height: auto;
}

.blog-content h3 {
    color: #e6b800;
    margin: 0 0 20px 0;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Blog post content - hidden by default */
.blog-post {
    display: none;  /* This ensures the content is hidden by default */
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

/* Blog post content styles */
.blog-post {
    color: #e0e0e0 !important;
}

.blog-post * {
    color: inherit !important;
}

/* Blog post images */
.blog-post img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
    border-radius: 4px;
}

/* Headings */
.blog-post h1,
.blog-post h2,
.blog-post h3,
.blog-post h4,
.blog-post h5,
.blog-post h6 {
    color: #2c3e50 !important;
    margin: 1.5em 0 0.5em 0 !important;
}

/* Links */
.blog-post a {
    color: #3498db !important;
    text-decoration: none !important;
}

.blog-post a:hover {
    text-decoration: underline !important;
}

/* Lists */
.blog-post ul,
.blog-post ol {
    margin: 1rem 0 !important;
    padding-left: 2rem !important;
}

/* Code blocks */
.blog-post pre,
.blog-post code {
    background: #f5f5f5 !important;
    border-radius: 4px !important;
    padding: 0.2rem 0.4rem !important;
    font-family: 'Courier New', monospace !important;
    font-size: 0.9em !important;
}

.blog-post pre {
    padding: 1rem !important;
    overflow-x: auto !important;
}

/* Blockquotes */
.blog-post blockquote {
    border-left: 4px solid #3498db !important;
    margin: 1.5rem 0 !important;
    padding: 0.5rem 0 0.5rem 1rem !important;
    color: #555 !important;
    font-style: italic !important;
}

/* Tables */
.blog-post table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 1rem 0 !important;
}

.blog-post th,
.blog-post td {
    border: 1px solid #ddd !important;
    padding: 0.5rem !important;
    text-align: left !important;
}

.blog-post th {
    background-color: #f5f5f5 !important;
}

/* Force light mode for the entire blog post */
.blog-post-full {
    background: #ffffff !important;
    color: #333333 !important;
    min-height: 100vh !important;
    padding: 2rem 0 !important;
}

/* Ensure all direct children of blog post have proper colors */
.blog-post > * {
    color: #333333 !important;
    background: transparent !important;
}

/* Fix for any remaining dark mode overrides */
.blog-post :not(pre) > code,
.blog-post :not(pre) > code *,
.blog-post pre,
.blog-post pre * {
    background: #f5f5f5 !important;
    color: #333333 !important;
}
