/* =============================================
   FONDOSTECH BLOG DETAIL / DESCRIPTION PAGE STYLES
   ============================================= */

/* ---------------------------------------------
   1. HERO HEADER SECTION
   --------------------------------------------- */
.article-hero-section {
    background: radial-gradient(circle at 50% -20%, #dbeafe 0%, #f5faff 55%, #ffffff 100%);
    padding: 7.5rem 0 3.5rem;
    position: relative;
    border-bottom: 1px solid #cee4fd;
}

.article-breadcrumb {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.article-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
    color: #086ad8;
}

.article-category-badge {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    background: rgba(8, 106, 216, 0.08);
    border: 1px solid rgba(8, 106, 216, 0.2);
    border-radius: 2rem;
    color: #086ad8;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.article-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.22;
    color: #0f172a;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.article-hero-subtitle {
    font-size: 1.1875rem;
    line-height: 1.65;
    color: #475569;
    max-width: 820px;
    margin-bottom: 2rem;
}

/* Author & Meta Row */
.article-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid #dbeafe;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.author-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #086ad8, #38bdf8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.0625rem;
    box-shadow: 0 4px 14px rgba(8, 106, 216, 0.25);
}

.author-name-title {
    font-size: 0.9875rem;
    font-weight: 700;
    color: #0f172a;
}

.article-meta-date {
    font-size: 0.84375rem;
    color: #64748b;
}

/* Social Share Buttons */
.share-buttons-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    margin-right: 0.35rem;
    text-transform: uppercase;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cee4fd;
    color: #086ad8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.share-btn:hover {
    background: #086ad8;
    color: #ffffff;
    border-color: #086ad8;
    box-shadow: 0 4px 12px rgba(8, 106, 216, 0.3);
    transform: translateY(-2px);
}

/* ---------------------------------------------
   2. COVER IMAGE BANNER
   --------------------------------------------- */
.article-cover-section {
    padding: 3rem 0 2rem;
    background: #ffffff;
}

.article-cover-frame {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(33, 37, 41, 0.08);
    border: 1px solid #cee4fd;
    max-height: 480px;
}

.article-cover-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------------------------------------------
   3. ARTICLE CONTENT & SIDEBAR GRID
   --------------------------------------------- */
.article-main-section {
    padding: 2.5rem 0 6rem;
    background: #ffffff;
}

.article-body-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
}

.article-body-content h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: #0f172a;
    margin: 2.5rem 0 1.25rem;
    line-height: 1.3;
    scroll-margin-top: 6rem;
}

.article-body-content h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    margin: 2rem 0 1rem;
}

.article-body-content p {
    margin-bottom: 1.5rem;
}

/* Callout Summary Box */
.summary-callout-box {
    background: linear-gradient(135deg, #eff6ff 0%, #f5faff 100%);
    border-left: 4px solid #086ad8;
    border-radius: 0 1.25rem 1.25rem 0;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
}

.summary-callout-title {
    font-size: 0.84375rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #086ad8;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.summary-callout-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #1e293b;
    font-size: 1.025rem;
}

.summary-callout-list li {
    margin-bottom: 0.5rem;
}

/* Quote Block */
.article-quote-block {
    background: #f8fafc;
    border: 1px solid #cee4fd;
    border-radius: 1.5rem;
    padding: 2rem 2.25rem;
    margin: 2.5rem 0;
    position: relative;
}

.quote-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.quote-author {
    font-size: 0.875rem;
    font-weight: 700;
    color: #086ad8;
}

/* Stat Box Inside Article */
.article-stat-banner {
    background: linear-gradient(135deg, #086ad8 0%, #0284c7 100%);
    color: #ffffff;
    border-radius: 1.5rem;
    padding: 2.25rem 2rem;
    text-align: center;
    margin: 2.5rem 0;
    box-shadow: 0 10px 30px rgba(8, 106, 216, 0.25);
}

.article-stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.article-stat-label {
    font-size: 1.0625rem;
    font-weight: 600;
    opacity: 0.95;
}

/* Author Bio Card at bottom of article */
.author-bio-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 2rem;
    margin-top: 3.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.author-bio-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #086ad8;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* ---------------------------------------------
   4. STICKY SIDEBAR (TOC & WIDGETS)
   --------------------------------------------- */
.article-sidebar {
    position: relative;
}

.toc-sticky-card {
    position: -webkit-sticky;
    position: sticky;
    top: 6.5rem;
    z-index: 90;
}

.sidebar-widget-card {
    background: #ffffff;
    border: 1px solid #cee4fd;
    border-radius: 1.5rem;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 6px 24px rgba(33, 37, 41, 0.04);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef0f1;
}

/* Table of Contents Links */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.toc-link {
    color: #64748b;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    padding: 0.35rem 0.6rem;
    border-radius: 0.5rem;
}

.toc-link:hover,
.toc-link.active {
    color: #086ad8;
    background: #eff6ff;
    padding-left: 0.85rem;
}

/* Trending Articles Mini List */
.trending-mini-item {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    text-decoration: none;
    margin-bottom: 1.125rem;
}

.trending-mini-item:last-child {
    margin-bottom: 0;
}

.trending-mini-img {
    width: 68px;
    height: 54px;
    border-radius: 0.75rem;
    object-fit: cover;
    flex-shrink: 0;
}

.trending-mini-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.trending-mini-item:hover .trending-mini-title {
    color: #086ad8;
}

/* Sidebar Demo Box */
.sidebar-cta-box {
    background: linear-gradient(135deg, #086ad8, #0284c7);
    color: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem 1.75rem;
    text-align: center;
}

.sidebar-cta-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.sidebar-cta-desc {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* ---------------------------------------------
   5. RELATED ARTICLES AT BOTTOM
   --------------------------------------------- */
.related-articles-section {
    padding: 5rem 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .article-hero-title { font-size: 2.15rem; }
    .article-sidebar { position: static; margin-top: 3rem; }
    .author-bio-card { flex-direction: column; text-align: center; }
}

@media (max-width: 575.98px) {
    .article-hero-title { font-size: 1.75rem; }
    .article-meta-row { flex-direction: column; align-items: flex-start; }
}
