/* ===== Article Page Styles ===== */

/* Breadcrumb */
.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary-blue);
}

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-primary);
}

/* Article Header */
.article-header {
    margin-bottom: 32px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-blue);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-dark);
}

.author-title {
    font-size: 14px;
    color: var(--text-secondary);
}

.article-header h1 {
    font-size: 32px;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.article-meta-info {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.article-meta-info i {
    margin-right: 6px;
}

.article-meta-info .story-badge {
    background: var(--accent-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.article-header .article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.article-header .tag {
    background: var(--bg-light);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
}

/* Article Cover */
.article-cover {
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-cover img {
    width: 100%;
    height: auto;
}

.image-caption {
    text-align: center;
    padding: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    background: var(--bg-light);
}

/* Article Body */
.article-body {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
}

.article-chapter {
    margin-bottom: 48px;
}

.article-chapter h2 {
    font-size: 24px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.chapter-number {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    margin-right: 12px;
    font-size: 18px;
}

.article-chapter h3 {
    font-size: 20px;
    margin: 24px 0 16px;
    color: var(--primary-dark);
}

.article-chapter p {
    margin-bottom: 16px;
    text-align: justify;
}

/* Story Intro */
.story-intro {
    background: var(--bg-light);
    padding: 20px;
    border-left: 4px solid var(--primary-blue);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

/* Pain Points */
.pain-points {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.pain-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #FEF2F2;
    border-radius: var(--radius-md);
    border-left: 4px solid #EF4444;
}

.pain-item i {
    color: #EF4444;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.pain-item strong {
    display: block;
    margin-bottom: 4px;
    color: #991B1B;
}

.pain-item p {
    margin: 0;
    font-size: 14px;
    color: #7F1D1D;
}

/* Quote Box */
.quote-box {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin: 24px 0;
    position: relative;
}

.quote-box i {
    font-size: 32px;
    color: var(--primary-blue);
    opacity: 0.3;
    position: absolute;
    top: 16px;
    left: 16px;
}

.quote-box p {
    margin: 0;
    padding-left: 40px;
    font-style: italic;
    color: var(--text-secondary);
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table thead {
    background: var(--primary-dark);
    color: white;
}

.comparison-table tbody tr:hover {
    background: var(--bg-light);
}

.highlight-row {
    background: #DBEAFE !important;
    font-weight: 600;
}

/* Decision List */
.decision-list {
    list-style: none;
    padding: 0;
}

.decision-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
}

.decision-list i {
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-size: 18px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
    margin: 24px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-blue);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 0;
    background: var(--primary-blue);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.timeline-content {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
}

.timeline-content h4 {
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.timeline-content ul {
    margin: 0;
    padding-left: 20px;
}

.timeline-content li {
    margin-bottom: 8px;
}

/* Problems List */
.problems-list {
    display: grid;
    gap: 24px;
    margin: 24px 0;
}

.problem-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.problem-header {
    background: #FEF3C7;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.problem-header i {
    font-size: 24px;
    color: #F59E0B;
}

.problem-header h4 {
    margin: 0;
    color: #92400E;
}

.problem-body {
    padding: 20px;
}

.problem-body p {
    margin-bottom: 12px;
}

.problem-body ul {
    margin: 12px 0;
    padding-left: 24px;
}

/* Results Comparison */
.results-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.result-item {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.metric {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: bold;
}

.metric .before {
    color: #EF4444;
}

.metric .after {
    color: var(--success-green);
}

.metric i {
    color: var(--text-light);
}

.result-item h4 {
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.improvement {
    color: var(--success-green);
    font-weight: 600;
}

/* Testimonial */
.testimonial {
    display: flex;
    gap: 20px;
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin: 32px 0;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}

.testimonial-content p {
    margin: 0;
    font-style: italic;
    color: var(--text-secondary);
}

blockquote {
    background: var(--bg-light);
    padding: 16px 20px;
    border-left: 4px solid var(--primary-blue);
    margin: 16px 0;
    border-radius: var(--radius-md);
}

blockquote p {
    margin: 0;
    font-style: italic;
}

/* Cost Section */
.cost-section {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.cost-breakdown {
    margin: 24px 0;
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cost-table th,
.cost-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cost-table thead {
    background: var(--primary-dark);
    color: white;
}

.category-header td {
    background: var(--bg-light);
    font-weight: 600;
}

.total-row {
    background: #DBEAFE;
    font-size: 18px;
}

.total-row td {
    padding: 16px 12px;
}

.cost-note-box {
    background: #FEF3C7;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-top: 20px;
}

.cost-note-box ul {
    margin: 8px 0 0 20px;
}

/* ROI Analysis */
.roi-analysis {
    margin: 32px 0;
}

.roi-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.roi-item h4 {
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.roi-item .annual {
    margin-top: 8px;
    font-size: 18px;
    color: var(--success-green);
}

.roi-summary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 24px;
}

.roi-summary p {
    margin: 8px 0;
}

.roi-highlight {
    font-size: 20px;
    margin-top: 16px;
}

/* Success Factors */
.success-factors {
    counter-reset: factor-counter;
    list-style: none;
    padding: 0;
}

.success-factors li {
    counter-increment: factor-counter;
    margin-bottom: 24px;
    padding-left: 60px;
    position: relative;
}

.success-factors li::before {
    content: counter(factor-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.success-factors strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    color: var(--primary-dark);
}

/* Pitfalls */
.pitfalls {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.pitfall-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #FEF3C7;
    border-radius: var(--radius-md);
    border-left: 4px solid #F59E0B;
}

.pitfall-item i {
    color: #F59E0B;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.pitfall-item strong {
    display: block;
    margin-bottom: 8px;
    color: #92400E;
}

/* Advice Box */
.advice-box {
    background: #ECFDF5;
    padding: 24px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--success-green);
}

.advice-box ol {
    margin: 0;
    padding-left: 24px;
}

.advice-box li {
    margin-bottom: 12px;
}

.advice-box strong {
    color: #065F46;
}

/* Related Articles */
.related-articles {
    padding: 60px 0;
    background: white;
    margin-top: 60px;
}

.related-articles h2 {
    font-size: 24px;
    margin-bottom: 32px;
    text-align: center;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    height: 180px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-card-body {
    padding: 20px;
}

.article-card-body h3 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card-body h3 a:hover {
    color: var(--primary-blue);
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Article Footer */
.article-footer {
    max-width: 900px;
    margin: 48px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-secondary);
}

.share-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-white);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    transition: all var(--transition);
}

.share-btn:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.prev-article,
.next-article {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.prev-article:hover,
.next-article:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    color: var(--primary-blue);
}

.next-article {
    text-align: right;
    justify-content: flex-end;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.prev-article:hover .nav-title,
.next-article:hover .nav-title {
    color: var(--primary-blue);
}

/* Table Wrapper for Responsive Scroll */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}