/* ============================================================
   BLOG DETAILS PAGE - SS Advertising
   blog-details.css
   ============================================================ */

/* ---------- Google Fonts (match project) ---------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Poppins:wght@400;500;600&display=swap');

/* ---------- CSS Variables (same as style.css) ---------- */
:root {
    --primary-blue: #1059B6;
    --accent-blue: #2196F3;
    --light-blue: #E3F2FD;
    --dark-text: #1A1A2E;
    --gray-text: #555;
    --light-gray: #F5F7FA;
    --white: #ffffff;
    --border-color: #E0E0E0;
    --shadow: 0 4px 24px rgba(21, 101, 192, 0.10);
    --shadow-hover: 0 8px 32px rgba(21, 101, 192, 0.18);
    --transition: all 0.3s ease;
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'DM Sans', sans-serif;
    --gray: #333333;
    --gray-one: #606060;
    --container-max: 1440px;
}

/* ============================================================
   BLOG DETAILS - PAGE WRAPPER
   ============================================================ */

.blog-details-page {
    background: var(--white);
    color: var(--dark-text);
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.7;
}

/* ============================================================
   BLOG DETAILS - INNER CONTAINER
   ============================================================ */

.blog-details-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 24px 70px;
}

/* ============================================================
   TITLE SECTION
   ============================================================ */

.bd-title-section {
    text-align: center;
    margin-bottom: 10px;
}

.bd-title-section h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--gray);
    line-height: 1.35;
    margin-bottom: 10px;
}

.bd-date {
    font-size: 13px;
    color: var(--gray-text);
    margin-bottom: 0;
}

/* ============================================================
   FEATURE IMAGE
   ============================================================ */

.bd-feature-img {
    width: 100%;
    margin: 24px 0 32px;
    border-radius: 12px;
    overflow: hidden;
}

.bd-feature-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* ============================================================
   MAIN GRID  (Sidebar + Content)
   ============================================================ */

.bd-grid {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 40px;
    align-items: start;
}

/* ============================================================
   QUICK NAVIGATE SIDEBAR
   ============================================================ */

.bd-quick-nav {
    position: sticky;
    top: 100px;
}

.bd-quick-nav h3 {
    /* font-family: var(--); */
    font-size: 20px;
    font-weight: 700;
    color: var(--gray);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray);
}

.bd-quick-nav ul {
    /* list-style: decimal; */
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    
}

.bd-quick-nav ul li {
    width: 100%;
        border-left: 2px solid var(--primary-blue);
    border-radius: 10px;
    margin-top: 4px;
}

/* .bd-quick-nav ul li a {
    display: block;
    font-size: 13px;
    font-family: var(--font-main);
    color: var(--gray-one);
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: var(--transition);
    line-height: 1.4;
} */
.bd-quick-nav ul li a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
padding:2px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;

    width: 100%;
    box-sizing: border-box;

    line-height: 1.4;
    max-height: 2.8em; /* EXACT 2 lines */
}
.bd-quick-nav ul li a.active{
    color: var(--gray-one);
    /* background: var(--light-blue); */
    /* border-left-color: var(--primary-blue); */
}
.bd-quick-nav ul li a:hover {
    color: var(--primary-blue);
    /* background: var(--light-blue); */
    border-left-color: var(--primary-blue);
}
/* ============================================================
   BLOG CONTENT AREA
   ============================================================ */

.bd-content > p {
    font-size: 16px;
    color: var(--gray-one);
    line-height: 1.5;
    margin-bottom: 28px;
    font-weight: 400;
}

/* ============================================================
   BLOG SECTION (each heading block)
   ============================================================ */

.bd-section {
    margin-bottom: 28px;
    scroll-margin-top: 90px;
}

.bd-section h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.bd-section p {
    font-size: 16px;
    color: var(--gray-one);
    line-height: 1.8;
    margin-bottom: 10px;
}

.bd-section ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bd-section ul li {
    font-size: 16px;
    color: var(--gray-one);
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.bd-section ul li::before {
    content: '🟡';
    font-size: 10px;
    position: absolute;
    left: 0;
    top: 4px;
}

/* Conclusion block */
.bd-conclusion {
    background: var(--light-gray);
    border-left: 4px solid var(--primary-blue);
    border-radius: 0 8px 8px 0;
    padding: 18px 20px;
    margin-top: 30px;
}

.bd-conclusion h2 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--gray);
    margin-bottom: 8px;
}

.bd-conclusion p {
    font-size: 13.5px;
    color: var(--gray-text);
    line-height: 1.8;
    margin: 0;
}

/* ============================================================
   RELATED BLOGS SECTION
   ============================================================ */

.bd-related {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid var(--border-color);
}

.bd-related h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--gray);
    margin-bottom: 22px;
}

.bd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Related Card */
.bd-related-card {
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
}

.bd-related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.bd-related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.bd-related-card:hover img {
    transform: scale(1.04);
    opacity: 0.9;
}

.bd-related-card-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 14px;
    border-radius: 10px;
}

.bd-related-card-label p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.45;
    font-family: var(--font-main);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 991px) {
    .bd-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .bd-quick-nav {
        position: static;
        background: var(--light-gray);
        border-radius: 10px;
        padding: 16px 20px;
    }

    .bd-quick-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .bd-quick-nav ul li a {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 5px 10px;
        border-radius: 4px;
        max-height: fit-content;
    }

    .bd-quick-nav ul li a:hover,
    .bd-quick-nav ul li a.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary-blue);
    }

    .bd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bd-title-section h1 {
        font-size: 24px;
    }

    .bd-feature-img img {
        height: 300px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .blog-details-wrapper {
        padding: 30px 16px 50px;
    }

    .bd-title-section h1 {
        font-size: 20px;
    }

    .bd-feature-img img {
        height: 220px;
    }

    .bd-related-grid {
        grid-template-columns: 1fr;
    }

    .bd-related h3 {
        font-size: 18px;
    }

    .bd-section h2 {
        font-size: 15px;
    }
}