/* ========== BLOG POST REDESIGN (PayWise Style) ========== */
body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
}

.blog-page-wrapper {
    background-color: #ffffff;
    padding-top: 120px; /* Space for navbar */
    padding-bottom: 100px;
}

.blog-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER SECTION */
.blog-post-header {
    max-width: 800px;
    margin-bottom: 40px;
}

.bp-meta {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 16px;
    font-weight: 500;
}

.bp-meta span {
    color: #111827;
    font-weight: 600;
}

.bp-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.bp-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 700px;
    line-height: 1.6;
}

/* HERO IMAGE */
.blog-post-hero {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc; /* subtle background in case of transparent PNGs */
}

.blog-post-hero img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain; /* Ensures the whole image is visible without cropping */
    display: block;
}

/* TAGS */
.bp-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.bp-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #d1d5db;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.bp-tag:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* TWO-COLUMN GRID */
.blog-post-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* MAIN CONTENT */
.blog-post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
}

.blog-post-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #111827;
    margin: 50px 0 20px;
    letter-spacing: -0.01em;
}

.blog-post-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #111827;
    margin: 40px 0 15px;
}

.blog-post-content p {
    margin-bottom: 24px;
}

/* QUOTE BLOCK (from right slice top) */
.blog-post-quote {
    padding-left: 20px;
    border-left: 3px solid #111827;
    margin: 40px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.5;
}

.quote-author {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 10px;
    font-weight: 400;
}

/* SIDEBAR */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
}

.popular-post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

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

.popular-post-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.popular-post-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.popular-post-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 10px;
}

.popular-post-desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 15px;
}

.popular-post-tags {
    display: flex;
    gap: 8px;
}

.popular-post-tags span {
    font-size: 0.75rem;
    padding: 4px 12px;
    border: 1px solid #d1d5db;
    border-radius: 50px;
}

/* AUTHOR BIO ROW */
.author-bio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin: 60px 0 40px;
}

.author-info-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.author-details p {
    margin: 0;
    line-height: 1.3;
}

.author-name {
    font-weight: 700;
    color: #111827;
    font-size: 0.95rem;
}

.author-role {
    font-size: 0.8rem;
    color: #6b7280;
}

.author-socials {
    display: flex;
    gap: 10px;
}

.social-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.social-circle:hover {
    background: #f3f4f6;
}

/* PAGINATION */
.post-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.btn-prev {
    padding: 10px 20px;
    background: #f3f4f6;
    color: #111827;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-prev:hover {
    background: #e5e7eb;
}

.btn-next {
    padding: 10px 20px;
    background: #5a4ff3; /* The exact purple from the screenshot */
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-next:hover {
    background: #4338ca;
}

/* MORE FROM THIS TOPIC */
.more-topics-section {
    margin-top: 80px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 30px;
}

.more-topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* MEDIA QUERIES */
@media (max-width: 992px) {
    .blog-post-grid {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        position: static;
        margin-top: 60px;
    }
}

@media (max-width: 768px) {
    .more-topics-grid {
        grid-template-columns: 1fr;
    }
    .bp-title {
        font-size: 2.2rem;
    }
    .author-bio-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .post-pagination {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    .btn-prev, .btn-next {
        justify-content: center;
    }
}

/* ========== MODERN NAVBAR (restored from inline) ========== */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 22, 51, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    height: 72px;
    z-index: 9999;
}

.nav-logo img {
    height: 48px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-family: 'Outfit', sans-serif;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300; /* Ultra thin modern font */
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.nav-links .nav-cta-btn {
    background: #10b981;
    color: #fff;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 400; 
    letter-spacing: 0;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-links .nav-cta-btn:hover {
    background: #059669;
    color: #fff;
    transform: translateY(-2px);
    text-shadow: none;
}

/* ========== FOOTER (restored from inline) ========== */
.footer {
    background: #0A1633;
    color: #cbd5e1;
    padding: 40px 20px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 30px;
    border-bottom: 1px solid #1e293b;
}

.footer-grid .column h4 {
    color: #fff;
    margin-bottom: 10px;
}

.footer-grid .column ul {
    list-style: none;
    padding: 0;
}

.footer-grid .column ul li {
    margin: 8px 0;
}

.footer-grid .column ul li a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-grid .column ul li a:hover {
    color: #a78bfa;
}

.footer-meta {
    margin-top: 30px;
    text-align: center;
}

/* ========== MOBILE NAVIGATION OVERRIDES ========== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}

@media (max-width: 768px) {
    #main-nav {
        display: none !important;
    }
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: absolute !important;
        top: 72px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        background: rgba(10, 22, 51, 0.98) !important;
        display: none !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding: 2rem 0 !important;
        gap: 1rem !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .nav-links.show {
        display: flex !important;
    }
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.75rem 2rem;
    }
}
