/* Blog specific CSS */

.blog-hero {
    position: relative;
    padding: 8rem 2rem 0;
    background: #f8fafc; /* Match body background */
    overflow: hidden;
    text-align: center;
}

.blog-hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 1;
}

.blog-hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
}

.blog-hero-content {
    max-width: 950px;
    margin: -120px auto 4rem;
    text-align: center;
    position: relative;
    z-index: 3;
    padding: 4rem 3rem;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), inset 0 0 40px rgba(255, 255, 255, 0.02);
    color: white;
}

.blog-meta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #e2e8f0;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.blog-category {
    color: #38bdf8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-category::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px #38bdf8;
}

.blog-title {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 0;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.blog-content-wrapper {
    max-width: 850px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.read-next-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 2px solid #e2e8f0;
}

.read-next-section h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    color: #0f172a;
}

.read-next-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .read-next-grid {
        grid-template-columns: 1fr;
    }
}

.cta-widget {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    color: white;
    margin: 4rem 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.cta-widget h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-widget p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

.recent-post-thumb {
    width: 100px;
    height: 75px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-info {
    flex-grow: 1;
}

.recent-post-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.recent-post-title:hover {
    color: #38bdf8;
}

.recent-post-date {
    font-size: 0.85rem;
    color: #64748b;
}

.blog-content {
    max-width: 100%;
    font-family: 'Georgia', serif;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 4rem;
}

.blog-content p {
    margin-bottom: 1.8rem;
}

.blog-content h2, .blog-content h3 {
    font-family: 'Source Sans Pro', sans-serif;
    color: #0f172a;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
}

.blog-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: #0f172a;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #1e293b;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-muted);
    margin: 2rem 0;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
}

.blog-content a {
    color: var(--primary);
    text-decoration: underline;
}

.share-widget {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 16px;
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
    color: #0c4a6e;
    position: relative;
    overflow: hidden;
}

.share-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(14, 165, 233, 0.05) 100%);
    pointer-events: none;
}

.share-widget h3 {
    margin-bottom: 0.5rem;
    color: #0c4a6e;
}

.share-widget p {
    color: #0369a1;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-ai-share {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-ai-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
    color: white;
}

/* Resources Page Grid */
.resources-header {
    padding: 8rem 0 2rem;
    text-align: center;
    background: var(--bg-dark);
    color: white;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.resource-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.resource-img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.resource-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.resource-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.resource-title {
    font-size: 1.25rem;
    margin: 0.75rem 0;
    color: var(--text-main);
    text-decoration: none;
}

.resource-card a.resource-title:hover {
    color: var(--primary);
}

.resource-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.resource-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: auto;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Case Study Redesign Styles
   ========================================================================== */

/* Hero Section */
.case-study-hero {
    background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.12) 0%, rgba(15, 23, 42, 0.98) 100%), #0f172a;
    padding: 8rem 0 4rem;
    color: white;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.case-study-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.case-study-category {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.case-study-hero .hero-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 900;
    color: white;
}

/* KPI Metrics Dashboard inside Hero */
.kpi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.kpi-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
}

.kpi-number {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: #38bdf8;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Source Sans Pro', sans-serif;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.kpi-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Two-column Layout */
.case-study-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3.5rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.case-study-main {
    min-width: 0;
}

.case-study-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Sidebar Meta Box */
.sidebar-meta-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.sidebar-meta-box h4 {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.meta-info-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.meta-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-info-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.meta-info-value {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.tech-pill {
    background: var(--bg-light);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

/* Sidebar CTA */
.sidebar-cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15,23,42,0.15);
}

.sidebar-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(56,189,248,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.sidebar-cta-box h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: white;
}

.sidebar-cta-box p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.sidebar-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #38bdf8;
    color: #0f172a;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.sidebar-cta-btn:hover {
    background: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .case-study-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin: 3rem auto;
    }
    
    .case-study-sidebar {
        position: static;
    }
}

