/* =============================================
   GST Article Page Shared Stylesheet
   milaanerp.com/gst/gst-article.css
   ============================================= */

/* ===== HERO SECTION ===== */
/* Support both old (.gst-article-hero) and new (.article-hero) class names */
.article-hero,
.gst-article-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1B5EBC 50%, #13459A 100%);
    padding: 110px 0 64px;
    position: relative;
    overflow: hidden;
}
.article-hero::before,
.gst-article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.article-hero .container,
.gst-article-hero .container { position: relative; z-index: 1; }

/* Breadcrumb */
.article-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 20px; font-size: 0.85rem;
}
.article-breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.article-breadcrumb a:hover { color: #fff; }
.article-breadcrumb span { color: rgba(255,255,255,0.4); }
.article-breadcrumb .current { color: rgba(255,255,255,0.9); }

/* Hero badge — support both class names */
.article-hero-badge,
.article-category-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff; padding: 6px 16px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px;
    text-transform: uppercase; margin-bottom: 20px;
}

/* Hero title */
.article-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 16px;
}

/* Hero sub-text */
.article-hero-sub {
    font-size: 1.05rem; color: rgba(255,255,255,0.8);
    max-width: 680px; line-height: 1.7; margin-bottom: 20px;
}

/* Hero meta — support both class names */
.article-meta,
.article-hero-meta {
    display: flex; align-items: center; gap: 20px;
    color: rgba(255,255,255,0.7); font-size: 0.85rem; flex-wrap: wrap;
}
.article-meta span,
.article-hero-meta span { display: flex; align-items: center; gap: 6px; }

/* ===== PAGE LAYOUT ===== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 20px 80px;
}
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
    min-width: 0;
    font-family: 'Inter', sans-serif;
}

/* Headings inside article */
.article-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #0f172a;
    margin: 40px 0 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    line-height: 1.3;
}
.article-content h2:first-of-type { margin-top: 0; }

.article-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1B5EBC;
    margin: 28px 0 10px;
}

.article-content h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 20px 0 8px;
}

/* Body text */
.article-content p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 0.97rem;
}

