/* ============================================================
   BLOG PAGE -  Design
   ============================================================ */

/* --- Blog Hero --- */
.blog-hero {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    background: #ffffff;
    overflow: hidden;
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 0%, rgba(5, 150, 105, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(5, 150, 105, 0.04) 0%, transparent 50%);
    z-index: 0;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(5, 150, 105, 0.08);
    border-radius: 24px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #059669;
}

.blog-hero-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: #059669;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.blog-hero h1 {
    font-size: 38px;
    font-weight: 800;
    color: #111827;
    line-height: 1.5;
    margin-bottom: 16px;
}

.blog-hero h1 span {
    color: #059669;
}

.blog-hero p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.8;
    max-width: 480px;
    margin: 0 auto;
}


/* --- Filter Bar --- */
.blog-filter-section {
    position: relative;
    background: #ffffff;
    padding-bottom: 10px;
}

.blog-filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
    background: #f9fafb;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
}

.filter-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.filter-tab:hover {
    color: #059669;
    background: rgba(5, 150, 105, 0.06);
}

.filter-tab.active {
    color: #ffffff;
    background: #059669;
    font-weight: 600;
}

.filter-search {
    position: relative;
    flex-shrink: 0;
}

.filter-search i {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #9ca3af;
    pointer-events: none;
}

.filter-search input {
    width: 220px;
    padding: 10px 40px 10px 16px;
    font-size: 13px;
    color: #374151;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
}

.filter-search input:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.08);
}

.filter-search input::placeholder {
    color: #d1d5db;
}


/* --- Featured Post --- */
.blog-featured-section {
    padding: 40px 0;
    background: #ffffff;
}

.blog-featured-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-featured-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
}

.blog-featured-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.featured-img {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 380px;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-featured-card:hover .featured-img img {
    transform: scale(1.05);
}

.featured-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.2) 100%);
    transition: opacity 0.3s ease;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: #059669;
    border-radius: 8px;
    letter-spacing: 0.02em;
}

.featured-body {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
	align-items: self-start;
	position: relative;
}

.featured-cat {
    margin-bottom: 16px;
}

.cat-tag {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    background: rgba(5, 150, 105, 0.08);
    border-radius: 8px;
}

.featured-body h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 14px;
	text-align: right;
}

.featured-body h2 a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-body h2 a:hover {
    color: #059669;
}

.featured-body > p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.9;
    margin-bottom: 24px;
	text-align: justify;
	position: relative;
}

.featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.featured-meta span {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-meta span i {
    font-size: 13px;
    color: #d1d5db;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #059669;
    text-decoration: none;
    transition: all 0.25s ease;
	position: absolute;
	left: 40px;
}

.featured-link:hover {
    color: #047857;
    gap: 10px;
}


/* --- Blog Grid --- */
.blog-grid-section {
    padding: 20px 0 80px;
    background: #f9fafb;
}

.blog-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --- Blog Card --- */
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

.blog-card-img {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.06);
}

.blog-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-card-img-overlay {
    opacity: 1;
}

.blog-card-cat {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(5, 150, 105, 0.9);
    border-radius: 8px;
    backdrop-filter: blur(8px);
}

.blog-card-body {
    padding: 22px 22px 24px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.blog-card-meta span {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-meta span i {
    font-size: 12px;
    color: #d1d5db;
}

.blog-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
	text-align: right;
}

 a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-body h3 a:hover {
    color: #059669;
}

.blog-card-body > p {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.8;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
	text-align: justify;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #059669;
    text-decoration: none;
    transition: all 0.25s ease;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
    width: 100%;
}

.blog-card-link:hover {
    color: #047857;
    gap: 10px;
}

/* --- Load More --- */
.blog-load-more {
    text-align: center;
    margin-top: 48px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-size: 14px;
    font-weight: 600;
    color: #059669;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.load-more-btn:hover {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.12);
}

.load-more-btn i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(3px);
}

/* --- Filter Animation --- */
.blog-card.hide-card {
    display: none;
}

