/* ==================== BLOG STYLES ==================== */
/* Standalone - no dependency on legal.css */

/* ===== Blog Hub Hero ===== */
.blog-hub-hero {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    overflow: hidden;
}

.blog-hub-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: blogOrbFloat 8s ease-in-out infinite;
}

.blog-hub-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: blogOrbFloat 10s ease-in-out infinite reverse;
}

@keyframes blogOrbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

.blog-hub-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.blog-hub-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Katana shine on title */
.blog-hub-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: blogShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes blogShine {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

.blog-hub-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ===== Blog Card Grid (Magazine Layout) ===== */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

/* ===== Blog Card with Cover Image ===== */
.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.1);
}

/* Cover Image */
.blog-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Category badge overlaid on cover */
.blog-card-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: inline-block;
    padding: 0.3rem 0.7rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
    background: rgba(139, 92, 246, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    z-index: 2;
}

/* Card Body */
.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    line-height: 1.35;
}

.blog-card-body p {
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    font-size: 0.88rem;
    flex: 1;
    margin-bottom: 1rem;
}

/* Card Footer */
.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-card-meta-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

.blog-card-meta-info .dot {
    opacity: 0.4;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #8B5CF6;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-card-link:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.blog-card-link svg {
    width: 14px;
    height: 14px;
}


/* ===== Blog Post - Full Width Hero ===== */
.blog-post-hero {
    position: relative;
    width: 100%;
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.blog-post-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.blog-post-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark gradient overlay for title readability */
.blog-post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 15, 0.3) 0%,
        rgba(10, 10, 15, 0.5) 40%,
        rgba(10, 10, 15, 0.85) 75%,
        rgba(10, 10, 15, 1) 100%
    );
    z-index: 1;
}

.blog-post-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.blog-post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
}

.blog-post-breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-post-breadcrumb a:hover {
    color: #8B5CF6;
}

.blog-post-breadcrumb .sep {
    color: rgba(255, 255, 255, 0.25);
}

.blog-post-breadcrumb .current {
    color: rgba(255, 255, 255, 0.7);
}

.blog-post-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.blog-post-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 600px;
}

.blog-post-hero-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}


/* ===== Blog Post Content Area ===== */
.blog-post-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.blog-post-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-post-content h2:first-child {
    margin-top: 0;
}

.blog-post-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-post-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
}

.blog-post-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.blog-post-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.blog-post-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: #8B5CF6;
    border-radius: 50%;
}

.blog-post-content ul li strong {
    color: rgba(255, 255, 255, 0.9);
}

.blog-post-content a {
    color: #8B5CF6;
    text-decoration: none;
}

.blog-post-content a:hover {
    color: #a78bfa;
}


/* ===== Callout Boxes ===== */
.blog-callout {
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-left: 3px solid #8B5CF6;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.blog-callout.warning {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.15);
    border-left-color: #f59e0b;
}

.blog-callout-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #8B5CF6;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.blog-callout.warning .blog-callout-title {
    color: #f59e0b;
}

.blog-callout p {
    font-size: 0.95rem !important;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0 !important;
}


/* ===== Stats Grid (Glass Morphism) ===== */
.blog-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.blog-stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.blog-stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.2);
}

.blog-stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 0.25rem;
}

.blog-stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
}


/* ===== Feature List with Accent Checkmarks ===== */
.blog-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.blog-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.25s ease;
}

.blog-feature-item:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
}

.blog-feature-item svg {
    width: 18px;
    height: 18px;
    stroke: #8B5CF6;
    flex-shrink: 0;
}


/* ===== CTA Section ===== */
.blog-cta-section {
    position: relative;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    text-align: center;
    overflow: hidden;
}

.blog-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.blog-cta-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
}

.blog-cta-section > p {
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 1.5rem !important;
    font-size: 0.95rem !important;
    line-height: 1.6;
    position: relative;
}

.btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-apply svg {
    width: 18px;
    height: 18px;
}


/* ===== Form Embed Container ===== */
.form-embed-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.form-embed-container iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    border-radius: 8px;
}

.form-placeholder {
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

.form-placeholder p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem !important;
}

.form-placeholder a {
    color: #8B5CF6;
    text-decoration: none;
    font-weight: 600;
}

.form-placeholder a:hover {
    color: #EC4899;
}


/* ===== Contact Box ===== */
.blog-contact-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.blog-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
}

.blog-contact-item + .blog-contact-item {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-contact-item svg {
    width: 20px;
    height: 20px;
    stroke: #8B5CF6;
    flex-shrink: 0;
}

.blog-contact-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
}

.blog-contact-item a:hover {
    color: #8B5CF6;
}

.blog-contact-item span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}


/* ===== Related Articles ===== */
.blog-related {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-related h2 {
    border-bottom: none !important;
    margin-top: 0 !important;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.blog-related-card {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-related-card:hover {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.1);
}

.blog-related-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.blog-related-card p {
    font-size: 0.85rem !important;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 0.75rem !important;
}

.blog-related-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #8B5CF6;
}

.blog-related-card:hover .blog-related-link {
    color: #a78bfa;
}

.blog-related-cta {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-related-cta a {
    color: #8B5CF6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.blog-related-cta a:hover {
    color: #a78bfa;
}


/* ===== Responsive ===== */
@media (max-width: 768px) {
    .blog-hub-hero {
        padding: 130px 0 50px;
    }

    .blog-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem 4rem;
    }

    .blog-post-hero {
        min-height: 45vh;
    }

    .blog-post-hero-content {
        padding: 0 1rem 2rem;
    }

    .blog-post-content {
        padding: 2rem 1rem 4rem;
    }

    .blog-stats-grid {
        grid-template-columns: 1fr;
    }

    .blog-feature-list {
        grid-template-columns: 1fr;
    }

    .blog-cta-section {
        padding: 2rem 1.25rem;
    }

    .form-embed-container {
        padding: 1rem;
    }

    .form-embed-container iframe {
        min-height: 500px;
    }

    .blog-related-grid {
        grid-template-columns: 1fr;
    }
}
