/* =========================================
   DEVMIXA BLOG – ELITE PREMIUM EDITION
========================================= */

/* Page Background */
.site-main {
    background: linear-gradient(180deg,#f1f5f9 0%,#ffffff 50%);
}

/* Blog Section */
.blog-single {
    padding: 100px 20px;
}

/* CONTENT CARD */
.blog-single .blog-content {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    background: #ffffff;
    padding: clamp(25px, 5vw, 80px);
    border-radius: 32px;
    box-shadow: 0 60px 120px rgba(0,0,0,0.08);
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    line-height: 1.9;
    color: #1f2937;
    box-sizing: border-box;
}

/* Title */
.blog-single .blog-content > h1 {
    font-size: 50px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(90deg,#2563eb,#7c3aed,#06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Headings */
.blog-single .blog-content h2 {
    font-size: 32px;
    margin-top: 70px;
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
}

.blog-single .blog-content h2::after {
    content: "";
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg,#2563eb,#7c3aed);
    display: block;
    margin-top: 10px;
    border-radius: 10px;
}

/* Paragraph */
.blog-single .blog-content p {
    margin-bottom: 28px;
}

/* Drop Cap */
.blog-single .blog-content p:first-of-type::first-letter {
    font-size: 60px;
    font-weight: 800;
    float: left;
    margin-right: 12px;
    color: #2563eb;
}

/* LIST STYLE */
.blog-single .blog-content ul li::marker {
    color: #2563eb;
    font-size: 18px;
}

/* =========================
   PREMIUM TABLE DESIGN
========================= */

.blog-single .blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 60px 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

/* Header */
.blog-single .blog-content table thead {
    background: linear-gradient(90deg,#2563eb,#7c3aed);
    color: #ffffff;
}

.blog-single .blog-content table th {
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
}

/* Body */
.blog-single .blog-content table td {
    padding: 18px;
    font-size: 16px;
    border-bottom: 1px solid #e5e7eb;
}

/* Alternating rows */
.blog-single .blog-content table tbody tr:nth-child(even) {
    background: #f9fafb;
}

/* Hover effect */
.blog-single .blog-content table tbody tr:hover {
    background: #eef2ff;
    transition: 0.3s ease;
}

/* ========================= */

/* Blockquote */
.blog-single .blog-content blockquote {
    background: linear-gradient(135deg,#eef2ff,#f8fafc);
    padding: 30px;
    border-radius: 20px;
    margin: 60px 0;
    border-left: 6px solid #2563eb;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* Code */
.blog-single .blog-content pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 28px;
    border-radius: 16px;
    margin: 40px 0;
    overflow-x: auto;
}

/* Featured Image */
.blog-featured img {
    border-radius: 24px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.15);
}

/* Animation */
.blog-single .blog-content > * {
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from {opacity:0; transform:translateY(6px);}
    to {opacity:1; transform:translateY(0);}
}

/* MOBILE */
@media (max-width: 768px) {

    .blog-single .blog-content {
        padding: 35px;
        font-size: 16px;
    }

    .blog-single .blog-content > h1 {
        font-size: 30px;
    }

    .blog-single .blog-content table th,
    .blog-single .blog-content table td {
        padding: 12px;
        font-size: 14px;
    }
}









/* ==========================
   CLEAN EDITORIAL STYLE
========================== */

/* Paragraph */
.blog-single .blog-content p {
    font-size: 19px;
    line-height: 1.9;
    margin-bottom: 28px;
    color: #334155;
}

/* Section intro sentence */
.blog-single .blog-content p:first-of-type {
    font-size: 20px;
    color: #0f172a;
}

/* Clean list */
.blog-single .blog-content ul {
    margin: 30px 0;
    padding-left: 22px;
}

.blog-single .blog-content ul li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: #1f2937;
}

/* Modern subtle divider after headings */
.blog-single .blog-content h2 {
    margin-top: 70px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}






/* ==============================
   AUTHOR BOX – FORCE GLOBAL STYLE
============================== */

.blog-author-box {
    margin: 80px auto;
    padding-top: 50px;
    border-top: 1px solid #e5e7eb;
    max-width: 950px;
}

.blog-author-box .author-inner {
    display: flex;
    gap: 30px;
    align-items: center;
    background: #f8fafc;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.blog-author-box .author-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author-box .author-content h3 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.blog-author-box .author-content p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

.blog-author-box .author-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.blog-author-box .author-btn:hover {
    background: #1e40af;
}

@media (max-width: 768px) {
    .blog-author-box .author-inner {
        flex-direction: column;
        text-align: center;
    }
}






/* ==============================
   AUTHOR HEADING
============================== */

.author-heading {
    margin-bottom: 25px;
}

.author-heading span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #64748b;
}







/* =========================================
   BLOG LISTING – 3 GRID PREMIUM
========================================= */

.blog-listing {
    padding: 100px 0;
    background: #f8fafc;
}

.blog-header {
    text-align: center;
    margin-bottom: 70px;
}

.blog-header h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 10px;
}

.blog-header p {
    font-size: 16px;
    color: #64748b;
}

/* GRID */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

/* CARD */
.blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.06);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 80px rgba(0,0,0,0.1);
}