.blog-card.show-card {
    animation: cardFadeIn 0.4s ease-out;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(15px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.blog-featured-card.hide-card {
    display: none;
}

.no-results-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    color: #9ca3af;
    font-size: 15px;
}

.no-results-msg i {
    display: block;
    font-size: 36px;
    color: #e5e7eb;
    margin-bottom: 16px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-featured-card {
        grid-template-columns: 1fr 1fr;
    }

    .featured-img {
        min-height: 320px;
    }

    .featured-body {
        padding: 28px 24px;
    }

    .featured-body h2 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 130px 0 50px;
    }

    .blog-hero h1 {
        font-size: 28px;
    }

    .blog-filter-bar {
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .filter-tabs {
        justify-content: center;
    }

    .filter-search {
        width: 100%;
    }

    .filter-search input {
        width: 100%;
    }

    .blog-featured-card {
        grid-template-columns: 1fr;
    }

    .featured-img {
        min-height: 220px;
    }

    .featured-body {
        padding: 24px 20px;
    }

    .featured-body h2 {
        font-size: 19px;
    }

    .featured-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .featured-link {
        align-self: flex-end;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .blog-grid-section {
        padding: 20px 0 60px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 120px 0 40px;
    }

    .blog-hero h1 {
        font-size: 24px;
    }

    .blog-hero p {
        font-size: 14px;
    }

    .filter-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .featured-body h2 {
        font-size: 17px;
    }

    .blog-card-body h3 {
        font-size: 15px;
    }
}


/* ============================================================
   BLOG DETAILS PAGE (blog-details.html) — Modern Redesign
   ============================================================ */

/* --- Hero --- */
.bd-hero {
    position: relative;
    padding: 160px 0 70px;
    text-align: center;
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf6 40%, #f9fafb 100%);
    overflow: hidden;
}

.bd-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 10%, rgba(5, 150, 105, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 80%, rgba(5, 150, 105, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.bd-hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bd-decor-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(5, 150, 105, 0.08);
}

.bd-decor-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -80px;
    animation: bdFloat 20s ease-in-out infinite;
}

.bd-decor-2 {
    width: 300px;
    height: 300px;
    bottom: -60px;
    left: -60px;
    animation: bdFloat 15s ease-in-out infinite reverse;
}

.bd-decor-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(5, 150, 105, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(5, 150, 105, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 80%);
}

@keyframes bdFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -15px); }
}

.bd-hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Breadcrumb */
.bd-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #9ca3af;
}

.bd-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bd-breadcrumb a:hover {
    color: #059669;
}

.bd-breadcrumb svg {
    color: #d1d5db;
    flex-shrink: 0;
}

.bd-breadcrumb span:last-child {
    color: #059669;
    font-weight: 600;
}

.bd-hero-cat {
    margin-bottom: 20px;
}

.bd-hero-cat .cat-tag {
    display: inline-block;
    padding: 6px 18px;
    font-size: 12px;
    font-weight: 700;
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 24px;
    letter-spacing: 0.02em;
}

.bd-hero h1 {
    font-size: 34px;
    font-weight: 800;
    color: #111827;
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.bd-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.bd-author-mini {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.bd-author-mini img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(5, 150, 105, 0.2);
}

.bd-author-mini span {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.bd-meta-dot {
    width: 4px;
    height: 4px;
    background: #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
}

.bd-meta-item {
    font-size: 13px;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bd-meta-item i {
    font-size: 13px;
    color: #9ca3af;
}


/* --- Content Section --- */
.bd-content-section {
    position: relative;
    padding: 60px 0 80px;
    background: #ffffff;
}

.bd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.bd-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}


/* --- Article --- */
.bd-article {
    min-width: 0;
}

/* Featured Image */
.bd-featured-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    aspect-ratio: 16 / 9;
}

.bd-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bd-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.08) 100%);
}


/* Article Body */
.bd-article-body {
    font-size: 15px;
    line-height: 2;
    color: #374151;
}

.bd-article-body p {
    margin-bottom: 24px;
    text-align: justify;
}

.bd-lead {
    font-size: 17px;
    line-height: 2;
    color: #374151;
    font-weight: 500;
    border-right: 4px solid #059669;
    padding-right: 20px;
    margin-bottom: 32px !important;
    background: rgba(5, 150, 105, 0.03);
    padding: 20px 24px 20px 16px;
    border-radius: 0 12px 12px 0;
}

