/* ================================================
   BLOG - المدونة
   Archive + Single Post
   ================================================ */

/* ============================
   BLOG ARCHIVE HERO
   ============================ */

.blog-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1B4332 60%, #2E7A3E 100%);
    padding: 44px 0 40px;
    text-align: center;
    position: relative;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.blog-hero .hp-container {
    position: relative;
    z-index: 2;
}

.blog-hero__title {
    font-family: 'Tajawal', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}

.blog-hero__desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    color: #94a3b8;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================
   BLOG GRID
   ============================ */

.blog-section {
    padding: 40px 0 56px;
    background: #f8fafc;
}

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

/* ============================
   BLOG CARD
   ============================ */

.blog-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.blog-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #f1f5f9;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.06);
}

.blog-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.blog-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    color: #94a3b8;
}

.blog-card__cat {
    font-size: 11px;
    font-weight: 700;
    color: #3E8E50;
    background: #E8F5E9;
    padding: 3px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.blog-card__cat:hover {
    background: #C8E6C9;
    color: #2E7A3E;
}

.blog-card__title {
    font-family: 'Tajawal', sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card__title a:hover {
    color: #3E8E50;
}

.blog-card__excerpt {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.blog-card__date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    color: #94a3b8;
}

.blog-card__date svg {
    flex-shrink: 0;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #3E8E50;
    text-decoration: none;
    transition: gap 0.2s;
}

.blog-card__link:hover {
    gap: 8px;
}

.blog-card__link svg {
    transform: scaleX(-1);
}

/* ============================
   PAGINATION
   ============================ */

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
    font-family: 'Tajawal', sans-serif;
}

.blog-pagination a,
.blog-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-pagination a {
    background: #fff;
    color: #64748b;
    border: 1px solid #e5e7eb;
}

.blog-pagination a:hover {
    background: #E8F5E9;
    color: #3E8E50;
    border-color: #A5D6A7;
}

.blog-pagination span.current {
    background: #3E8E50;
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(62,142,80,0.25);
}

/* ============================
   NO POSTS
   ============================ */

.blog-empty {
    text-align: center;
    padding: 80px 20px;
    font-family: 'Tajawal', sans-serif;
}

.blog-empty__icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
}

.blog-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.blog-empty p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}


/* ========================================================
   SINGLE POST - صفحة المقالة الواحدة
   ======================================================== */

/* Reading Progress Bar */
.sp-reading-progress {
    position: fixed;
    top: 0;
    right: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #3E8E50, #1B5E20);
    z-index: 99999;
    transition: width 0.1s linear;
    border-radius: 0 0 0 2px;
}