/* Lists */
.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}
.article-content li {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 8px;
    font-size: 0.97rem;
}
.article-content ol { list-style-type: decimal; }
.article-content ul { list-style-type: disc; }
.article-content li strong { color: #0f172a; }

/* Strong / bold */
.article-content strong { color: #0f172a; font-weight: 600; }

/* ===== TABLE OF CONTENTS BOX ===== */
.toc-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #1B5EBC;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 36px;
}
.toc-box h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toc-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 24px;
}
.toc-box li {
    padding: 5px 0;
    border-bottom: 1px solid #f1f5f9;
    margin: 0;
    font-size: 0.88rem;
    break-inside: avoid;
}
.toc-box li:last-child { border-bottom: none; }
.toc-box a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.toc-box a:hover { color: #1B5EBC; }
@media (max-width: 640px) { .toc-box ul { columns: 1; } }

/* Article intro box (if used) */
.article-intro {
    font-size: 1.05rem; color: #475569; line-height: 1.8;
    border-left: 4px solid #1B5EBC;
    margin-bottom: 36px; background: #f0f7ff;
    padding: 20px 20px 20px 24px; border-radius: 0 12px 12px 0;
}

/* ===== CALLOUT / CARD BOXES ===== */
.info-card {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}
.info-card h4 {
    color: #1B5EBC; font-weight: 700; margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
    font-size: 0.95rem;
}
.info-card p { color: #1e40af; margin: 0; font-size: 0.93rem; line-height: 1.65; }

.warning-box {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}
.warning-box h4 {
    color: #c2410c; font-weight: 700; margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
    font-size: 0.95rem;
}
.warning-box p { color: #92400e; margin: 0; font-size: 0.93rem; line-height: 1.65; }

.success-box {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}
.success-box h4 {
    color: #059669; font-weight: 700; margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.success-box p { color: #065f46; margin: 0; font-size: 0.93rem; }

.highlight-box {
    background: #0f172a;
    color: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    margin: 32px 0;
}
.highlight-box h3 {
    color: #60a5fa;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.highlight-box h3 i { margin-right: 8px; }
.highlight-box p { color: rgba(255,255,255,0.82); margin: 0; line-height: 1.7; font-size: 0.95rem; }

/* ===== DATA TABLE ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
}
.data-table th {
    background: #1B5EBC;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    vertical-align: top;
    line-height: 1.55;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: #f8fafc; }
.data-table tr:hover td { background: #f0f7ff; }

/* ===== STEPS GRID ===== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 24px 0; }
.step-item {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 20px; text-align: center; transition: all 0.3s;
}
.step-item:hover { border-color: #1B5EBC; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(27,94,188,0.12); }
.step-num {
    width: 40px; height: 40px; background: #1B5EBC; color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; margin: 0 auto 12px; font-size: 1.1rem;
}
.step-item h4 { font-size: 0.95rem; font-weight: 600; color: #0f172a; margin-bottom: 6px; }
.step-item p { font-size: 0.85rem; color: #64748b; margin: 0; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 32px; margin: 24px 0; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, #1B5EBC, #10B981); }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before {
    content: ''; position: absolute; left: -26px; top: 4px;
    width: 12px; height: 12px; border-radius: 50%;
    background: #1B5EBC; border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(27,94,188,0.2);
}
.timeline-item h4 { font-family: 'Outfit', sans-serif; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.timeline-item .timeline-date { font-size: 0.8rem; color: #1B5EBC; font-weight: 600; margin-bottom: 6px; }
.timeline-item p { color: #475569; font-size: 0.95rem; margin: 0; line-height: 1.6; }

/* ===== FAQ SECTION ===== */
.faq-section { margin-top: 48px; }
.faq-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-q {
    padding: 16px 20px;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    font-size: 0.95rem;
    line-height: 1.5;
}
.faq-q:hover { background: #eff6ff; color: #1B5EBC; }
.faq-q span { flex: 1; }
.faq-q .fas { flex-shrink: 0; color: #94a3b8; }
.faq-q:hover .fas { color: #1B5EBC; }
.faq-a {
    padding: 16px 20px;
    color: #475569;
    line-height: 1.75;
    border-top: 1px solid #e2e8f0;
    display: none;
    font-size: 0.93rem;
    background: #fff;
}

/* ===== CTA SECTION (inside article) ===== */
/* Support both .article-cta and .article-cta-section */
.article-cta,
.article-cta-section {
    background: linear-gradient(135deg, #0f172a, #1B5EBC);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    margin: 48px 0 0;
    color: #fff;
}
.article-cta h3,
.article-cta-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.article-cta p,
.article-cta-section p { color: rgba(255,255,255,0.82); margin-bottom: 24px; line-height: 1.6; }
.cta-buttons,
.article-cta-section .cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SIDEBAR ===== */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.sidebar-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 90px;
}
.sidebar-widget h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    font-size: 1rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Sidebar links — support both .sidebar-links and .related-links */
.sidebar-links,
.related-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-links li,
.related-links li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    margin: 0;
}
.sidebar-links li:last-child,
.related-links li:last-child { border-bottom: none; }
.sidebar-links a,
.related-links a {
    color: #1B5EBC;
    text-decoration: none;
    font-size: 0.88rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
    transition: color 0.2s;
}
.sidebar-links a::before,
.related-links a::before {
    content: '›';
    font-size: 1.1rem;
    color: #93c5fd;
    margin-top: -1px;
    flex-shrink: 0;
}
.sidebar-links a:hover,
.related-links a:hover { color: #13459A; text-decoration: underline; }

/* Sidebar CTA widget */
.sidebar-cta {
    background: linear-gradient(135deg, #1B5EBC, #13459A);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    color: #fff;
}
.sidebar-cta h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 8px; font-family: 'Outfit', sans-serif; }
.sidebar-cta p { color: rgba(255,255,255,0.82); font-size: 0.88rem; margin-bottom: 20px; line-height: 1.5; }

/* TOC list (older pages) */
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.toc-list li:last-child { border-bottom: none; }
.toc-list a { color: #475569; text-decoration: none; font-size: 0.88rem; display: flex; align-items: center; gap: 8px; transition: color 0.2s; }
.toc-list a:hover { color: #1B5EBC; }

/* ===== COMPARISON GRID ===== */
.comparison-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 24px 0; }
.comparison-card { border-radius: 12px; padding: 20px; text-align: center; }
.comparison-card.green { background: #ecfdf5; border: 2px solid #10B981; }
.comparison-card.blue { background: #f0f9ff; border: 2px solid #3b82f6; }
.comparison-card.orange { background: #fff7ed; border: 2px solid #f97316; }
.comparison-card.red { background: #fef2f2; border: 2px solid #ef4444; }
.comparison-card .c-badge { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.comparison-card h4 { font-weight: 700; margin-bottom: 8px; }
.comparison-card p { font-size: 0.85rem; margin: 0; }
.green .c-badge, .green h4 { color: #059669; } .green p { color: #065f46; }
.blue .c-badge, .blue h4 { color: #2563eb; } .blue p { color: #1e40af; }
.orange .c-badge, .orange h4 { color: #c2410c; } .orange p { color: #9a3412; }
.red .c-badge, .red h4 { color: #dc2626; } .red p { color: #991b1b; }

/* ===== BENEFIT CHECKLIST ===== */
.benefit-checklist { list-style: none; padding: 0; margin: 16px 0; }
.benefit-checklist li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid #f1f5f9; color: #475569;
}
.benefit-checklist li:last-child { border-bottom: none; }
.benefit-checklist .check-icon { color: #10B981; margin-top: 2px; flex-shrink: 0; }

/* ===== ARTICLE SECTION (old class compat) ===== */
.article-section { margin-bottom: 48px; }
.article-section h2 {
    font-family: 'Outfit', sans-serif; font-size: 1.6rem;
    font-weight: 700; color: #0f172a; margin-bottom: 16px;
    padding-bottom: 12px; border-bottom: 2px solid #e2e8f0;
}
.article-section h3 { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 600; color: #1B5EBC; margin: 24px 0 12px; }
.article-section p { color: #475569; line-height: 1.8; margin-bottom: 16px; }
.article-section ul, .article-section ol { padding-left: 24px; margin-bottom: 16px; }
.article-section li { color: #475569; line-height: 1.7; margin-bottom: 8px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .article-layout { padding: 32px 16px 56px; }
    .article-hero, .gst-article-hero { padding: 88px 0 48px; }
    .article-cta, .article-cta-section { padding: 32px 20px; }
    .article-cta h3, .article-cta-section h2 { font-size: 1.3rem; }
    .highlight-box { padding: 20px 22px; }
    .data-table { font-size: 0.82rem; }
    .data-table th, .data-table td { padding: 10px 12px; }
    .sidebar-widget { position: static; }
}
@media (max-width: 480px) {
    .article-hero-title { font-size: 1.6rem; }
    .toc-box ul { columns: 1; }
}