.bd-article-body h2 {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    line-height: 1.6;
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
    text-align: right;
}

.bd-article-body h2:first-of-type {
    margin-top: 0;
}

.bd-article-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.6;
    margin: 28px 0 12px;
}


/* Info Box */
.bd-info-box {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(5, 150, 105, 0.05);
    border: 1px solid rgba(5, 150, 105, 0.12);
    border-radius: 14px;
    margin: 24px 0 28px;
    align-items: flex-start;
}

.bd-info-icon {
    flex-shrink: 0;
    color: #059669;
    margin-top: 2px;
}

.bd-info-content {
    font-size: 14px;
    line-height: 1.8;
    color: #374151;
    text-align: justify;
}

.bd-info-content strong {
    color: #059669;
    font-weight: 700;
}


/* Blockquote */
.bd-quote {
    position: relative;
    margin: 32px 0;
    padding: 28px 32px 24px;
    background: #f9fafb;
    border-radius: 16px;
    border-right: 4px solid #059669;
}

.bd-quote svg {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #059669;
}

.bd-quote p {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 2;
    margin-bottom: 12px !important;
    text-align: right !important;
}

.bd-quote cite {
    font-size: 13px;
    color: #9ca3af;
    font-style: normal;
    font-weight: 500;
    text-align: justify;
}


/* Checklist */
.bd-checklist {
    background: #f9fafb;
    border-radius: 16px;
    padding: 24px 28px;
    margin: 24px 0 28px;
}

.bd-checklist h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    text-align: right;
}

.bd-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bd-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.bd-checklist li:last-child {
    border-bottom: none;
}

.bd-checklist li svg {
    flex-shrink: 0;
}


/* Steps */
.bd-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0 32px;
}

.bd-step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.bd-step:hover {
    border-color: rgba(5, 150, 105, 0.2);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.06);
}

.bd-step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 12px;
}

.bd-step-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.6;
    text-align: right;
}

.bd-step-content p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 0 !important;
}


/* --- Tags & Share --- */
.bd-tags-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 28px 0;
    margin-top: 20px;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.bd-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bd-tags-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.bd-tags a {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.bd-tags a:hover {
    color: #059669;
    background: rgba(5, 150, 105, 0.08);
}

.bd-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bd-share-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.bd-share-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.bd-share-btn:hover {
    background: #059669;
    color: #ffffff;
    transform: translateY(-2px);
}


/* --- Post Navigation --- */
.bd-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.bd-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.bd-nav-item:hover {
    background: #ffffff;
    border-color: rgba(5, 150, 105, 0.15);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.bd-nav-item svg {
    flex-shrink: 0;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.bd-nav-item:hover svg {
    color: #059669;
}

.bd-nav-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.bd-nav-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bd-nav-next {
    text-align: left;
    flex-direction: row-reverse;
}


/* --- Author Card --- */
.bd-author-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f9fafb 100%);
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid rgba(5, 150, 105, 0.08);
    text-align: right;
}

.bd-author-avatar {
    flex-shrink: 0;
}

.bd-author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid rgba(5, 150, 105, 0.15);
}

.bd-author-info {
    flex: 1;
}

.bd-author-label {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 4px;
}

.bd-author-info h3 {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.5;
}

.bd-author-info p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.9;
    margin-bottom: 12px;
}

.bd-author-social {
    display: flex;
    gap: 8px;
}

.bd-author-social a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    color: #6b7280;
    background: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.25s ease;
}

.bd-author-social a:hover {
    color: #ffffff;
    background: #059669;
}


/* --- Comments --- */
.bd-comments {
    margin-bottom: 40px;
}

.bd-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 28px;
    line-height: 1.5;
}

.bd-section-title svg {
    color: #059669;
    flex-shrink: 0;
}

.bd-comment {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid #f3f4f6;
    transition: border-color 0.3s ease;
}

.bd-comment:hover {
    border-color: #e5e7eb;
}

