* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.page-blog {
    font-family: 'Cairo', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1e1e1e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 48px;
    line-height: 1.55;
    position: relative;
    background-color: #f8fafc;
    background-image:
        radial-gradient(ellipse 90% 60% at 0% 0%, rgba(58, 168, 255, 0.11), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 5%, rgba(245, 124, 0, 0.09), transparent 50%),
        radial-gradient(ellipse 55% 45% at 85% 75%, rgba(33, 150, 243, 0.08), transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255, 112, 67, 0.07), transparent 50%),
        radial-gradient(ellipse 40% 30% at 50% 45%, rgba(58, 168, 255, 0.035), transparent 60%);
    background-attachment: fixed;
}

body.page-blog::before,
body.page-blog::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(64px);
    opacity: 0.55;
}

body.page-blog::before {
    width: min(58vw, 520px);
    height: min(58vw, 520px);
    top: -8%;
    left: -6%;
    background: radial-gradient(circle at 35% 40%, rgba(58, 168, 255, 0.22), rgba(33, 150, 243, 0.08) 45%, transparent 70%);
    animation: blog-drift-a 28s ease-in-out infinite alternate;
}

body.page-blog::after {
    width: min(52vw, 460px);
    height: min(52vw, 460px);
    right: -4%;
    bottom: 8%;
    background: radial-gradient(circle at 60% 45%, rgba(245, 124, 0, 0.18), rgba(255, 140, 60, 0.07) 48%, transparent 72%);
    animation: blog-drift-b 34s ease-in-out infinite alternate;
}

@keyframes blog-drift-a {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(6%, 10%) rotate(12deg) scale(1.08); }
}

@keyframes blog-drift-b {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(-8%, -6%) rotate(-10deg) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    body.page-blog::before,
    body.page-blog::after {
        animation: none;
    }
}

.blog-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.blog-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.blog-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.55rem;
    text-decoration: none;
    color: inherit;
}

.blog-brand-logo {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.blog-brand-logo .red {
    color: #f57c00;
}

.blog-brand-mark {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5aa8d8;
    letter-spacing: 0.04em;
}

.blog-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-nav a {
    font-size: 0.92rem;
    font-weight: 600;
    color: #3aa8ff;
    text-decoration: none;
}

.blog-nav a:hover {
    color: #1e90e8;
    text-decoration: underline;
}

.blog-panel {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 1.75rem;
    padding: 2rem 2.25rem 2rem;
    box-shadow: none;
}

.blog-hero {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8e8e8;
}

.blog-hero h1 {
    font-size: clamp(1.65rem, 4vw, 2.1rem);
    font-weight: 700;
    line-height: 1.25;
    color: #1e1e1e;
    margin-bottom: 0.5rem;
}

.blog-hero p {
    font-size: 1.05rem;
    color: #555;
    max-width: 38rem;
}

.blog-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1.15rem 1.2rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(58, 168, 255, 0.14);
    background:
        radial-gradient(ellipse 90% 80% at 8% 20%, rgba(58, 168, 255, 0.06), transparent 55%),
        #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
    border-color: rgba(58, 168, 255, 0.28);
    box-shadow: 0 4px 16px rgba(58, 168, 255, 0.08);
    transform: translateY(-1px);
}

.blog-card:active {
    transform: none;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    color: #888;
    letter-spacing: 0.02em;
}

.blog-card-meta time {
    color: #5aa8d8;
    font-weight: 600;
}

.blog-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1e1e1e;
    margin-bottom: 0.4rem;
}

.blog-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.45;
}

.blog-card-more {
    display: inline-block;
    margin-top: 0.65rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #3aa8ff;
}

.blog-article-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid #e8e8e8;
}

.blog-back {
    display: inline-block;
    margin-bottom: 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3aa8ff;
    text-decoration: none;
}

.blog-back:hover {
    color: #1e90e8;
    text-decoration: underline;
}

.blog-article-header h1 {
    font-size: clamp(1.55rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    color: #1e1e1e;
    margin-bottom: 0.65rem;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.88rem;
    color: #888;
}

.blog-article-meta time {
    color: #5aa8d8;
    font-weight: 600;
}

.blog-content {
    font-size: 1.02rem;
    color: #333;
}

.blog-content > * + * {
    margin-top: 1rem;
}

.blog-content h2 {
    margin-top: 1.85rem;
    margin-bottom: 0.55rem;
    font-size: 1.28rem;
    font-weight: 700;
    color: #1e1e1e;
    line-height: 1.3;
}

.blog-content h3 {
    margin-top: 1.4rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: #222;
}

.blog-content p {
    line-height: 1.65;
}

.blog-content ul,
.blog-content ol {
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.blog-content li {
    line-height: 1.55;
}

.blog-content a {
    color: #3aa8ff;
    font-weight: 600;
    text-decoration: none;
}

.blog-content a:hover {
    color: #1e90e8;
    text-decoration: underline;
}

.blog-content strong {
    font-weight: 700;
    color: #1e1e1e;
}

.blog-callout {
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    border: 1px solid rgba(58, 168, 255, 0.16);
    background:
        radial-gradient(ellipse 90% 80% at 10% 20%, rgba(58, 168, 255, 0.08), transparent 55%),
        #f8fbfe;
}

.blog-callout p {
    margin: 0;
    font-size: 0.98rem;
    color: #444;
}

.blog-cta {
    margin-top: 2rem;
    padding-top: 1.35rem;
    border-top: 1px solid #e8e8e8;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.blog-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 1.1rem;
    border-radius: 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.blog-cta a:hover {
    transform: translateY(-1px);
}

.blog-cta-primary {
    color: #fff;
    background: linear-gradient(135deg, #3aa8ff 0%, #2196f3 100%);
    box-shadow: 0 6px 18px rgba(58, 168, 255, 0.3);
}

.blog-cta-secondary {
    color: #2b7cb8;
    background: rgba(58, 168, 255, 0.1);
    border: 1px solid rgba(58, 168, 255, 0.18);
}

.blog-footer {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: #888;
}

.blog-footer a {
    color: #3aa8ff;
    font-weight: 600;
    text-decoration: none;
}

.blog-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 560px) {
    body.page-blog {
        padding: 20px 14px 36px;
    }

    .blog-panel {
        padding: 1.35rem 1.15rem 1.4rem;
        border-radius: 1.35rem;
    }

    .blog-card {
        padding: 1rem;
    }
}
