/* ============================================
   Article Styles — Applied Minds AI
   Visual system for blog posts and long-form content
   Consultry palette: cream/white/blue
   ============================================ */

/* Article Header — cream background */
.am-article-header {
    padding: 5rem 0 3rem;
    background: #fafaf7;
    color: var(--am-text);
    position: relative;
    overflow: hidden;
}

.am-article-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(28,79,163,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
}

.am-article-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14,42,71,0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 6s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.am-article-header__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--am-gutter);
    position: relative;
    z-index: 1;
}

.am-article-header .am-series-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: rgba(28,79,163,0.1);
    border: 1px solid rgba(28,79,163,0.2);
    color: var(--am-accent);
    font-size: var(--am-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.am-article-header .am-reading-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: rgba(14,42,71,0.06);
    color: var(--am-gray-500);
    font-size: var(--am-text-xs);
    font-weight: 500;
    border-radius: 2rem;
    margin-left: 0.75rem;
}

.am-article-header h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--am-primary);
    margin-bottom: 1.25rem;
}

.am-article-header .am-subtitle {
    font-size: var(--am-text-xl);
    color: var(--am-text-light);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.am-article-header .am-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: var(--am-text-sm);
    color: var(--am-gray-500);
}

/* Rage-bait red accent variant — cream base with red accents */
.am-article-header--hot {
    background: linear-gradient(135deg, #fafaf7 0%, #fef8f6 100%);
}

.am-article-header--hot::before {
    background: radial-gradient(circle, rgba(239,68,68,0.08) 0%, transparent 70%);
}

.am-article-header--hot .am-series-badge {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.2);
    color: #dc2626;
}

.am-article-header--hot h1 .am-hot-word {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Proposal/solutions blue accent variant */
.am-article-header--solutions {
    background: linear-gradient(135deg, #fafaf7 0%, #f5f8fc 100%);
}

.am-article-header--solutions::before {
    background: radial-gradient(circle, rgba(28,79,163,0.08) 0%, transparent 70%);
}

.am-article-header--solutions .am-series-badge {
    background: rgba(28,79,163,0.1);
    border-color: rgba(28,79,163,0.2);
    color: var(--am-accent);
}

/* ============================================
   Article Body
   ============================================ */
.am-article-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem var(--am-gutter) 4rem;
    font-size: var(--am-text-lg);
    line-height: 1.8;
}

.am-article-body h2 {
    font-size: var(--am-text-3xl);
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--am-border);
}