.bd-comment-reply {
    margin-right: 48px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.bd-comment-avatar {
    flex-shrink: 0;
}

.bd-comment-avatar img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.bd-comment-body {
    flex: 1;
    min-width: 0;
}

.bd-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bd-comment-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.bd-comment-date {
    font-size: 12px;
    color: #9ca3af;
}

.bd-comment-body > p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.9;
    margin-bottom: 10px;
}

.bd-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    background: rgba(5, 150, 105, 0.08);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.bd-reply-btn:hover {
    background: #059669;
    color: #ffffff;
}

.bd-reply-btn svg {
    flex-shrink: 0;
}


/* --- Comment Form --- */
.bd-comment-form {
    margin-bottom: 20px;
}

.bd-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.bd-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bd-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-align: right;
}

.bd-form-group input,
.bd-form-group textarea {
    padding: 14px 18px;
    font-size: 14px;
    color: #374151;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
}

.bd-form-group input:focus,
.bd-form-group textarea:focus {
    border-color: #059669;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.08);
}

.bd-form-group input::placeholder,
.bd-form-group textarea::placeholder {
    color: #c4c4c4;
}

.bd-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: #059669;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: flex-start;
    font-family: inherit;
}

.bd-submit-btn:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.25);
}

.bd-submit-btn svg {
    transition: transform 0.3s ease;
}

.bd-submit-btn:hover svg {
    transform: translate(-3px, 3px);
}


/* --- Sidebar --- */
.bd-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bd-widget {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 24px;
    transition: box-shadow 0.3s ease;
}

.bd-widget:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.bd-widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f3f4f6;
    line-height: 1.5;
}

.bd-widget-title svg {
    color: #059669;
    flex-shrink: 0;
}


/* Search Widget */
.bd-search-widget {
    padding: 16px;
}

.bd-search-box {
    position: relative;
}

.bd-search-box input {
    width: 100%;
    padding: 14px 50px 14px 18px;
    font-size: 14px;
    color: #374151;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.bd-search-box input:focus {
    border-color: #059669;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.08);
}

.bd-search-box input::placeholder {
    color: #c4c4c4;
}

.bd-search-box button {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    transition: color 0.2s ease;
}

.bd-search-box button:hover {
    color: #059669;
}


/* TOC Widget */
.bd-toc-widget {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-color: rgba(5, 150, 105, 0.12);
}

.bd-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bd-toc-list li {
    border-bottom: 1px solid rgba(5, 150, 105, 0.06);
}

.bd-toc-list li:last-child {
    border-bottom: none;
}

.bd-toc-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.bd-toc-list li a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.bd-toc-list li a:hover {
    color: #059669;
    background: rgba(5, 150, 105, 0.06);
}

.bd-toc-list li a:hover::before {
    background: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}


/* Recent Posts Widget */
.bd-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bd-recent-post {
    display: flex;
    gap: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    padding: 8px;
    border-radius: 12px;
    margin: -8px;
}

.bd-recent-post:hover {
    background: #f9fafb;
}

.bd-recent-img {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
}

.bd-recent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bd-recent-post:hover .bd-recent-img img {
    transform: scale(1.08);
}

.bd-recent-info {
    flex: 1;
    min-width: 0;
}

.bd-recent-info h5 {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.6;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
    text-align: right;
}

.bd-recent-post:hover .bd-recent-info h5 {
    color: #059669;
}

