/* ================================================
   BLOG SINGLE PAGE - TeroTAM
   Font: Montserrat | Colors: #0C1C44, #FF8214
   ================================================ */

/* ---------- Global Overrides ---------- */
.blog-single-page,
.blog-single-page *,
.blog-single-page *::before,
.blog-single-page *::after { box-sizing: border-box; }
.blog-single-page {
    font-family: 'Montserrat', sans-serif;
    max-width: 100% !important;
    margin-left: 0 !important; margin-right: 0 !important;
    margin-block-start: 0 !important;
    width: 100%; overflow-x: clip;
}
.blog-single-page section {
    max-width: 100% !important;
    margin-left: 0 !important; margin-right: 0 !important;
}
.bs-progress-bar { max-width: 100% !important; margin: 0 !important; }

/* ---------- Container ---------- */
.blog-single-page .blog-container {
    max-width: 1200px; margin: 0 auto; padding: 0 30px; width: 100%;
}

/* ---------- Progress Bar ---------- */
.bs-progress-bar {
    position: fixed; top: 0; left: 0; height: 3px;
    background: linear-gradient(90deg, #FF8214, #FF9E47);
    width: 0; z-index: 9999; transition: width .1s linear;
    box-shadow: 0 0 8px rgba(255,130,20,0.4);
}

/* ---------- Breadcrumbs ---------- */
.blog-single-page .blog-breadcrumbs {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; margin: 0 0 28px 0; position: relative; z-index: 2;
}
.blog-single-page .blog-breadcrumbs a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color .3s; }
.blog-single-page .blog-breadcrumbs a:hover { color: #FF8214; }
.blog-single-page .blog-bread-sep { color: rgba(255,255,255,0.4); display: flex; }
.blog-single-page .blog-bread-current { color: #FF8214; font-weight: 500; }

/* ================================
   HERO
   ================================ */
.bs-hero {
    background: linear-gradient(135deg, #0C1C44 0%, #142952 60%, #0C1C44 100%);
    padding: 60px 0 80px; position: relative; overflow: hidden;
}
.bs-hero-bg-pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,130,20,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,130,20,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.bs-hero .blog-container { position: relative; z-index: 2; }
.bs-hero-content { max-width: 100%; }
.bs-hero-meta {
    display: flex; align-items: center; gap: 16px;
    margin: 0 0 24px 0; flex-wrap: wrap; position: relative; z-index: 1;
}
.bs-hero-meta .blog-category-badge {
    position: static !important; display: inline-block;
    background: #FF8214; color: #fff !important;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    padding: 5px 14px; border-radius: 0; letter-spacing: 0.5px; text-decoration: none;
}
.bs-hero-date, .bs-hero-author, .bs-hero-read-time {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: rgba(255,255,255,0.65);
}
.bs-hero-date svg, .bs-hero-author svg, .bs-hero-read-time svg { color: rgba(255,255,255,0.5); }
.bs-hero-title {
    font-size: 36px; font-weight: 700; color: #fff !important;
    line-height: 1.3; margin: 0 0 16px 0; max-width: 820px;
}
.bs-hero-excerpt {
    font-size: 16px; color: rgba(255,255,255,0.7);
    max-width: 700px; line-height: 1.7; margin: 0;
}

/* ================================
   FEATURED IMAGE
   ================================ */
.bs-featured-image {
    margin-top: -40px; padding: 0 0 40px; position: relative; z-index: 3;
}
.bs-image-frame {
    border-radius: 0; overflow: hidden;
    box-shadow: 0 20px 60px rgba(12,28,68,0.15); max-width: 900px;
}
.bs-main-image { width: 100%; height: auto; display: block; }

/* ================================
   CONTENT + SIDEBAR
   ================================ */
.bs-content-section { padding: 40px 0 60px; }
.bs-content-layout {
    display: grid; grid-template-columns: 1fr 320px;
    gap: 50px; align-items: start;
}

/* ---------- TOC ---------- */
.bs-toc {
    background: #F8F9FE; border-radius: 0;
    border-left: 4px solid #FF8214; margin-bottom: 36px;
    overflow: hidden; position: relative;
}
.bs-toc-header {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 20px; font-size: 15px; font-weight: 600;
    color: #0C1C44; cursor: pointer;
}
.bs-toc-header svg:first-child { color: #0C1C44; flex-shrink: 0; }
.bs-toc-header > span { flex: 1; }
.bs-toc-toggle {
    background: #FFFFFF; border: 1px solid #e2e5ea; cursor: pointer; color: #0C1C44;
    padding: 6px; transition: transform .3s, background .3s; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px; width: 28px; height: 28px; outline: none;
}
.bs-toc-toggle:focus, .bs-toc-toggle:active {
    outline: none; box-shadow: none; border-color: #FF8214; background: #FFF5EB;
}
.bs-toc-toggle:hover {
    background: #FFF5EB; border-color: #FF8214; color: #FF8214;
}
.bs-toc-toggle svg { color: inherit; }
.bs-toc.collapsed .bs-toc-toggle { transform: rotate(-90deg); }
.bs-toc-list {
    padding: 0 20px 16px; max-height: none;
    transition: max-height .4s ease, padding .4s ease, opacity .3s;
    overflow: hidden;
}
.bs-toc.collapsed .bs-toc-list { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.bs-toc-list ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.bs-toc-list ol li { counter-increment: toc; margin-bottom: 6px; }
.bs-toc-list ol li a {
    display: flex; align-items: baseline; gap: 8px;
    font-size: 13px; color: #555; text-decoration: none;
    padding: 6px 0; transition: all .3s; line-height: 1.5;
}
.bs-toc-list ol li a::before {
    content: counter(toc, decimal-leading-zero) ".";
    font-weight: 600; color: #FF8214; font-size: 12px;
    min-width: 24px; flex-shrink: 0;
}
.bs-toc-list ol li a:hover { color: #FF8214; }
.bs-toc-list ol li a.active { color: #FF8214; font-weight: 600; }

/* ---------- ARTICLE CONTENT ---------- */
.bs-article-content {
    font-size: 15px; color: #444; line-height: 1.85;
    overflow-wrap: break-word; word-wrap: break-word;
}
.bs-article-content h2 { font-size: 26px; font-weight: 700; color: #0C1C44; margin: 40px 0 16px; line-height: 1.3; padding-top: 20px; }
.bs-article-content h3 { font-size: 20px; font-weight: 700; color: #0C1C44; margin: 30px 0 12px; line-height: 1.35; }
.bs-article-content h4 { font-size: 17px; font-weight: 600; color: #0C1C44; margin: 24px 0 10px; }
.bs-article-content p { margin-bottom: 18px; }
.bs-article-content a { color: #FF8214; font-weight: 500; text-decoration: underline; }
.bs-article-content a:hover { color: #0C1C44; }
.bs-article-content img { max-width: 100%; height: auto; border-radius: 0; margin: 20px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.bs-article-content ul, .bs-article-content ol { margin: 16px 0; padding-left: 24px; }
.bs-article-content li { margin-bottom: 8px; }
.bs-article-content blockquote {
    border-left: 4px solid #FF8214; background: #FFF8F0;
    padding: 20px 24px; margin: 24px 0; border-radius: 0;
    font-style: italic; color: #333;
}
.bs-article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.bs-article-content th, .bs-article-content td { padding: 12px 16px; text-align: left; border: 1px solid #e8e8e8; }
.bs-article-content th { background: #0C1C44; color: #fff; font-weight: 600; }
.bs-article-content tr:nth-child(even) td { background: #F8F9FE; }

/* ---------- TAGS ---------- */
.bs-tags {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-top: 36px; padding-top: 24px; border-top: 1px solid #eee;
}
.bs-tags-label { font-size: 13px; font-weight: 600; color: #0C1C44; }
.bs-tag {
    font-size: 12px; padding: 5px 14px; border-radius: 0;
    background: #F8F9FE; color: #555; text-decoration: none;
    border: 1px solid #e2e5ea; transition: all .3s;
}
.bs-tag:hover { border-color: #FF8214; color: #FF8214; background: rgba(255,130,20,0.04); }

/* ---------- AUTHOR BOX ---------- */
.bs-author-box {
    display: flex; gap: 20px; align-items: center;
    margin-top: 36px; padding: 28px;
    background: #F8F9FE; border-left: 4px solid #FF8214;
}
.bs-author-avatar { flex-shrink: 0; }
.bs-author-avatar img {
    width: 80px; height: 80px; border-radius: 50%;
    object-fit: cover; border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.bs-author-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #999; margin-bottom: 4px; display: block; }
.bs-author-name { font-size: 18px; font-weight: 700; color: #0C1C44; margin: 0 0 6px 0; }
.bs-author-bio { font-size: 13px; color: #666; line-height: 1.6; margin: 0; }

/* ---------- SHARE ---------- */
.bs-share {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    margin-top: 28px; padding: 24px 0;
    border-top: 1px solid #eee; border-bottom: 1px solid #eee;
}
.bs-share-label { font-size: 13px; font-weight: 600; color: #0C1C44; }
.bs-share-buttons { display: flex; gap: 8px; }
.bs-share-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 0;
    background: #F8F9FE; border: 1px solid #e2e5ea;
    color: #555; text-decoration: none; transition: all .3s; cursor: pointer;
}
.bs-share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.bs-share-linkedin:hover { background: #0077B5; color: #fff; border-color: #0077B5; }
.bs-share-twitter:hover { background: #000; color: #fff; border-color: #000; }
.bs-share-facebook:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.bs-share-copy:hover { background: #FF8214; color: #fff; border-color: #FF8214; }
.bs-share-copy.copied { background: #22c55e; border-color: #22c55e; color: #fff; }

/* ---------- POST NAVIGATION ---------- */
.bs-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.bs-post-nav-link {
    display: flex; align-items: center; gap: 14px; padding: 20px;
    border-radius: 0; border: 1px solid #e2e5ea; text-decoration: none;
    transition: all .3s; background: #fff;
}
.bs-post-nav-link:hover { border-color: #FF8214; box-shadow: 0 4px 16px rgba(255,130,20,0.1); }
.bs-post-next { text-align: right; justify-content: flex-end; }
.bs-post-nav-arrow { display: flex; align-items: center; color: #FF8214; flex-shrink: 0; }
.bs-post-nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #999; display: block; margin-bottom: 4px; }
.bs-post-nav-title { font-size: 14px; font-weight: 600; color: #0C1C44; display: block; line-height: 1.4; }

/* ================================
   SIDEBAR
   ================================ */
.bs-sidebar {
    position: -webkit-sticky; position: sticky; top: 30px;
    min-width: 0; align-self: start;
}
.bs-sidebar-widget { margin-bottom: 28px; }
.bs-sidebar-heading {
    font-size: 16px; font-weight: 700; color: #0C1C44;
    margin: 0 0 16px 0; padding-bottom: 10px; border-bottom: 2px solid #FF8214;
}

/* Sidebar Search */
.bs-sidebar-search { display: flex; border: 1px solid #e2e5ea; overflow: hidden; }
.blog-single-page .bs-sidebar-search-input {
    flex: 1; padding: 10px 14px !important; border: none !important;
    font-size: 13px !important; font-family: 'Montserrat', sans-serif;
    outline: none; background: #F8F9FE !important;
}
.blog-single-page .bs-sidebar-search-btn {
    padding: 10px 14px !important; background: #0C1C44 !important;
    border: none !important; color: #fff !important; cursor: pointer;
    display: flex !important; align-items: center !important; transition: background .3s;
}
.blog-single-page .bs-sidebar-search-btn:hover { background: #FF8214 !important; }

/* Sidebar CTA */
.bs-sidebar-cta {
    background: linear-gradient(135deg, #0C1C44, #142952);
    border-radius: 0; padding: 32px 24px;
    text-align: center; margin-bottom: 28px;
}
.bs-sidebar-cta-icon { margin-bottom: 16px; }
.bs-sidebar-cta h3 { font-size: 18px; font-weight: 700; color: #fff !important; margin: 0 0 10px 0; line-height: 1.3; }
.bs-sidebar-cta p { font-size: 13px; color: rgba(255,255,255,0.65); margin: 0 0 20px 0; line-height: 1.6; }

/* Sidebar Categories */
.bs-sidebar-categories { list-style: none; padding: 0; margin: 0; max-height: 400px; overflow-y: auto; }
.bs-sidebar-categories li { border-bottom: 1px solid #f0f0f0; }
.bs-sidebar-categories li:last-child { border-bottom: none; }
.bs-sidebar-categories a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; font-size: 13px; color: #555; text-decoration: none; transition: all .3s;
}
.bs-sidebar-categories a:hover { color: #FF8214; padding-left: 8px; }
.bs-cat-count {
    font-size: 11px; background: #F8F9FE; color: #888;
    padding: 2px 8px; min-width: 28px; text-align: center;
}

/* Sidebar Share */
.bs-sidebar-share-btns { display: flex; gap: 8px; }

/* ================================
   BUTTONS (shared)
   ================================ */
.blog-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 24px; border-radius: 0;
    font-size: 14px; font-weight: 600; text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    transition: all .3s; cursor: pointer; border: 2px solid transparent;
}
.blog-single-page .blog-btn-orange,
.blog-single-page .blog-btn-orange:link,
.blog-single-page .blog-btn-orange:visited {
    background: #FF8214 !important; color: #fff !important; border-color: #FF8214 !important;
}
.blog-single-page .blog-btn-orange:hover {
    background: #e6720e !important; border-color: #e6720e !important; color: #fff !important;
    transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,130,20,0.3);
}
.blog-btn-full { width: 100%; justify-content: center; }
.blog-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.blog-btn-outline:hover { border-color: #FF8214; color: #FF8214; }
.blog-btn-outline-dark { background: transparent; color: #0C1C44; border: 2px solid #0C1C44; }
.blog-btn-outline-dark:hover { background: #0C1C44; color: #fff; }
.blog-single-page .blog-read-more {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: #FF8214;
    text-decoration: none; transition: gap .3s, color .3s;
}
.blog-single-page .blog-read-more:hover { color: #0C1C44; gap: 12px; }

/* ================================
   RELATED POSTS SECTION
   ================================ */
.bs-related-section { padding: 70px 0; background: #F8F9FE; }
.bs-related-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px;
}
.bs-related-title { font-size: 30px; font-weight: 700; color: #0C1C44; margin: 0; }
.bs-related-title span { color: #FF8214; }
.bs-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.bs-related-card {
    background: #fff; border-radius: 0;
    box-shadow: 0 4px 20px rgba(12,28,68,0.06);
    overflow: hidden; transition: all .4s cubic-bezier(.25,.8,.25,1);
    display: flex; flex-direction: column;
}
.bs-related-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(12,28,68,0.12); }
.bs-related-card-image { position: relative; overflow: hidden; }
.bs-related-card-image-link { display: block; }
.bs-related-card-img {
    width: 100%; aspect-ratio: 16/10; object-fit: cover;
    display: block; transition: transform .6s cubic-bezier(.25,.8,.25,1);
}
.bs-related-card:hover .bs-related-card-img { transform: scale(1.05); }
.bs-related-card-img-placeholder {
    width: 100%; aspect-ratio: 16/10;
    display: flex; align-items: center; justify-content: center; background: #f0f2f5;
}
.bs-related-card-overlay {
    position: absolute; inset: 0; background: rgba(12,28,68,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .4s;
}
.bs-related-card:hover .bs-related-card-overlay { opacity: 1; }
.bs-related-card-overlay-text {
    color: #fff; font-size: 14px; font-weight: 600;
    padding: 10px 24px; border: 2px solid #FF8214; transition: background .3s;
}
.bs-related-card:hover .bs-related-card-overlay-text { background: #FF8214; }
.bs-related-card-image .blog-category-badge {
    position: absolute; top: 14px; left: 14px;
}
.bs-related-card-body {
    padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1;
}
.bs-related-card-meta {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: #888; margin-bottom: 12px;
}
.bs-related-card-date { display: flex; align-items: center; gap: 5px; color: #FF8214; font-weight: 500; }
.bs-related-card-date svg { color: #FF8214; }
.bs-related-card-sep { color: #ddd; }
.bs-related-card-author { color: #888; }
.bs-related-card-title { font-size: 17px; font-weight: 700; line-height: 1.4; margin: 0 0 14px 0; }
.bs-related-card-title a { color: #0C1C44; text-decoration: none; transition: color .3s; }
.bs-related-card-title a:hover { color: #FF8214; }

/* ================================
   CTA (bottom)
   ================================ */
.blog-single-page .blog-cta-section {
    background: linear-gradient(135deg, #0C1C44 0%, #142952 100%);
    padding: 80px 0; position: relative; overflow: hidden; text-align: center;
}
.blog-single-page .blog-cta-bg-pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 10% 50%, rgba(255,130,20,0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 50%, rgba(255,130,20,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.blog-single-page .blog-cta-content { position: relative; z-index: 2; }
.blog-single-page .blog-cta-title { font-size: 34px; font-weight: 700; color: #fff !important; margin: 0 0 14px 0; }
.blog-single-page .blog-cta-title span { color: #FF8214; }
.blog-single-page .blog-cta-desc { font-size: 15px; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 30px; line-height: 1.7; }
.blog-single-page .blog-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.blog-single-page .blog-cta-buttons .blog-btn-outline { color: #fff; border-color: rgba(255,255,255,0.3); }
.blog-single-page .blog-cta-buttons .blog-btn-outline:hover { border-color: #FF8214; color: #FF8214; background: transparent; }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .bs-content-layout { grid-template-columns: 1fr 260px; gap: 30px; }
    .bs-hero-title { font-size: 30px; }
    .bs-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .bs-content-layout { grid-template-columns: 1fr; }
    .bs-sidebar { position: static; }
    .bs-hero { padding: 40px 0 50px; }
    .bs-hero-title { font-size: 24px; }
    .bs-hero-excerpt { font-size: 14px; }
    .bs-featured-image { margin-top: -20px; }
    .bs-post-nav { grid-template-columns: 1fr; }
    .bs-related-header { flex-direction: column; gap: 16px; align-items: flex-start; }
    .bs-related-title { font-size: 24px; }
    .bs-article-content h2 { font-size: 22px; }
    .bs-article-content h3 { font-size: 18px; }
    .bs-related-grid { grid-template-columns: 1fr; max-width: 480px; }
    .blog-single-page .blog-cta-title { font-size: 26px; }
    .blog-single-page .blog-container { padding: 0 20px; }
    .bs-author-box { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .bs-hero-meta { gap: 10px; }
    .bs-share { flex-direction: column; align-items: flex-start; }
    .bs-sidebar-cta { padding: 24px 18px; }
    .bs-sidebar-cta h3 { font-size: 16px; }
    .bs-hero-title { font-size: 22px; }
    .blog-single-page .blog-cta-buttons { flex-direction: column; align-items: center; }
}
