/* ===============================
   Article Content
================================ */

.article-content {
    padding: 4.5rem 0;
    background: #ffffff;
}

/* main body */
.article-body {
    max-width: 820px;
    margin: 0 auto;
    animation: contentFade 0.9s ease both;
}

/* ===============================
   Article Image Wrapper
================================ */

.article-image {
    margin-bottom: 2.5rem;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    animation: imageReveal 1s ease both;
}

/* ===============================
   Paragraphs
================================ */

.article-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 1.4rem;
    animation: textFadeUp 0.8s ease both;
}

/* intro paragraph slightly larger */
.article-body > p:first-of-type {
    font-size: 1.15rem;
    color: #1e293b;
}

/* ===============================
   Headings
================================ */

.article-body h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    color: #0f172a;
    position: relative;
    padding-left: 18px;
    animation: headingSlide 0.8s ease both;
}

/* accent bar */
.article-body h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 6px;
    height: 60%;
    border-radius: 999px;
    background: linear-gradient(180deg, #2563eb, #38bdf8);
}

/* h3 inside CTA box */
.article-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #0f172a;
}

/* highlight box title */
.article-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #1e293b;
}

/* ===============================
   CTA Box (content only)
================================ */

.cta-box {
    margin-top: 4rem;
    padding: 2.5rem 2.2rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    animation: ctaReveal 0.9s ease both;
}

.cta-box p {
    color: #475569;
    margin-bottom: 1.8rem;
}

/* ===============================
   Animations
================================ */

@keyframes contentFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes imageReveal {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes textFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes headingSlide {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ctaReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   Responsive
================================ */

@media (max-width: 640px) {
    .article-body {
        padding: 0 0.5rem;
    }

    .article-body h2 {
        margin-top: 2.4rem;
    }

    .cta-box {
        padding: 2rem 1.6rem;
    }
}
/* ===============================
   Article Sidebar
================================ */

.article-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    animation: sidebarReveal 0.9s ease both;
}

/* ===============================
   Sidebar Box
================================ */

.sidebar-box {
    background: #ffffff;
    padding: 1.8rem 1.6rem;
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sidebar-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

/* ===============================
   Sidebar Headings
================================ */

.sidebar-box h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f172a;
    position: relative;
    padding-left: 14px;
}

/* accent line */
.sidebar-box h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 4px;
    height: 60%;
    border-radius: 999px;
    background: linear-gradient(180deg, #2563eb, #38bdf8);
}

/* ===============================
   Social Share
================================ */

.social-share {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px #e2e8f0;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

/* ===============================
   Related Articles
================================ */

.related-articles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-articles li {
    margin-bottom: 12px;
}

.related-articles a {
    position: relative;
    display: block;
    padding-left: 18px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #334155;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* arrow indicator */
.related-articles a::before {
    content: "›";
    position: absolute;
    left: 0;
    top: 0;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.related-articles a:hover {
    color: #2563eb;
    transform: translateX(4px);
}

.related-articles a:hover::before {
    color: #2563eb;
}

/* ===============================
   Subscribe Box
================================ */

.sidebar-box p {
    font-size: 14.5px;
    color: #475569;
    margin-bottom: 1rem;
}

/* form */
.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-form input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-form input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ===============================
   Animations
================================ */

@keyframes sidebarReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   Responsive
================================ */

@media (max-width: 992px) {
    .article-sidebar {
        margin-top: 3rem;
    }
}
