/* blog-menu.html — blog list & cards */

.blog-section {
    position: relative;
    isolation: isolate;
    padding-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #f8fafc 100%);
}

.blog-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 0% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 20%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

html.dark .blog-section::before {
    background:
        radial-gradient(ellipse 55% 45% at 0% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 20%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
}

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

.blog-list-head {
    max-width: 640px;
    margin: 0 auto clamp(1.75rem, 4vw, 2.25rem);
    text-align: center;
}

.blog-list-eyebrow {
    display: inline-flex;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 999px;
}

html.dark .blog-list-eyebrow {
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(165, 180, 252, 0.35);
}

.blog-list-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

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

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

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

.blog-list-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1.75rem;
}

.blog-list-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
}

html.dark .blog-list-legend-item {
    color: #94a3b8;
    background: #1e293b;
    border-color: #334155;
}

.blog-list-legend-item::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6366f1;
}

.blog-list-legend-item--soon::before {
    background: #f59e0b;
}

.blog-grid {
    display: flex;
    flex-wrap: wrap;
}

.blog-grid > [class*='w-full'] {
    display: flex;
    align-items: stretch;
}

/* Card shell */
.blog-section .blog-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-section .blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.14);
}

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

html.dark .blog-section .blog-card:hover {
    border-color: rgba(165, 180, 252, 0.45);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.18);
}

.blog-card__media {
    position: relative;
    overflow: hidden;
}

.blog-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.35) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.blog-card:hover .blog-card__media::after {
    opacity: 1;
}

.blog-section .blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

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

.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.35rem 1.35rem 1.25rem;
}

.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.blog-card__date {
    display: inline-flex;
    padding: 0.28rem 0.65rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.28);
}

.blog-card__tag {
    display: inline-flex;
    padding: 0.22rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 6px;
}

html.dark .blog-card__tag {
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(129, 140, 248, 0.3);
}

.blog-card__tag--soon {
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
}

html.dark .blog-card__tag--soon {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(251, 191, 36, 0.3);
}

.blog-section .blog-card h3 {
    margin: 0 0 0.65rem;
    line-height: 1.3;
}

.blog-section .blog-card h3 a {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

html.dark .blog-section .blog-card h3 a {
    color: #f8fafc;
}

.blog-section .blog-card h3 a:hover {
    color: #4f46e5 !important;
}

html.dark .blog-section .blog-card h3 a:hover {
    color: #c7d2fe !important;
}

.blog-card-description {
    position: relative;
    max-height: 4.5rem;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.blog-card-description.expanded {
    max-height: 500px;
}

.blog-card-description p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #64748b;
}

html.dark .blog-card-description p {
    color: #94a3b8;
}

.blog-card-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5rem;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

html.dark .blog-card-description::after {
    background: linear-gradient(to bottom, transparent, #1e293b);
}

.blog-card-description.expanded::after {
    opacity: 0;
}

.read-more-btn {
    margin-top: auto;
    padding: 0.5rem 0;
    color: #4f46e5;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.read-more-btn:hover {
    color: #7c3aed;
    gap: 0.5rem;
}

html.dark .read-more-btn {
    color: #a5b4fc;
}

html.dark .read-more-btn:hover {
    color: #c4b5fd;
}

.read-more-btn svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.read-more-btn.expanded svg {
    transform: rotate(180deg);
}

/* Coming soon cards */
.blog-card--soon {
    border-style: dashed;
    border-color: #cbd5e1;
}

.blog-card--soon:hover {
    transform: translateY(-3px);
    border-color: #94a3b8;
}

html.dark .blog-card--soon {
    border-color: #475569;
}

.blog-card--soon img {
    filter: grayscale(0.35) brightness(0.95);
}

.blog-card__soon-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    padding: 0.3rem 0.65rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    border-radius: 8px;
}

.blog-card--soon h3 a {
    color: #64748b !important;
    pointer-events: none;
    cursor: default;
}

html.dark .blog-card--soon h3 a {
    color: #94a3b8 !important;
}

.blog-card--soon .read-more-btn {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .blog-section .blog-card:hover,
    .blog-card:hover img {
        transform: none;
    }
}
