/* ==========================================
   BLOG PAGE STYLES
   ========================================== */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
    background-size: 60px 60px;
    pointer-events: none;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero-content {
    max-width: 700px;
}

.blog-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 16px;
}

.blog-hero-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 24px;
}

.blog-hero-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.author-info strong {
    color: var(--white);
}

/* Blog Controls */
.blog-controls {
    padding: 24px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.blog-controls-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--off-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
    width: 300px;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-dark);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    width: 40px;
    height: 40px;
    background-color: var(--primary-purple);
    border: none;
    border-radius: var(--radius-md);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: var(--secondary-purple);
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
}

.filter-select {
    padding: 10px 36px 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-dark);
    background-color: var(--white);
    cursor: pointer;
    min-width: 140px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.filter-select:focus {
    border-color: var(--primary-purple);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

/* Blog Articles Section */
.blog-articles {
    padding: 50px 0 80px;
    background-color: var(--off-white);
}

.blog-articles .section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Blog Card */
.blog-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.blog-card-image {
    display: block;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-card-content {
    padding: 20px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.meta-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-author {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

.meta-date {
    font-size: 12px;
    color: var(--text-light);
    margin-left: auto;
}

.blog-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.blog-card-title a {
    color: var(--text-dark);
    transition: var(--transition);
}

.blog-card-title a:hover {
    color: var(--primary-purple);
}

.blog-card-excerpt {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-tag {
    display: inline-block;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tag-self-help {
    background-color: #fef3c7;
    color: #92400e;
}

.tag-hr {
    background-color: #dbeafe;
    color: #1e40af;
}

.tag-business {
    background-color: #dcfce7;
    color: #166534;
}

.tag-data {
    background-color: #f3e8ff;
    color: #7c3aed;
}

.tag-tech {
    background-color: #fce7f3;
    color: #be185d;
}

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--white);
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.pagination-btn:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.pagination-btn.active {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    color: var(--white);
}

.pagination-next {
    width: auto;
    padding: 0 16px;
}

/* ==========================================
   BLOG DETAILS PAGE STYLES
   ========================================== */

/* Blog Details Hero */
.blog-details-hero {
    background: linear-gradient(135deg, #1e0a3c 0%, #3b1578 40%, #7c3aed 100%);
    padding: 72px 0 64px;
    position: relative;
    overflow: hidden;
}

.blog-details-hero .blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(167, 139, 250, 0.1) 0%, transparent 40%);
}

.blog-details-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.blog-details-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.blog-details-meta svg {
    opacity: 0.85;
}

.blog-details-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    max-width: 100%;
    letter-spacing: -0.5px;
}

/* Blog Details Content */
.blog-details-content {
    padding: 48px 0 80px;
    background-color: #f8f9fb;
}

/* Back to Blog Button */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 28px;
    padding: 10px 18px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.back-to-blog:hover {
    color: #7c3aed;
    border-color: #c4b5fd;
    background: #f5f3ff;
    transform: translateX(-4px);
}

.back-to-blog svg {
    transition: transform 0.2s;
}

.back-to-blog:hover svg {
    transform: translateX(-3px);
}

.blog-details-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

/* Blog Main Content */
.blog-main {
    background-color: var(--white);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
    overflow: hidden;
    min-width: 0;
}

.blog-section {
    margin-bottom: 36px;
}

.blog-section:last-child {
    margin-bottom: 0;
}

.blog-section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-purple);
    display: inline-block;
}

.blog-section p {
    font-size: 16px;
    color: #374151;
    line-height: 1.85;
    margin-bottom: 18px;
}

.blog-section p:last-child {
    margin-bottom: 0;
}

.blog-section-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 20px 0;
}

.blog-section-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: var(--white);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
    border: 1px solid #f3f4f6;
}

.sidebar-widget-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

/* Quick Search Widget */
.sidebar-search {
    display: flex;
    gap: 8px;
}

.sidebar-search input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #f9fafb;
    transition: all 0.2s;
}

