.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: transparent;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid #22d3ee; /* Softer Cyan */
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.4); /* Softer Cyan Shadow */
}

.header h1 {
    color: #22d3ee; /* Softer Cyan */
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5); /* Softer Cyan Shadow */
}

.header p {
    color: #d1d5db; /* Lighter gray for subtitle */
    font-size: 1.1rem;
}

.nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.nav-tab {
    background: rgba(34, 211, 238, 0.1); /* Softer Cyan */
    color: #22d3ee; /* Softer Cyan */
    border: 1px solid #22d3ee; /* Softer Cyan */
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.nav-tab:hover {
    background: rgba(34, 211, 238, 0.2); /* Softer Cyan */
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.6); /* Softer Cyan */
}

.nav-tab.active {
    background: #22d3ee; /* Softer Cyan */
    color: #000000;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 350px);
    gap: 25px;
    margin-bottom: 30px;
    justify-content: center;
}

.blog-card {
    background: #111111;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #374151; /* Darker border for cards */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: #22d3ee; /* Softer Cyan on hover */
    box-shadow: 0 8px 25px rgba(34, 211, 238, 0.3); /* Softer Cyan Shadow on hover */
}

.blog-card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.blog-card-content {
    padding: 25px;
}

.blog-category {
    color: #22d3ee; /* Softer Cyan */
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #f9fafb; /* Off-white for title */
    line-height: 1.4;
}

.blog-excerpt {
    color: #9ca3af; /* Lighter gray for readability */
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6b7280; /* Darker gray for meta */
    font-size: 12px;
}

.read-more {
    color: #22d3ee; /* Softer Cyan */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #81e9fa; /* Lighter cyan for hover */
    text-shadow: 0 0 5px rgba(34, 211, 238, 0.5);
}

.blog-detail {
    background: #111111;
    border-radius: 15px;
    padding: 40px;
    margin: 0 auto;
    border: 1px solid #374151;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    margin-top: 20px;
}

.blog-detail-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #374151;
}

.blog-detail-title {
    font-size: 2.2rem;
    color: #22d3ee; /* Softer Cyan */
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

.blog-detail-meta {
    color: #9ca3af;
    font-size: 14px;
}

.blog-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #e5e7eb; /* Light gray for body text - easier to read */
}

.blog-detail-content h2, .blog-detail-content h3 {
    color: #22d3ee; /* Softer Cyan */
    margin: 30px 0 15px 0;
    border-bottom: 1px solid #374151;
    padding-bottom: 5px;
}

.blog-detail-content h2 {
    font-size: 1.5rem;
}

.blog-detail-content h3 {
    font-size: 1.3rem;
}

.blog-detail-content p {
    margin-bottom: 18px;
}

.blog-detail-content ul, .blog-detail-content ol {
    margin: 18px 0;
    padding-left: 25px;
}

.blog-detail-content li {
    margin-bottom: 8px;
}

.back-button {
    background: transparent;
    color: #22d3ee; /* Softer Cyan */
    border: 1px solid #22d3ee; /* Softer Cyan */
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(34, 211, 238, 0.2);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
    transform: translateY(-2px);
}

.search-bar {
    max-width: 400px;
    margin: 0 auto 30px auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 1px solid #374151;
    border-radius: 5px;
    background: #000;
    font-size: 16px;
    outline: none;
    color: #22d3ee; /* Softer Cyan */
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #22d3ee;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #22d3ee; /* Softer Cyan */
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    color: #000;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #81e9fa; /* Lighter cyan on hover */
}

/* Unchanged helper classes */
.truncate-2-lines, .truncate-3-lines {
    display: -webkit-box;
    -webkit-line-clamp: attr(webkit-line-clamp);
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.truncate-2-lines { -webkit-line-clamp: 2; }
.truncate-3-lines { -webkit-line-clamp: 3; }

.cta-wrapper {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    color: #22d3ee; /* Softer Cyan */
    border: 1px solid #22d3ee; /* Softer Cyan */
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    background-color: #22d3ee; /* Softer Cyan */
    color: #000000;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.6); /* Softer Cyan */
}

.pt-6 {
    padding-top: 1.5rem;
}

@media (max-width: 768px) {
    .blog-container {
        padding: 15px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-detail {
        padding: 25px;
    }

    .blog-detail-title {
        font-size: 1.8rem;
    }

    .nav-tabs {
        flex-wrap: wrap;
    }
}