/* ========================================
   ConstruCloud 2026 - Blog Article Styles
   ======================================== */

/* Hero with background image */
.article-hero {
    position: relative;
    padding: 70px 0 50px;
    overflow: hidden;
}
.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.92), rgba(22,33,62,0.88));
    z-index: 1;
}
.article-hero .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-hero .container {
    position: relative;
    z-index: 2;
    max-width: 850px;
}
.article-hero .breadcrumb { color: rgba(255,255,255,0.5); font-size: 13px; margin-bottom: 20px; }
.article-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
.article-hero .breadcrumb a:hover { color: #fff; }
.article-hero .article-date { color: #2ea3f2; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 12px; }
.article-hero h1 { color: #fff; font-size: 2.2rem; line-height: 1.3; }
.article-hero .article-subtitle { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-top: 15px; line-height: 1.6; }

/* Article Body */
.article-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}
.article-body p {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}
.article-body h2 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin: 50px 0 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f4fd;
}
.article-body ul {
    margin: 0 0 20px 24px;
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}
.article-body li {
    margin-bottom: 10px;
    list-style: disc;
}

/* Highlight box */
.article-highlight {
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
    border-left: 5px solid #2ea3f2;
    padding: 24px 28px;
    border-radius: 0 14px 14px 0;
    margin: 32px 0;
    font-size: 17px;
    line-height: 1.7;
}
.article-highlight strong { color: #1a1a2e; }

/* Full-width image with caption */
.article-img {
    margin: 35px 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.article-img img {
    width: 100%;
    display: block;
    height: auto;
}
.article-img figcaption {
    background: #f8fafc;
    padding: 10px 16px;
    font-size: 13px;
    color: #888;
    text-align: center;
    font-style: italic;
}

/* Side-by-side image + text */
.article-split {
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 35px 0;
}
.article-split.reverse { flex-direction: row-reverse; }
.article-split-img {
    flex: 0 0 45%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.article-split-img img { width: 100%; display: block; }
.article-split-text { flex: 1; }
.article-split-text h3 { font-size: 1.25rem; margin-bottom: 10px; color: #333; }

/* Stat boxes (icon + number + label) */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin: 35px 0;
}
.stat-box {
    background: #fff;
    border: 1px solid #e8f0fe;
    border-radius: 14px;
    padding: 24px 18px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(46,163,242,0.12);
}
.stat-box i {
    font-size: 32px;
    color: #2ea3f2;
    margin-bottom: 10px;
    display: block;
}
.stat-box .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}
.stat-box .stat-label {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* Icon feature list (visual bullet points) */
.icon-list {
    list-style: none;
    margin: 25px 0;
    padding: 0;
}
.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}
.icon-list li i {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #e8f4fd;
    color: #2ea3f2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-top: 2px;
}

/* Visual comparison: Before vs After */
.comparison-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 35px 0;
}
.comparison-card {
    border-radius: 14px;
    padding: 24px;
    text-align: center;
}
.comparison-card.bad {
    background: linear-gradient(135deg, #fff5f5, #fee2e2);
    border: 1px solid #fecaca;
}
.comparison-card.good {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
}
.comparison-card h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.comparison-card.bad h4 { color: #dc2626; }
.comparison-card.good h4 { color: #16a34a; }
.comparison-card i {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}
.comparison-card.bad i { color: #ef4444; }
.comparison-card.good i { color: #22c55e; }
.comparison-card ul {
    text-align: left;
    font-size: 14px;
    margin: 0;
    padding-left: 18px;
}

/* Process steps */
.process-steps {
    display: flex;
    gap: 0;
    margin: 35px 0;
    position: relative;
}
.process-step {
    flex: 1;
    text-align: center;
    padding: 20px 14px;
    position: relative;
}
.process-step::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    color: #2ea3f2;
    font-size: 14px;
    z-index: 1;
}
.process-step:last-child::after { display: none; }
.process-step .step-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2ea3f2, #1a8cd8);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 10px;
}
.process-step .step-title {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}
.process-step .step-desc {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* CTA and back */
.article-cta {
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 30px;
    margin-top: 50px;
    text-align: center;
}
.article-cta p { margin-bottom: 15px; font-size: 17px; }
.article-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.article-cta-buttons .btn { font-size: 13px; padding: 10px 20px; }
.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2ea3f2;
    font-weight: 600;
    margin-top: 30px;
    text-decoration: none;
    font-size: 15px;
}
.article-back:hover { gap: 12px; }

/* Author bio – discrete */
.article-author {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    border-top: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 16px 0 0;
    margin-top: 32px;
    box-shadow: none;
}
.article-author-photo {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid #ccc;
}
.article-author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.article-author-info {
    flex: 1;
}
.article-author-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: silver;
    margin: 0 0 1px;
}
.article-author-name a {
    color: silver;
    text-decoration: none;
    transition: color 0.3s;
}
.article-author-name a:hover {
    color: #999;
}
.article-author-role {
    font-size: 9px;
    color: #c0c0c0;
    margin: 0 0 2px;
    line-height: 1.3;
}
.article-author-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 400;
    color: #b0b0b0;
    text-decoration: none;
    transition: opacity 0.3s;
}
.article-author-linkedin:hover {
    opacity: 0.7;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .article-hero h1 { font-size: 1.6rem; }
    .article-split { flex-direction: column; }
    .article-split.reverse { flex-direction: column; }
    .article-split-img { flex: none; width: 100%; }
    .comparison-visual { grid-template-columns: 1fr; }
    .process-steps { flex-direction: column; gap: 10px; }
    .article-cta-buttons { flex-direction: column; align-items: center; }
    .article-cta-buttons .btn { width: 100%; max-width: 300px; }
    .process-step::after { display: none; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .article-author { flex-direction: column; text-align: center; }
}