.am-article-body h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.am-article-body h3 {
    font-size: var(--am-text-2xl);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.am-article-body p {
    margin-bottom: 1.5rem;
    color: var(--am-text-light);
}

.am-article-body ul, .am-article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.am-article-body li {
    margin-bottom: 0.5rem;
    color: var(--am-text-light);
}

/* ============================================
   TL;DR Box
   ============================================ */
.am-tldr {
    background: linear-gradient(135deg, var(--am-accent-light) 0%, #EDE9FE 100%);
    border-left: 4px solid var(--am-accent);
    border-radius: 0 var(--am-radius-lg) var(--am-radius-lg) 0;
    padding: 2rem 2.5rem;
    margin: 0 0 3rem 0;
}

.am-tldr__label {
    font-family: var(--am-font-mono);
    font-size: var(--am-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--am-accent);
    margin-bottom: 0.75rem;
}

.am-tldr p {
    font-size: var(--am-text-base);
    color: var(--am-text);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.am-tldr p:last-child {
    margin-bottom: 0;
}

.am-tldr strong {
    color: var(--am-primary);
}

/* ============================================
   Pull Quotes
   ============================================ */
.am-pullquote {
    position: relative;
    margin: 3rem -2rem;
    padding: 2.5rem 3rem;
    background: var(--am-gray-50);
    border-radius: var(--am-radius-xl);
    border: none;
    transition: transform 0.4s ease;
}

.am-pullquote::before {
    content: '\201C';
    position: absolute;
    top: -0.25rem;
    left: 1.5rem;
    font-size: 5rem;
    font-family: serif;
    color: var(--am-accent);
    opacity: 0.3;
    line-height: 1;
}

.am-pullquote p {
    font-size: var(--am-text-xl);
    font-weight: 600;
    color: var(--am-text);
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.am-pullquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: var(--am-text-sm);
    font-style: normal;
    color: var(--am-text-light);
}

/* Hot/rage variant */
.am-pullquote--hot {
    background: linear-gradient(135deg, #FEF2F2, #FFF7ED);
    border-left: 4px solid #ef4444;
}

.am-pullquote--hot::before {
    color: #ef4444;
}

/* ============================================
   Stat Callouts
   ============================================ */
.am-stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.am-stat-row--4x {
    grid-template-columns: repeat(2, 1fr);
}

.am-stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--am-gray-50);
    border-radius: var(--am-radius-lg);
    border: 1px solid var(--am-border);
    transition: all var(--am-transition);
}

.am-stat-card:hover {
    border-color: var(--am-accent);
    transform: translateY(-2px);
    box-shadow: var(--am-shadow-md);
}

.am-stat-card__number {
    font-size: var(--am-text-4xl);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--am-accent) 0%, #0E2A47 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.am-stat-card--danger .am-stat-card__number {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.am-stat-card__label {
    font-size: var(--am-text-sm);
    color: var(--am-text-light);
    font-weight: 500;
}

.am-stat-card__source {
    font-size: var(--am-text-xs);
    color: var(--am-gray-400);
    margin-top: 0.25rem;
}

/* ============================================
   Callout Boxes
   ============================================ */
.am-callout {
    padding: 1.75rem 2rem;
    border-radius: var(--am-radius-lg);
    margin: 2rem 0;
    border-left: 4px solid;
    transition: border-left-width 0.3s ease;
}

.am-callout:hover {
    border-left-width: 6px;
}

.am-callout--warning {
    background: #FFFBEB;
    border-color: #F59E0B;
}

.am-callout--danger {
    background: #FEF2F2;
    border-color: #EF4444;
}

.am-callout--info {
    background: var(--am-accent-light);
    border-color: var(--am-accent);
}

.am-callout--success {
    background: #ECFDF5;
    border-color: #10B981;
}

.am-callout__label {
    font-family: var(--am-font-mono);
    font-size: var(--am-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.am-callout--warning .am-callout__label { color: #D97706; }
.am-callout--danger .am-callout__label { color: #DC2626; }
.am-callout--info .am-callout__label { color: var(--am-accent); }
.am-callout--success .am-callout__label { color: #059669; }

.am-callout p {
    font-size: var(--am-text-base);
    color: var(--am-text);
    margin-bottom: 0;
}

/* ============================================
   Series Navigation
   ============================================ */
.am-series-nav {
    background: var(--am-gray-50);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-xl);
    padding: 2rem 2.5rem;
    margin: 3rem 0;
}

.am-series-nav__title {
    font-family: var(--am-font-mono);
    font-size: var(--am-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--am-accent);
    margin-bottom: 1rem;
}

.am-series-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.am-series-nav__list li {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--am-border);
    font-size: var(--am-text-sm);
}

.am-series-nav__list li:last-child {
    border-bottom: none;
}

.am-series-nav__list li.active {
    font-weight: 700;
    color: var(--am-text);
}

.am-series-nav__list li.active::before {
    content: '\2192 ';
    color: var(--am-accent);
}

.am-series-nav__list a {
    color: var(--am-text-light);
}

.am-series-nav__list a:hover {
    color: var(--am-accent);
}

/* ============================================
   Media Placeholder (legacy)
   ============================================ */
.am-media-placeholder {
    background: linear-gradient(135deg, var(--am-gray-100) 0%, var(--am-gray-50) 100%);
    border: 2px dashed var(--am-border);
    border-radius: var(--am-radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    margin: 2.5rem 0;
}

.am-media-placeholder__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.am-media-placeholder__label {
    font-size: var(--am-text-sm);
    font-weight: 600;
    color: var(--am-text);
    margin-bottom: 0.25rem;
}

.am-media-placeholder__hint {
    font-size: var(--am-text-xs);
    color: var(--am-gray-400);
}

/* ============================================
   Image Placeholder (Elementor-friendly)
   Replace <figure class="am-image-placeholder">
   with Elementor Image widget or native <img>.
   ============================================ */
.am-image-placeholder {
    margin: 2.5rem 0;
    padding: 0;
    border: none;
}

.am-image-placeholder__frame {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    border: 2px dashed var(--am-border);
    border-radius: var(--am-radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.am-image-placeholder__frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, transparent 48%, var(--am-border) 48%, var(--am-border) 52%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, var(--am-border) 48%, var(--am-border) 52%, transparent 52%);
    background-size: 20px 20px;
    opacity: 0.15;
    pointer-events: none;
}

.am-image-placeholder__icon {
    font-family: var(--am-font-mono);
    font-size: var(--am-text-sm);
    font-weight: 700;
    color: var(--am-gray-400);
    background: white;
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    padding: 0.25rem 0.75rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.am-image-placeholder__caption {
    position: relative;
    z-index: 1;
    font-size: var(--am-text-sm);
    color: var(--am-text-light);
    line-height: 1.6;
    max-width: 600px;
    text-align: center;
    padding: 0;
}

.am-image-placeholder__caption strong {
    display: block;
    font-size: var(--am-text-base);
    color: var(--am-text);
    margin-bottom: 0.5rem;
}

.am-image-placeholder__spec {
    display: inline-block;
    margin-top: 0.75rem;
    font-family: var(--am-font-mono);
    font-size: var(--am-text-xs);
    color: var(--am-gray-400);
    background: white;
    border: 1px solid var(--am-border);
    border-radius: 2rem;
    padding: 0.25rem 0.75rem;
}

/* Animation placeholder variant */
.am-image-placeholder--animation .am-image-placeholder__frame {
    background: linear-gradient(135deg, #fefce8 0%, #f0fdf4 50%, #eff6ff 100%);
    border-color: var(--am-accent);
    border-style: dashed;
}

.am-image-placeholder--animation .am-image-placeholder__icon {
    border-color: var(--am-accent);
    color: var(--am-accent);
}

/* When real image is inserted: hide placeholder frame, show image */
.am-image-placeholder img {
    width: 100%;
    height: auto;
    border-radius: var(--am-radius-xl);
    display: block;
}

.am-image-placeholder:has(img) .am-image-placeholder__frame {
    display: none;
}

.am-image-placeholder:has(img) .am-image-placeholder__caption {
    margin-top: 0.75rem;
    font-style: italic;
    color: var(--am-gray-400);
}

/* ============================================
   Bio Page — Hero
   ============================================ */
.am-bio-hero {
    background: #fafaf7;
    padding: 4rem 0 3rem;
    color: var(--am-text);
    position: relative;
    overflow: hidden;
}

.am-bio-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(28,79,163,0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
}

.am-bio-hero__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--am-gutter);
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.am-bio-hero__photo {
    justify-self: center;
}

.am-bio-hero__photo .am-image-placeholder {
    margin: 0;
}

.am-bio-hero__photo .am-image-placeholder__frame,
.am-bio-hero__photo .am-image-placeholder__frame--portrait {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    min-height: auto;
    border-color: rgba(14,42,71,0.15);
    background: linear-gradient(135deg, rgba(28,79,163,0.03) 0%, rgba(28,79,163,0.06) 100%);
}

.am-bio-hero__photo .am-image-placeholder__frame::before {
    border-radius: 50%;
}

.am-bio-hero__photo .am-image-placeholder__caption {
    color: var(--am-gray-500);
}

.am-bio-hero__photo .am-image-placeholder__caption strong {
    color: var(--am-text);
}

.am-bio-hero__photo .am-image-placeholder__spec {
    background: rgba(28,79,163,0.05);
    border-color: rgba(28,79,163,0.15);
    color: var(--am-gray-500);
}

/* When real headshot is added */
.am-bio-hero__photo .am-image-placeholder img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(28,79,163,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.am-bio-hero__intro h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
    color: var(--am-primary);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.am-bio-hero__title {
    font-family: var(--am-font-mono);
    font-size: var(--am-text-sm);
    font-weight: 500;
    color: var(--am-accent);
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.am-bio-hero__tagline {
    font-size: var(--am-text-lg);
    color: var(--am-text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.am-bio-hero__links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.am-bio-hero__links .am-btn--outline {
    background: transparent;
    border: 1px solid var(--am-accent);
    color: var(--am-accent);
    padding: 0.75rem 1.5rem;
    border-radius: var(--am-radius);
    font-weight: 600;
    font-size: var(--am-text-sm);
    text-decoration: none;
    transition: all var(--am-transition);
}

.am-bio-hero__links .am-btn--outline:hover {
    background: var(--am-accent);
    color: white;
}

/* Bio stat row — force 2x2 grid */
.am-stat-row--bio,
.am-stat-row--2x2 {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
    margin-bottom: 2rem;
}

/* ============================================
   Bio Page — Credentials
   ============================================ */
.am-bio-credentials {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}

.am-bio-credential {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--am-gray-50);
    border-radius: var(--am-radius-lg);
    border: 1px solid var(--am-border);
    transition: all var(--am-transition);
}

.am-bio-credential:hover {
    border-color: var(--am-accent);
    box-shadow: var(--am-shadow-sm);
}

.am-bio-credential__icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--am-accent-light);
    border-radius: var(--am-radius);
}

.am-bio-credential__content h4 {
    font-size: var(--am-text-base);
    font-weight: 700;
    color: var(--am-text);
    margin-bottom: 0.25rem;
}

.am-bio-credential__content p {
    font-size: var(--am-text-sm);
    color: var(--am-text-light);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ============================================
   Bio Page — Services grid
   ============================================ */
.am-bio-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0 2.5rem;
}

.am-bio-services .am-callout {
    margin: 0;
}

/* ============================================
   CTA Banner (in-article) — cream background
   ============================================ */
.am-article-cta {
    background: #fafaf7;
    color: var(--am-text);
    border-radius: var(--am-radius-xl);
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--am-border);
}

.am-article-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(28,79,163,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.am-article-cta h3 {
    color: var(--am-primary);
    font-size: var(--am-text-2xl);
    margin-bottom: 0.75rem;
    position: relative;
}

.am-article-cta p {
    color: var(--am-text-light);
    margin-bottom: 1.5rem;
    position: relative;
}

/* ============================================
   Buttons & Links — shared classes
   ============================================ */

/* Arrow link — "See This Service →", "Read →" */
.am-link-arrow {
    font-family: var(--am-font-body);
    font-size: var(--am-text-sm);
    font-weight: 600;
    color: var(--am-accent);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color var(--am-transition);
}

.am-link-arrow:hover {
    color: var(--am-accent-hover);
}

/* Back nav link — "← Back to Insights" */
.am-link-back {
    font-family: var(--am-font-body);
    font-size: var(--am-text-sm);
    font-weight: 600;
    color: #c9a84c;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color var(--am-transition);
}

.am-link-back:hover {
    color: #b08d3a;
}

/* Primary button — blue bg, white text */
.am-btn-primary {
    display: inline-block;
    font-family: var(--am-font-body);
    font-size: var(--am-text-sm);
    font-weight: 600;
    color: var(--am-white);
    background: var(--am-accent);
    padding: 0.875rem 2rem;
    border-radius: var(--am-radius);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background var(--am-transition);
    border: none;
    cursor: pointer;
}

.am-btn-primary:hover {
    background: var(--am-accent-hover);
    color: var(--am-white);
}

/* Outline/ghost button */
.am-btn-outline {
    display: inline-block;
    font-family: var(--am-font-body);
    font-size: var(--am-text-sm);
    font-weight: 600;
    color: var(--am-accent);
    background: transparent;
    padding: 0.875rem 2rem;
    border: 1px solid var(--am-accent);
    border-radius: var(--am-radius);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: all var(--am-transition);
    cursor: pointer;
}

.am-btn-outline:hover {
    background: var(--am-accent);
    color: var(--am-white);
}

/* ============================================
   CSS Animations — scroll-triggered (CSS-only)
   ============================================ */

/* Stat card fade-in on scroll */
@supports (animation-timeline: view()) {
    .am-stat-card {
        animation: stat-fade-in linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 30%;
    }
}

@keyframes stat-fade-in {
    from { opacity: 0.4; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pull quote scale on scroll */
@supports (animation-timeline: view()) {
    .am-pullquote {
        animation: quote-scale linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 40%;
    }
}

@keyframes quote-scale {
    from { opacity: 0.6; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .am-article-header {
        padding: 3rem 0 2rem;
    }
    .am-article-body {
        font-size: var(--am-text-base);
    }
    .am-pullquote {
        margin: 2rem 0;
        padding: 1.5rem 2rem;
    }
    .am-stat-row,
    .am-stat-row--4x {
        grid-template-columns: 1fr 1fr;
    }
    .am-series-nav {
        padding: 1.5rem;
    }
    .am-article-cta {
        padding: 2rem 1.5rem;
    }
    .am-image-placeholder__frame {
        padding: 1.5rem 1rem;
        min-height: 150px;
    }
    .am-image-placeholder__caption {
        font-size: var(--am-text-xs);
    }
    .am-bio-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .am-bio-hero__photo {
        justify-self: center;
    }
    .am-bio-hero__photo .am-image-placeholder__frame,
    .am-bio-hero__photo .am-image-placeholder__frame--portrait {
        width: 180px;
        height: 180px;
    }
    .am-bio-hero__photo .am-image-placeholder img {
        width: 180px;
        height: 180px;
    }
    .am-bio-hero__links {
        justify-content: center;
    }
    .am-bio-services {
        grid-template-columns: 1fr;
    }
    .am-bio-credential {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ============================================
   Case Study Card Grid
   ============================================ */
.am-case-study-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.am-case-study-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.am-case-study-card:hover {
    border-color: var(--am-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(28, 79, 163, 0.12);
}

.am-case-study-card__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--am-accent);
    background: rgba(28, 79, 163, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    width: fit-content;
    margin-bottom: 1rem;
}

.am-case-study-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--am-text);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.am-case-study-card__desc {
    font-size: 0.9rem;
    color: var(--am-text-light);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.am-case-study-card__cta {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--am-accent);
    transition: color 0.2s;
}

.am-case-study-card:hover .am-case-study-card__cta {
    color: var(--am-accent-hover);
}

@media (max-width: 768px) {
    .am-case-study-grid {
        grid-template-columns: 1fr;
    }
}
