/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5fbff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f5fbff;
}

/* Header styles */
/* Header container styles */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 12rem;
    background-color: white; /* Dark background */
    color: white;
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 15em;
    height: 5em;
    /* object-fit: contain;*/
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

/* Search bar styles */
.search-bar {
    display: flex;
    align-items: center;
    border: 2px solid #252525;
    border-radius: 25px;
    overflow: hidden;
    background-color: transparent;
}

.search-bar input {
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    background: transparent;
    color: #252525;
    width: 200px; /* Adjust width as needed */
    font-size: 1rem;
}

.search-bar input::placeholder {
    color: #ccc;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
}

.search-button img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    /* filter: invert(1); Invert color for white search icon */
}


/* Blog grid layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 15px 0;
}

/* Blog card styles */
.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
}

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    color: #666;
}

.blog-date {
    color: #666;
    font-size: 0.875rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #0066cc;
    text-decoration: none;
}

/* Blog post page styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.blog-post h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #0066cc;
    text-decoration: none;
}


/* Pagination styles */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: background 0.3s ease;
}

.page-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-btn[disabled] {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.page-btn:hover:not([disabled]):not(.active) {
    background-color: #f0f0f0;
}



/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .blog-post {
        padding: 1rem;
    }
}