/* ==============================================================
   BLOG PAGE STYLES - TESSIFY SOLUTIONS
   ============================================================== */

body {
    background-color: #050b14 !important;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    margin: 0;
    overflow-x: hidden;
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
}
.logo-icon {
    background: #0075ff;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
}
.nav-links {
    display: flex;
    gap: 30px;
}
.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
}
.talk-btn {
    background: #0075ff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Blog Hero Section */
.blog-hero {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hero-subtitle {
    color: #0075ff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}
.blog-hero h1 {
    font-size: 44px;
    margin: 10px 0 15px 0;
    font-weight: 700;
}
.highlight-blue {
    color: #0075ff;
}
.blog-hero p {
    color: #94a3b8;
    font-size: 15px;
    max-width: 500px;
    line-height: 1.6;
}
.hero-graphic {
    position: relative;
    width: 280px;
    height: 160px;
    background: linear-gradient(135deg, #0b1323, #1e293b);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Filter & Search Bar */
.blog-filter-section {
    max-width: 1200px;
    margin: 40px auto 30px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.categories-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.cat-btn {
    background: #0b1323;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}
.cat-btn.active, .cat-btn:hover {
    background: #0075ff;
    color: #fff;
    border-color: #0075ff;
}
.search-box {
    position: relative;
    width: 260px;
}
.search-box input {
    width: 100%;
    background: #0b1323;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 16px 10px 40px;
    color: #fff;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

/* Blog Grid Container */
.blog-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

/* Blog Cards General */
.blog-card {
    background: #0b1323;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}
.blog-card:hover {
    transform: translateY(-4px);
}
.featured-card {
    grid-row: span 1;
}
.card-image-placeholder {
    width: 100%;
    height: 180px;
    background: #131c31;
    position: relative;
}
.featured-img {
    height: 320px;
    background: linear-gradient(to bottom, #071022, #001e4d);
}
.badge-featured {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #0075ff;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
}
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}
.card-meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    gap: 8px;
}
.blog-card h3 {
    font-size: 20px;
    margin: 0;
    color: #fff;
    line-height: 1.4;
}
.blog-card h4 {
    font-size: 15px;
    margin: 0;
    color: #fff;
    line-height: 1.4;
}
.blog-card p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}
.read-more {
    color: #0075ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
    padding-top: 10px;
    display: inline-block;
}

/* Sub Grid for Right Side */
.blog-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.blog-sub-grid .blog-card .card-image-placeholder {
    height: 140px;
}

/* Pagination */
.pagination-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.page-num, .page-next {
    background: #0b1323;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}
.page-num.active, .page-num:hover, .page-next:hover {
    background: #0075ff;
    color: #fff;
    border-color: #0075ff;
}
.dots {
    color: #64748b;
    padding: 0 4px;
}

/* Newsletter Section */
.newsletter-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}
.newsletter-box {
    background: #0b1323;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.newsletter-info {
    display: flex;
    align-items: center;
    gap: 20px;
}
.newsletter-icon {
    background: #0075ff;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.newsletter-box h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}
.newsletter-box p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}
.newsletter-form {
    display: flex;
    gap: 12px;
}
.newsletter-form input {
    background: #050b14;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-size: 13px;
    outline: none;
    width: 240px;
    font-family: 'Poppins', sans-serif;
}
.newsletter-form button {
    background: #0075ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.3s;
}
.newsletter-form button:hover {
    background: #005ec4;
}

/* Responsive Design */
@media screen and (max-width: 900px) {
    .blog-grid-container {
        grid-template-columns: 1fr;
    }
    .blog-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .newsletter-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }
    .newsletter-form input {
        width: 100%;
    }
}
@media screen and (max-width: 600px) {
    .blog-sub-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
}




























/* ==============================================================
   MOBILE HORIZONTAL BLOG CARDS FIX (Add at the very end of blog.css)
   ============================================================== */
@media screen and (max-width: 600px) {
    /* Normal cards ko horizontal layout dene ke liye */
    .blog-sub-grid .blog-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px !important;
    }

    /* Thumbnail image ya placeholder ki width/height set karne ke liye */
    .blog-sub-grid .blog-card .card-image-placeholder,
    .blog-sub-grid .blog-card img {
        width: 110px !important;
        height: 90px !important;
        min-width: 110px !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
        object-fit: cover !important;
    }

    /* Text content area ko adjust karne ke liye */
    .blog-sub-grid .blog-card .card-content {
        padding: 0 !important;
        flex-grow: 1 !important;
        gap: 6px !important;
    }

    /* Text font size mobile par thora perfect rakhne ke liye */
    .blog-sub-grid .blog-card h4 {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
}