.sidebar-search input:focus {
    border-color: #7c3aed;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

.sidebar-search button {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    border: none;
    border-radius: 10px;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sidebar-search button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Related Articles Widget */
.related-article {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s;
}

.related-article:hover {
    padding-left: 4px;
}

.related-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-article:first-child {
    padding-top: 0;
}

.related-article-image {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.related-article:hover .related-article-image img {
    transform: scale(1.08);
}

.related-article-content {
    flex: 1;
}

.related-article-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.45;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-title a {
    color: inherit;
    transition: color 0.2s;
}

.related-article-title a:hover {
    color: #7c3aed;
}

.related-article-date {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

/* Popular Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    position: relative;
    padding: 7px 14px 7px 26px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    border: 1.5px solid #e5e7eb;
    color: #374151;
    overflow: hidden;
}

.tag-link::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.tag-link:nth-child(8n+1)::before { background: #7c3aed; }
.tag-link:nth-child(8n+2)::before { background: #2563eb; }
.tag-link:nth-child(8n+3)::before { background: #059669; }
.tag-link:nth-child(8n+4)::before { background: #f59e0b; }
.tag-link:nth-child(8n+5)::before { background: #ec4899; }
.tag-link:nth-child(8n+6)::before { background: #0891b2; }
.tag-link:nth-child(8n+7)::before { background: #ef4444; }
.tag-link:nth-child(8n+8)::before { background: #10b981; }

.tag-link:nth-child(8n+1):hover { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.tag-link:nth-child(8n+2):hover { background: #2563eb; color: #fff; border-color: #2563eb; }
.tag-link:nth-child(8n+3):hover { background: #059669; color: #fff; border-color: #059669; }
.tag-link:nth-child(8n+4):hover { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.tag-link:nth-child(8n+5):hover { background: #ec4899; color: #fff; border-color: #ec4899; }
.tag-link:nth-child(8n+6):hover { background: #0891b2; color: #fff; border-color: #0891b2; }
.tag-link:nth-child(8n+7):hover { background: #ef4444; color: #fff; border-color: #ef4444; }
.tag-link:nth-child(8n+8):hover { background: #10b981; color: #fff; border-color: #10b981; }

.tag-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.tag-link:hover::before {
    background: rgba(255, 255, 255, 0.9);
}

/* Read Next Section */
.read-next {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 2px solid #f3f4f6;
}

.read-next-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.read-next-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.read-next-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    transition: all 0.25s ease;
}

.read-next-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.read-next-card-image {
    height: 140px;
    overflow: hidden;
}

.read-next-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.read-next-card-content {
    padding: 16px;
}

.read-next-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-next-card-title a {
    color: inherit;
}

.read-next-card-title a:hover {
    color: var(--primary-purple);
}

/* Comments Section */
.comments-section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 2px solid #f3f4f6;
}

.comments-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.comment {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #f3f4f6;
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.comment-date {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 10px;
    font-weight: 500;
}

.comment-text {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
}

/* Leave Reply Form */
.reply-section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 2px solid #f3f4f6;
}

.reply-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.reply-subtitle {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 24px;
}

.reply-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reply-form textarea {
    width: 100%;
    min-height: 140px;
    padding: 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    background: #f9fafb;
    transition: all 0.2s;
}

.reply-form textarea:focus {
    border-color: #7c3aed;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

.reply-form .btn {
    align-self: flex-start;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: 10px;
}

/* Dynamic Content Styles */
.loading,
.no-results,
.error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 16px;
}

.blog-content-body {
    font-size: 17px;
    color: #374151;
    line-height: 1.85;
    overflow: hidden;
    max-width: 100%;
    letter-spacing: -0.01em;
}

.blog-content-body h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 40px 0 18px;
    padding-bottom: 0;
    border-bottom: none;
    display: block;
    letter-spacing: -0.3px;
    position: relative;
    padding-left: 16px;
}

.blog-content-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: linear-gradient(180deg, #7c3aed, #a78bfa);
    border-radius: 4px;
}

.blog-content-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 32px 0 14px;
    letter-spacing: -0.2px;
}

.blog-content-body p {
    margin-bottom: 20px;
}

.blog-content-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 28px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.blog-content-body ul,
.blog-content-body ol {
    margin: 20px 0;
    padding-left: 24px;
}

.blog-content-body li {
    margin-bottom: 10px;
    line-height: 1.75;
}

.blog-content-body blockquote {
    border-left: 4px solid #7c3aed;
    margin: 28px 0;
    padding: 20px 24px;
    background: #f5f3ff;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4b5563;
}

.blog-content-body blockquote p {
    margin-bottom: 0;
}

.blog-content-body pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    font-size: 14px;
    margin: 24px 0;
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    border: 1px solid #1e293b;
}

.blog-content-body code {
    background: #f1f5f9;
    color: #7c3aed;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.9em;
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
}

.blog-content-body pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.blog-content-body a {
    color: #7c3aed;
    text-decoration: underline;
    text-decoration-color: rgba(124, 58, 237, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.blog-content-body a:hover {
    text-decoration-color: #7c3aed;
}

.blog-content-body strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* Comment Avatar - Text Version */
.comment-avatar:not(img) {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Form Row for Name/Email */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: #f9fafb;
    transition: all 0.2s;
}

.form-row input:focus {
    border-color: #7c3aed;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

/* Comment Success Message */
.comment-success {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(109, 40, 217, 0.1));
    border: 1px solid var(--primary-purple);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.comment-success p {
    color: var(--primary-purple);
    font-weight: 500;
    margin: 0;
}

/* Additional Tag Colors */
.tag-default {
    background-color: #f1f5f9;
    color: #475569;
}

.tag-cloud {
    background-color: #e0f2fe;
    color: #0369a1;
}

.tag-ml {
    background-color: #fce7f3;
    color: #be185d;
}

.tag-devops {
    background-color: #ffedd5;
    color: #c2410c;
}

.tag-tutorial {
    background-color: #d1fae5;
    color: #047857;
}

.tag-news {
    background-color: #e0e7ff;
    color: #4338ca;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-details-grid {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }

    .read-next-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 40px 0;
    }

    .blog-hero-title {
        font-size: 26px;
    }

    .blog-controls-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }

    .filter-controls {
        flex-wrap: wrap;
    }

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

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

    .blog-sidebar {
        position: static;
        order: 2;
    }

    .blog-main {
        padding: 24px;
    }

    .blog-details-hero {
        padding: 48px 0 40px;
    }

    .blog-details-title {
        font-size: 28px;
    }

    .blog-content-body {
        font-size: 16px;
    }

    .blog-content-body h2 {
        font-size: 22px;
    }

    .read-next-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