/* Header */
.sp-header {
    background: linear-gradient(135deg, #0f172a 0%, #1B4332 50%, #2E7A3E 100%);
    padding: 32px 0 40px;
    text-align: center;
    position: relative;
}

.sp-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(62,142,80,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(27,94,32,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.sp-header .hp-container {
    position: relative;
    z-index: 2;
}

/* Breadcrumb */
.sp-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
}

.sp-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.sp-breadcrumb a:hover {
    color: #66BB6A;
}

.sp-breadcrumb svg {
    color: #475569;
    flex-shrink: 0;
}

/* Category Badge */
.sp-header__cat {
    display: inline-block;
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #81C784;
    background: rgba(62,142,80,0.15);
    border: 1px solid rgba(102,187,106,0.25);
    padding: 5px 18px;
    border-radius: 999px;
    margin-bottom: 16px;
    text-decoration: none;
    transition: background 0.2s;
}

.sp-header__cat:hover {
    background: rgba(62,142,80,0.25);
    color: #A5D6A7;
}

/* Title */
.sp-header__title {
    font-family: 'Tajawal', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Meta */
.sp-header__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: #94a3b8;
    flex-wrap: wrap;
}

.sp-header__author-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 4px 14px 4px 6px;
    border-radius: 999px;
}

.sp-header__author-pill img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.sp-header__author-pill span {
    font-weight: 600;
    color: #e2e8f0;
}

.sp-header__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-header__meta-item svg {
    flex-shrink: 0;
    color: #66BB6A;
}

/* Featured Image */
.sp-featured-image {
    background: #f8fafc;
    padding: 0;
    margin-top: -20px;
    position: relative;
    z-index: 3;
}

.sp-featured-image__wrap {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.sp-featured-image__wrap img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 480px;
    object-fit: cover;
}

/* Body Layout */
.sp-body {
    padding: 40px 0 0;
    background: #f8fafc;
}

.sp-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

/* Sidebar */
.sp-sidebar {
    position: sticky;
    top: 100px;
}

/* Table of Contents */
.sp-toc {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.sp-toc__title {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.sp-toc__title svg {
    color: #3E8E50;
    flex-shrink: 0;
}

.sp-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-toc__list li {
    margin-bottom: 2px;
}

.sp-toc__list a {
    display: block;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    border-right: 2px solid transparent;
    transition: all 0.2s;
    line-height: 1.5;
}

.sp-toc__list a:hover {
    background: #f8fafc;
    color: #3E8E50;
}

.sp-toc__list a.active {
    background: #E8F5E9;
    color: #3E8E50;
    border-right-color: #3E8E50;
    font-weight: 600;
}

.sp-toc__list a.sp-toc__sub {
    padding-right: 24px;
    font-size: 12px;
}

/* Sidebar Share */
.sp-sidebar-share {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sp-sidebar-share__label {
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* Share Buttons (shared) */
.sp-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.sp-share-btn:hover { color: #fff; }
.sp-share-btn--wa:hover { background: #25D366; }
.sp-share-btn--fb:hover { background: #1877F2; }
.sp-share-btn--tw:hover { background: #0f172a; }
.sp-share-btn--link:hover { background: #3E8E50; }

/* Main Content */
.sp-main {
    min-width: 0;
}

/* Article */
.sp-article {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    padding: 40px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

.sp-article img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.sp-article p {
    font-family: 'Tajawal', sans-serif;
    font-size: 17px;
    line-height: 2;
    color: #334155;
    margin: 0 0 20px;
}

.sp-article h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E8F5E9;
    scroll-margin-top: 100px;
}

.sp-article h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 28px 0 12px;
    scroll-margin-top: 100px;
}

.sp-article h4 {
    font-family: 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 24px 0 10px;
}

.sp-article ul,
.sp-article ol {
    padding-right: 24px;
    margin: 12px 0 20px;
}

.sp-article li {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #334155;
    margin-bottom: 8px;
}

.sp-article blockquote {
    background: linear-gradient(135deg, #E8F5E9, #E8F5E9);
    border-right: 4px solid #3E8E50;
    padding: 20px 24px;
    border-radius: 0 14px 14px 0;
    margin: 24px 0;
    font-style: normal;
    position: relative;
}

.sp-article blockquote::before {
    content: '\201C';
    position: absolute;
    top: -4px;
    right: 12px;
    font-size: 48px;
    color: rgba(62,142,80,0.15);
    font-family: Georgia, serif;
    line-height: 1;
}

.sp-article blockquote p {
    color: #2E7A3E;
    font-weight: 600;
    margin: 0;
    font-size: 16px;
}

.sp-article a {
    color: #3E8E50;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(62,142,80,0.3);
    transition: text-decoration-color 0.2s;
}

.sp-article a:hover {
    color: #2E7A3E;
    text-decoration-color: #2E7A3E;
}

.sp-article strong {
    color: #0f172a;
    font-weight: 700;
}

.sp-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
}

.sp-article table th,
.sp-article table td {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    text-align: right;
}

.sp-article table th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}

.sp-article table tr:hover td {
    background: #fafbfc;
}

.sp-article pre,
.sp-article code {
    font-family: 'Courier New', monospace;
    background: #f8fafc;
    border-radius: 6px;
}

.sp-article code {
    padding: 2px 6px;
    font-size: 14px;
    color: #e11d48;
}

.sp-article pre {
    padding: 20px;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    margin: 20px 0;
}

.sp-article pre code {
    padding: 0;
    background: none;
    color: #334155;
}

.sp-article figure {
    margin: 24px 0;
}

.sp-article figcaption {
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    margin-top: 8px;
}

/* Tags */
.sp-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.sp-tags svg {
    flex-shrink: 0;
}

.sp-tags a {
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 5px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.sp-tags a:hover {
    background: #E8F5E9;
    color: #3E8E50;
    border-color: #A5D6A7;
}

/* Share Bar (inline, below article) */
.sp-share-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sp-share-bar__label {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.sp-share-bar__btns {
    display: flex;
    gap: 8px;
}

.sp-share-bar__btns .sp-share-btn {
    width: auto;
    padding: 8px 16px;
    font-size: 13px;
    gap: 6px;
}

/* Author Box */
.sp-author-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.sp-author-box__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #E8F5E9;
    flex-shrink: 0;
}

.sp-author-box__info {
    flex: 1;
    min-width: 0;
}

.sp-author-box__label {
    font-family: 'Tajawal', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #3E8E50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sp-author-box__name {
    font-family: 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 4px 0 8px;
}

.sp-author-box__bio {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 8px;
}

.sp-author-box__posts {
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

/* Post Navigation */
.sp-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.sp-post-nav__item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-post-nav__item:hover {
    border-color: #A5D6A7;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.sp-post-nav__direction {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #3E8E50;
}

.sp-post-nav__item--prev {
    text-align: left;
}

.sp-post-nav__item--prev .sp-post-nav__direction {
    justify-content: flex-end;
}

.sp-post-nav__title {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* ============================
   RELATED POSTS
   ============================ */

.sp-related {
    padding: 48px 0 56px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.sp-related__title {
    font-family: 'Tajawal', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin: 0 0 32px;
}

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

.sp-related-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sp-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.sp-related-card__img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f1f5f9;
}

.sp-related-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sp-related-card:hover .sp-related-card__img img {
    transform: scale(1.06);
}

.sp-related-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.sp-related-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sp-related-card__cat {
    display: inline-block;
    font-family: 'Tajawal', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #3E8E50;
    background: #E8F5E9;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.sp-related-card__title {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.5;
    margin: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-related-card__meta {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    color: #94a3b8;
}

/* ============================
   CTA Section
   ============================ */

.sp-cta {
    padding: 0 0 56px;
    background: #fff;
}

.sp-cta__box {
    background: linear-gradient(135deg, #0f172a 0%, #1B4332 60%, #2E7A3E 100%);
    border-radius: 20px;
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.sp-cta__box::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(62,142,80,0.2) 0%, transparent 70%);
    top: -100px;
    left: -50px;
    pointer-events: none;
}

.sp-cta__content {
    position: relative;
    z-index: 2;
}

.sp-cta__content h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}

.sp-cta__content p {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.7;
    max-width: 480px;
}

.sp-cta__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.sp-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
}

.sp-cta__btn--primary {
    background: #3E8E50;
    color: #fff;
}

.sp-cta__btn--primary:hover {
    background: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(62,142,80,0.4);
    color: #fff;
}

.sp-cta__btn--outline {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.2);
}

.sp-cta__btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-related__grid { grid-template-columns: repeat(2, 1fr); }

    .sp-layout {
        grid-template-columns: 1fr;
    }

    .sp-sidebar {
        position: static;
        display: flex;
        gap: 16px;
    }

    .sp-toc {
        flex: 1;
        margin-bottom: 0;
    }

    .sp-sidebar-share {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
        min-width: 200px;
    }

    .sp-sidebar-share__label {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .blog-hero { padding: 32px 0; }
    .blog-hero__title { font-size: 26px; }
    .blog-hero__desc { font-size: 14px; }
    .blog-grid { grid-template-columns: 1fr; gap: 16px; }

    .blog-card__meta { font-size: 13px; }
    .blog-card__cat { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }
    .blog-card__link { min-height: 44px; font-size: 14px; }
    .blog-card__title { font-size: 16px; }
    .blog-card__excerpt { font-size: 14px; }

    .blog-pagination a,
    .blog-pagination span {
        min-width: 44px;
        height: 44px;
        font-size: 15px;
    }

    .sp-header { padding: 24px 0 32px; }
    .sp-header__title { font-size: 24px; line-height: 1.6; }
    .sp-header__meta { gap: 12px; font-size: 13px; }
    .sp-breadcrumb { font-size: 12px; gap: 4px; }
    .sp-breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; }

    .sp-featured-image__wrap { border-radius: 12px; }
    .sp-featured-image__wrap img { max-height: 280px; }

    .sp-sidebar {
        flex-direction: column;
    }

    .sp-toc {
        max-height: 60px;
        overflow: hidden;
        transition: max-height 0.3s ease;
        cursor: pointer;
    }
    .sp-toc.expanded {
        max-height: 2000px;
    }
    .sp-toc__title::after {
        content: '▼';
        font-size: 10px;
        margin-right: auto;
    }
    .sp-toc.expanded .sp-toc__title::after {
        content: '▲';
    }

    .sp-toc__list a {
        min-height: 44px;
        display: flex;
        align-items: center;
        font-size: 14px;
    }

    .sp-sidebar-share {
        flex-direction: row;
        width: 100%;
    }

    .sp-share-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .sp-article { padding: 24px 20px; border-radius: 14px; }
    .sp-article p { font-size: 16px; }
    .sp-article h2 { font-size: 20px; }
    .sp-article h3 { font-size: 18px; }
    .sp-article li { font-size: 15px; }
    .sp-article table { font-size: 14px; display: block; overflow-x: auto; }
    .sp-article pre { font-size: 13px; }
    .sp-article blockquote { padding: 16px 18px; }

    .sp-share-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .sp-share-bar__btns .sp-share-btn {
        min-height: 44px;
    }

    .sp-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sp-tags a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        font-size: 14px;
    }

    .sp-post-nav { grid-template-columns: 1fr; }
    .sp-post-nav__item { min-height: 44px; }
    .sp-post-nav__item--prev { text-align: right; }
    .sp-post-nav__item--prev .sp-post-nav__direction { justify-content: flex-start; }

    .sp-related { padding: 36px 0 40px; }
    .sp-related__title { font-size: 20px; margin-bottom: 20px; }
    .sp-related__grid { grid-template-columns: 1fr; gap: 16px; }

    .sp-cta__box {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .sp-cta__content h2 { font-size: 20px; }
    .sp-cta__content p { max-width: 100%; font-size: 14px; }

    .sp-cta__actions {
        flex-direction: column;
        width: 100%;
    }

    .sp-cta__btn {
        justify-content: center;
        width: 100%;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .sp-header__author-pill {
        display: none;
    }

    .sp-header__title { font-size: 20px; }

    .sp-share-bar__btns .sp-share-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 44px;
    }

    .sp-article { padding: 20px 16px; }
    .sp-article p { font-size: 15px; }
    .sp-article h2 { font-size: 18px; margin: 24px 0 12px; }
    .sp-article h3 { font-size: 17px; }

    .blog-card__body { padding: 16px; }
    .blog-hero__title { font-size: 22px; }

    .sp-cta__box { padding: 24px 16px; }
}

@media (max-width: 360px) {
    .blog-hero__title { font-size: 20px; }
    .blog-hero__desc { font-size: 13px; }
    .sp-header__title { font-size: 18px; }
    .sp-article { padding: 16px 14px; }
    .sp-article p { font-size: 14px; }
    .sp-cta__btn { padding: 12px 16px; font-size: 14px; }
    .blog-card__title { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card__image img,
    .sp-related-card,
    .sp-related-card__img img,
    .sp-post-nav__item,
    .sp-cta__btn,
    .blog-card__link,
    .sp-share-btn,
    .blog-card__cat,
    .sp-tags a {
        transition: none !important;
    }
    .blog-card:hover,
    .sp-related-card:hover,
    .sp-post-nav__item:hover,
    .sp-cta__btn:hover {
        transform: none !important;
    }
    .blog-card:hover .blog-card__image img,
    .sp-related-card:hover .sp-related-card__img img {
        transform: none !important;
    }
}
