/* index.html — Blog / Recent News section */

#blog.index-blog-section {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 40%, #f8fafc 100%);
}

#blog.index-blog-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 15% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 85% 90%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

html.dark #blog.index-blog-section {
    background: linear-gradient(180deg, #0f172a 0%, #111827 40%, #0f172a 100%);
}

html.dark #blog.index-blog-section::before {
    background:
        radial-gradient(ellipse 60% 50% at 15% 10%, rgba(16, 185, 129, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 85% 90%, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
}

#blog .container {
    position: relative;
    z-index: 1;
}

/* Header */
.index-blog-head {
    max-width: 640px;
    margin: 0 auto 2.25rem;
    text-align: center;
}

.index-blog-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.875rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 999px;
}

html.dark .index-blog-eyebrow {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(52, 211, 153, 0.35);
}

.index-blog-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0f172a;
}

html.dark .index-blog-title {
    color: #f8fafc;
}

.index-blog-title-accent {
    background: linear-gradient(135deg, #059669 0%, #2563eb 55%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

html.dark .index-blog-title-accent {
    background: linear-gradient(135deg, #34d399 0%, #60a5fa 50%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.index-blog-lead {
    margin: 0 auto 1.15rem;
    max-width: 500px;
    font-size: 1rem;
    line-height: 1.65;
    color: #64748b;
}

html.dark .index-blog-lead {
    color: #94a3b8;
}

.index-blog-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
}

.index-blog-notice::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
    animation: index-blog-pulse 2s ease-in-out infinite;
}

@keyframes index-blog-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

html.dark .index-blog-notice {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
}

/* Grid */
.index-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 1120px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .index-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .index-blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Card */
#blog .index-blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

#blog .index-blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

html.dark #blog .index-blog-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

html.dark #blog .index-blog-card:hover {
    border-color: rgba(52, 211, 153, 0.35);
}

#blog .index-blog-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

html.dark #blog .index-blog-card-media {
    background: #0f172a;
}

#blog .index-blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

#blog .index-blog-card:hover .index-blog-card-media img {
    transform: scale(1.05);
}

#blog .index-blog-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.35) 100%);
    pointer-events: none;
}

#blog .index-blog-date {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    border-radius: 8px;
}

#blog .index-blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.15rem 1.2rem 1.2rem;
}

#blog .index-blog-status {
    align-self: flex-start;
    margin-bottom: 0.65rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 6px;
}

html.dark #blog .index-blog-status {
    color: #94a3b8;
    background: #0f172a;
}

#blog .index-blog-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    transition: color 0.2s ease;
}

#blog .index-blog-card:hover .index-blog-card-title {
    color: #059669;
}

html.dark #blog .index-blog-card-title {
    color: #f1f5f9;
}

html.dark #blog .index-blog-card:hover .index-blog-card-title {
    color: #34d399;
}

#blog .index-blog-card-excerpt {
    flex: 1;
    margin: 0 0 0.85rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html.dark #blog .index-blog-card-excerpt {
    color: #94a3b8;
}

#blog .index-blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #2563eb;
    transition: gap 0.2s ease;
}

html.dark #blog .index-blog-card-link {
    color: #93c5fd;
}

#blog .index-blog-card:hover .index-blog-card-link {
    gap: 0.55rem;
}

#blog .index-blog-card-link svg {
    width: 1rem;
    height: 1rem;
}

/* Footer */
.index-blog-foot {
    margin-top: 2rem;
    text-align: center;
}

.index-blog-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #059669 0%, #2563eb 100%);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.index-blog-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}

html.dark .index-blog-view-all {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    #blog .index-blog-card:hover,
    .index-blog-view-all:hover {
        transform: none;
    }

    #blog .index-blog-card-media img,
    .index-blog-notice::before {
        animation: none;
        transition: none;
    }
}