.bd-recent-info span {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bd-recent-info span i {
    font-size: 11px;
    color: #d1d5db;
}


/* Categories Widget */
.bd-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bd-cat-list li {
    border-bottom: 1px solid #f3f4f6;
}

.bd-cat-list li:last-child {
    border-bottom: none;
}

.bd-cat-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 8px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.bd-cat-list li a span:first-child {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: color 0.2s ease;
}

.bd-cat-list li a:hover span:first-child {
    color: #059669;
}

.bd-cat-count {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.bd-cat-list li a:hover .bd-cat-count {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}


/* Tags Cloud Widget */
.bd-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bd-tag-cloud a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.bd-tag-cloud a:hover {
    color: #ffffff;
    background: #059669;
}


/* CTA Widget */
.bd-cta-widget {
    padding: 0;
    border: none;
    overflow: hidden;
}

.bd-cta-card {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.bd-cta-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.bd-cta-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.bd-cta-icon {
    color: rgba(255,255,255,0.9);
    margin-bottom: 14px;
}

.bd-cta-card h4 {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.5;
}

.bd-cta-card p {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: 20px;
}

.bd-cta-link {
    display: inline-block;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 700;
    color: #059669;
    background: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.bd-cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}


/* --- Related Posts Section --- */
.bd-related-section {
    padding: 60px 0 80px;
    background: #f9fafb;
}

.bd-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.bd-related-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
}

.bd-related-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #059669;
    text-decoration: none;
    transition: all 0.25s ease;
}

.bd-related-all:hover {
    gap: 10px;
}

.bd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bd-related-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bd-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.07);
}

.bd-related-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.bd-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bd-related-card:hover .bd-related-img img {
    transform: scale(1.06);
}

.bd-related-body {
    padding: 22px;
    text-align: right;
}

.bd-related-cat {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: rgba(5, 150, 105, 0.08);
    border-radius: 6px;
    margin-bottom: 10px;
}

.bd-related-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.bd-related-card:hover .bd-related-body h3 {
    color: #059669;
}

.bd-related-meta {
    display: flex;
    gap: 16px;
}

.bd-related-meta span {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bd-related-meta span i {
    font-size: 12px;
    color: #d1d5db;
}


/* --- Reading Progress Bar --- */
.bd-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #059669, #34d399);
    z-index: 99999;
    transition: width 0.1s linear;
}


/* ============================================================
   BLOG DETAILS RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .bd-layout {
        grid-template-columns: 1fr 300px;
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .bd-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bd-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-top: 48px;
    }

    .bd-search-widget,
    .bd-cta-widget {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .bd-hero {
        padding: 130px 0 50px;
    }

    .bd-hero h1 {
        font-size: 26px;
    }

    .bd-hero-meta {
        gap: 10px;
    }

    .bd-featured-img {
        border-radius: 14px;
        margin-bottom: 28px;
    }

    .bd-article-body h2 {
        font-size: 19px;
    }

    .bd-lead {
        font-size: 15px;
    }

    .bd-post-nav {
        grid-template-columns: 1fr;
    }

    .bd-author-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 24px;
    }

    .bd-author-social {
        justify-content: center;
    }

    .bd-comment-reply {
        margin-right: 20px;
    }

    .bd-related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bd-related-header h2 {
        font-size: 22px;
    }

    .bd-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bd-hero {
        padding: 110px 0 40px;
    }

    .bd-hero h1 {
        font-size: 22px;
    }

    .bd-hero-content {
        padding: 0 16px;
    }

    .bd-breadcrumb {
        font-size: 12px;
        gap: 6px;
    }

    .bd-container {
        padding: 0 16px;
    }

    .bd-content-section {
        padding: 40px 0 60px;
    }

    .bd-tags-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .bd-form-row {
        grid-template-columns: 1fr;
    }

    .bd-comment {
        padding: 16px;
        gap: 12px;
    }

    .bd-comment-avatar img {
        width: 40px;
        height: 40px;
    }

    .bd-comment-reply {
        margin-right: 12px;
    }

    .bd-info-box {
        flex-direction: column;
        gap: 10px;
    }

    .bd-step {
        padding: 16px;
        gap: 14px;
    }
}


/* --- Scroll Reveal Animations --- */
.bd-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bd-animate.bd-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for steps */
.bd-step.bd-animate:nth-child(2) { transition-delay: 0.08s; }
.bd-step.bd-animate:nth-child(3) { transition-delay: 0.16s; }
.bd-step.bd-animate:nth-child(4) { transition-delay: 0.24s; }

/* TOC active state */
.bd-toc-list li a.active {
    color: #059669;
    background: rgba(5, 150, 105, 0.06);
    font-weight: 700;
}

.bd-toc-list li a.active::before {
    background: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* --- Body padding for fixed header --- */
.boxed_wrapper {
  padding-top: 0px !important;
}