/* ==============================================
   Dentostack Blog Styles
   Matches ds_website design system:
     Primary:    #074B7B / #092D4D
     Accent:     #A5B039
     Bg light:   #f0f6fc / #f0f5fa
     Text body:  #5a6d80
     Text dark:  #092D4D
================================================ */

/* ---- Blog Hero Band ---- */
.blog-hero {
    background: linear-gradient(135deg, #074B7B 0%, #092D4D 100%);
    padding: 72px 0 56px;
    color: #fff;
}

.blog-hero h1 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.blog-hero p {
    color: rgba(255, 255, 255, 0.80);
    font-size: 1rem;
    margin: 0;
}

.blog-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 18px;
}

.blog-hero .breadcrumb-item,
.blog-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    text-decoration: none;
}

.blog-hero .breadcrumb-item a:hover {
    color: #fff;
}

.blog-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.55);
}

.blog-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* ---- Blog Section Spacing ---- */
.blog-section {
    padding: 52px 0 72px;
    background: #f8fafb;
    margin-top: 0;
}

/* ---- Article Card ---- */
.blog-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(9, 45, 77, 0.06);
    border: 1px solid #e8eef4;
    margin-bottom: 28px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    width: 100%;
    height: auto;
}

.blog-card:hover {
    box-shadow: 0 8px 28px rgba(9, 45, 77, 0.12);
    transform: translateY(-3px);
}

.blog-card .blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: static;
    display: block;
}

.blog-card-body {
    padding: 22px 24px 20px;
}

.blog-card-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #092D4D;
    line-height: 1.45;
    margin-bottom: 10px;
    transition: color 0.2s;
    text-decoration: none !important;
}

.blog-card-title:hover {
    color: #074B7B;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #5a6d80;
    line-height: 1.65;
    margin-bottom: 16px;
}

.blog-card-meta {
    font-size: 0.82rem;
    color: #9aa8b8;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---- Tag Badge ---- */
.blog-tag-badge {
    display: inline-block;
    background: #e8f0fe;
    color: #074B7B;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-right: 5px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.blog-tag-badge:hover {
    background: #074B7B;
    color: #fff;
}

.blog-tag-badge-outline {
    display: inline-block;
    border: 1.5px solid #c8d9e8;
    color: #074B7B;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 13px;
    border-radius: 20px;
    margin-right: 6px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.blog-tag-badge-outline:hover {
    background: #074B7B;
    color: #fff;
    border-color: #074B7B;
}

/* ---- Author Avatar (initials) ---- */
.author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #074B7B, #092D4D);
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.author-avatar-lg {
    width: 62px;
    height: 62px;
    font-size: 1.2rem;
}

/* ---- Sidebar ---- */
.sidebar-widget {
    background: #fff;
    border: 1px solid #e8eef4;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(9, 45, 77, 0.05);
}

.sidebar-widget h5 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #092D4D;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #074B7B;
}

.sidebar-featured-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-featured-list li {
    padding: 9px 0;
    border-bottom: 1px solid #f0f5fa;
}

.sidebar-featured-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-featured-list a {
    font-size: 0.88rem;
    color: #3a4a5c;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-featured-list a:hover {
    color: #074B7B;
}

/* ---- Article Hero ---- */
.article-hero {
    background: linear-gradient(135deg, #074B7B 0%, #092D4D 100%);
    padding: 72px 0 56px;
    color: #fff;
}

.article-hero h1 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 1.9rem;
    line-height: 1.35;
    margin-bottom: 0;
}

.article-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 18px;
}

.article-hero .breadcrumb-item,
.article-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    text-decoration: none;
}

.article-hero .breadcrumb-item a:hover { color: #fff; }
.article-hero .breadcrumb-item.active { color: rgba(255, 255, 255, 0.5); }
.article-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.4); }

.article-meta {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    margin-top: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---- Article Body ---- */
.article-body {
    font-size: 1rem;
    line-height: 1.82;
    color: #3a4a5c;
    font-family: "Inter", sans-serif;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
    display: block;
}

.article-body iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
    display: block;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: #092D4D;
    line-height: 1.3;
}

.article-body h1 { font-size: 1.75rem; margin-top: 40px; margin-bottom: 12px; }
.article-body h2 { font-size: 1.45rem; margin-top: 36px; margin-bottom: 10px; }
.article-body h3 { font-size: 1.2rem;  margin-top: 30px; margin-bottom: 8px; }
.article-body h4 { font-size: 1.05rem; margin-top: 24px; margin-bottom: 8px; }

.article-body p {
    margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body blockquote {
    border-left: 4px solid #074B7B;
    padding: 8px 16px;
    margin: 20px 0;
    color: #5a6d80;
    font-style: italic;
    background: #f0f6fc;
    border-radius: 0 8px 8px 0;
}

.article-body pre,
.article-body code {
    background: #f0f6fc;
    border: 1px solid #e8eef4;
    border-radius: 6px;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.88rem;
    padding: 2px 6px;
}

.article-body pre {
    padding: 14px 16px;
    overflow-x: auto;
    margin: 16px 0;
}

/* ---- Author Bio Card ---- */
.author-bio-card {
    background: #f0f6fc;
    border: 1px solid #c8d9e8;
    border-radius: 14px;
    padding: 24px;
    margin-top: 40px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.author-bio-card .author-info h6 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #092D4D;
    margin-bottom: 2px;
}

.author-bio-card .author-info .designation {
    font-size: 0.8rem;
    color: #074B7B;
    font-weight: 600;
    margin-bottom: 8px;
}

.author-bio-card .author-info p {
    font-size: 0.87rem;
    color: #5a6d80;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ---- Author External Profile Link ---- */
.author-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 4px 13px;
    border-radius: 20px;
    font-family: "Poppins", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: #074B7B;
    background: #dce9f5;
    border: 1px solid #b8cfe0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.author-profile-link:hover {
    background: #074B7B;
    color: #fff;
    border-color: #074B7B;
}

/* ---- Primary button (matching ds_website) ---- */
.blog-btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #074B7B, #092D4D);
    color: #fff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 11px 26px;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.blog-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(7, 75, 123, 0.3);
    color: #fff;
    text-decoration: none;
}

/* ---- Pagination ---- */
.blog-pagination .page-link {
    color: #074B7B;
    border-color: #d0dde8;
    font-size: 0.9rem;
    padding: 7px 14px;
}

.blog-pagination .page-item.active .page-link {
    background: #074B7B;
    border-color: #074B7B;
    color: #fff;
}

.blog-pagination .page-link:hover {
    background: #f0f6fc;
    color: #074B7B;
}

/* ---- Accent dot used in hero badge ---- */
.blog-accent {
    color: #A5B039;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .blog-hero h1,
    .article-hero h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .blog-card .blog-card-img { height: 160px; }
    .author-bio-card { flex-direction: column; }
    .blog-hero, .article-hero { padding: 52px 0 40px; }
}

@media (max-width: 992px) {
    .blog-card { width: 100%; height: auto; }
}