/* IMAGE */
.blog-thumb img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

/* CONTENT */
.blog-card-content {
    padding: 25px;
}

/* META */
.blog-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* TITLE */
.blog-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-title a {
    text-decoration: none;
    color: #0f172a;
    transition: 0.3s;
}

.blog-title a:hover {
    color: #2563eb;
}

/* EXCERPT */
.blog-excerpt {
    font-size: 14px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 18px;
}

/* READ MORE */
.read-more {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.read-more:hover {
    color: #1e40af;
}

/* RESPONSIVE */

/* Tablet */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-header h1 {
        font-size: 26px;
    }

    .blog-header p {
        font-size: 14px;
    }
}







/* Prevent nested container width issue */
.blog-single .blog-content .container,
.blog-single .blog-content section,
.blog-single .blog-content div {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}






/* =========================================
   RELATED POSTS – ULTRA PREMIUM WOW STYLE
========================================= */

.related-posts {
    padding: 130px 0 140px;
    background: radial-gradient(circle at top left,#eef2ff 0%, #ffffff 40%);
    position: relative;
}

/* Gradient Heading */
.related-posts h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 70px;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg,#2563eb,#7c3aed,#06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* GRID */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
}

/* CARD */
.related-card {
    background: linear-gradient(145deg,#ffffff,#f8fafc);
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.07);
    transition: all 0.45s cubic-bezier(.2,.8,.2,1);
    position: relative;
    overflow: hidden;
}

/* Gradient Border Effect */
.related-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 1px;
    background: linear-gradient(135deg,#2563eb,#7c3aed,#06b6d4);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: 0.4s ease;
}

.related-card:hover::before {
    opacity: 1;
}

/* Hover Lift */
.related-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 60px 120px rgba(0,0,0,0.15);
}

/* META LINE */
.related-meta {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6366f1;
    margin-bottom: 18px;
}

/* TITLE */
.related-card h4 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 16px;
}

.related-card h4 a {
    text-decoration: none;
    color: #0f172a;
    transition: 0.35s ease;
}

.related-card h4 a:hover {
    color: #2563eb;
}

/* EXCERPT */
.related-excerpt {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    opacity: 0.9;
}

/* IMAGE PREMIUM STYLE */
.related-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 22px;
    transition: 0.4s ease;
}

.related-card:hover img {
    transform: scale(1.05);
}

/* Tablet */
@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-posts {
        padding: 90px 0;
    }

    .related-posts h3 {
        font-size: 26px;
    }

    .related-card {
        padding: 25px;
    }

    .related-card h4 {
        font-size: 19px;
    }

    .related-excerpt {
        font-size: 15px;
    }
}


.related-card {
    position: relative;
}

.related-card a {
    position: relative;
    z-index: 2;
    display: block;
}

.related-card::before {
    pointer-events: none;   /* THIS IS THE FIX */
}