/* ═══════════════════════════════════════════════════════════════════
   TECHNE COMPANY — Blog Module CSS
   Brand: #FF0000 red, #ffffff white, #111111 black
   Light-Mode ONLY — matches forced site design system
   Red custom scrollbar: 10px width
 ═══════════════════════════════════════════════════════════════════ */

/* ── Custom Red Scrollbar (Blog pages) ─────────────────────────── */
.blog-article-content {
    scrollbar-width: thin;
    scrollbar-color: #FF0000 #f4f4f5;
}
.blog-article-content::-webkit-scrollbar {
    width: 10px;
}
.blog-article-content::-webkit-scrollbar-track {
    background: #f4f4f5;
    border-radius: 10px;
}
.blog-article-content::-webkit-scrollbar-thumb {
    background: #FF0000;
    border-radius: 10px;
    border: 2px solid #f4f4f5;
}
.blog-article-content::-webkit-scrollbar-thumb:hover {
    background: #cc0000;
}

/* Global red scrollbar for blog section */
.blog-article-section,
.blog-grid-section {
    scrollbar-width: thin;
    scrollbar-color: #FF0000 #f4f4f5;
}
.blog-article-section::-webkit-scrollbar,
.blog-grid-section::-webkit-scrollbar {
    width: 10px;
}
.blog-article-section::-webkit-scrollbar-thumb,
.blog-grid-section::-webkit-scrollbar-thumb {
    background: #FF0000;
    border-radius: 10px;
}

/* ── Blog Hero ──────────────────────────────────────────────────── */
.blog-hero {
    position: relative;
    background: #ffffff;
    padding: 140px 0 60px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.blog-article-hero {
    padding-bottom: 50px;
}

.blog-hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.blog-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
}

.blog-shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.18), transparent);
    top: -150px;
    right: -100px;
}

.blog-shape-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.1), transparent);
    bottom: -80px;
    left: -60px;
}

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

/* ── Breadcrumb ─────────────────────────────────────────────────── */
.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.blog-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.blog-breadcrumb a:hover {
    color: #FF0000;
}

.blog-breadcrumb .fa-chevron-right {
    font-size: 0.55rem;
    color: #9ca3af;
}

.blog-breadcrumb span {
    color: #111111;
    font-weight: 600;
}

/* ── Hero Content ───────────────────────────────────────────────── */
.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 50px;
    background: rgba(255, 0, 0, 0.07);
    border: 1px solid rgba(255, 0, 0, 0.18);
    color: #FF0000;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.blog-hero-content h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.1;
    color: #111111;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.blog-hero-subtitle {
    font-size: 1.05rem;
    color: #374151;
    max-width: 600px;
    line-height: 1.7;
}

/* Article hero specific */
.blog-article-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 500;
}

.blog-meta-item .fas {
    color: #FF0000;
    font-size: 0.75rem;
}

.blog-article-title {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 900;
    color: #111111;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    max-width: 820px;
}

.blog-article-excerpt {
    font-size: 1.05rem;
    color: #374151;
    line-height: 1.75;
    max-width: 760px;
    border-left: 4px solid #FF0000;
    padding-left: 18px;
    margin: 0;
    font-style: italic;
}

/* ── Blog Grid Section ──────────────────────────────────────────── */
.blog-grid-section {
    padding: 70px 0 80px;
    background: #f8f9fa;
}

.blog-section-header {
    text-align: center;
    margin-bottom: 52px;
}

.blog-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 0, 0, 0.07);
    border: 1px solid rgba(255, 0, 0, 0.15);
    color: #FF0000;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.blog-section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #111111;
    margin-bottom: 10px;
}

.blog-section-header p {
    color: #374151;
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Card Grid ──────────────────────────────────────────────────── */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

@media (max-width: 768px) {
    .blog-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ── Blog Card ──────────────────────────────────────────────────── */
.blog-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(255, 0, 0, 0.12);
    border-color: rgba(255, 0, 0, 0.25);
}

/* Card image placeholder */
.blog-card-img-wrap {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 0, 0, 0.08);
    flex-shrink: 0;
}

.blog-card-img-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #FF0000;
    transition: transform 0.4s;
}

.blog-card:hover .blog-card-img-placeholder {
    transform: scale(1.12) rotate(-5deg);
}

.blog-card-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #FF0000;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.3);
}

/* Card body */
.blog-card-body {
    padding: 26px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 500;
}

.blog-card-meta .fas {
    color: #FF0000;
    font-size: 0.7rem;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111111;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: #FF0000;
}

.blog-card-excerpt {
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More link — brand red */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FF0000;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: gap 0.3s, color 0.3s;
    margin-top: auto;
}

.blog-read-more .fas {
    font-size: 0.78rem;
    transition: transform 0.3s;
}

.blog-read-more:hover {
    color: #cc0000;
    gap: 14px;
}

.blog-read-more:hover .fas {
    transform: translateX(4px);
}

/* ── Blog CTA Section ───────────────────────────────────────────── */
.blog-cta-section {
    padding: 60px 0 80px;
    background: #ffffff;
}

.blog-cta-box {
    text-align: center;
    padding: 60px 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.04) 0%, rgba(255, 0, 0, 0.08) 100%);
    border: 1.5px solid rgba(255, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.blog-cta-icon {
    width: 72px;
    height: 72px;
    background: #FF0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0 auto 22px;
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.3);
}

.blog-cta-box h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: #111111;
    margin-bottom: 12px;
}

.blog-cta-box p {
    color: #374151;
    font-size: 1rem;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

.blog-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Article Section ────────────────────────────────────────────── */
.blog-article-section {
    padding: 60px 0 80px;
    background: #f8f9fa;
}

/* Two-column layout: article + sidebar */
.blog-article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .blog-article-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Article Body ───────────────────────────────────────────────── */
.blog-article-body {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 52px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .blog-article-body {
        padding: 28px 20px;
        border-radius: 16px;
    }
}

/* ── Article Content Typography ─────────────────────────────────── */
.blog-article-content {
    font-size: 1.05rem;
    color: #111111;
    line-height: 1.82;
    max-width: 780px;
}

.blog-article-content h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #111111;
    margin: 44px 0 16px;
    line-height: 1.3;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 0, 0, 0.12);
}

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

.blog-article-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111111;
    margin: 32px 0 12px;
    line-height: 1.35;
}

.blog-article-content p {
    margin-bottom: 20px;
    color: #1f2937;
}

.blog-article-content strong {
    color: #111111;
    font-weight: 700;
}

.blog-article-content em {
    font-style: italic;
    color: #374151;
}

.blog-article-content a {
    color: #FF0000;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.3s;
}

.blog-article-content a:hover {
    color: #cc0000;
}

/* Lists */
.blog-article-content ul,
.blog-article-content ol {
    margin: 0 0 22px 0;
    padding-left: 24px;
}

.blog-article-content ul {
    list-style: none;
    padding-left: 0;
}

.blog-article-content ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: #1f2937;
}

.blog-article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: #FF0000;
    border-radius: 50%;
    flex-shrink: 0;
}

.blog-article-content ol {
    list-style: decimal;
    color: #1f2937;
}

.blog-article-content ol li {
    margin-bottom: 10px;
    padding-left: 6px;
}

.blog-article-content ol li strong {
    color: #FF0000;
}

/* Code/pre */
.blog-article-content code {
    background: rgba(255, 0, 0, 0.07);
    color: #cc0000;
    padding: 2px 7px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.88em;
    border: 1px solid rgba(255, 0, 0, 0.12);
}

/* ── Article Footer Strip ───────────────────────────────────────── */
.blog-article-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid rgba(255, 0, 0, 0.1);
}

.blog-article-footer-cta {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.05), rgba(255, 0, 0, 0.09));
    border: 1.5px solid rgba(255, 0, 0, 0.15);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.blog-article-footer-cta p {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.55;
    min-width: 200px;
}

.blog-article-footer-cta p strong {
    color: #111111;
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

/* Back link */
.blog-back-link {
    margin-top: 32px;
}

.blog-back-link .blog-read-more {
    text-transform: none;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.blog-back-link .blog-read-more .fa-arrow-left {
    transition: transform 0.3s;
}

.blog-back-link .blog-read-more:hover .fa-arrow-left {
    transform: translateX(-4px);
}

/* ── Sidebar ────────────────────────────────────────────────────── */
.blog-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-sidebar-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.blog-contact-card {
    border-top: 4px solid #FF0000;
}

.blog-sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.blog-sidebar-card-header .fas {
    color: #FF0000;
    font-size: 1.1rem;
}

.blog-sidebar-card-header h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #111111;
    margin: 0;
}

.blog-sidebar-card p {
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.blog-sidebar-rate-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #FF0000;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 12px;
    transition: gap 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-sidebar-rate-link:hover {
    gap: 10px;
}

/* Related articles */
.blog-related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-related-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.3s;
}

.blog-related-item:hover {
    background: rgba(255, 0, 0, 0.05);
}

.blog-related-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 0, 0, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #FF0000;
    flex-shrink: 0;
}

.blog-related-category {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #FF0000;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}

.blog-related-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #111111;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Service links in sidebar */
.blog-service-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-service-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, padding-left 0.3s;
}

.blog-service-links li a .fas {
    color: #FF0000;
    width: 16px;
    text-align: center;
    font-size: 0.82rem;
}

.blog-service-links li a:hover {
    background: rgba(255, 0, 0, 0.07);
    color: #FF0000;
    padding-left: 16px;
}

/* ── Mobile Responsiveness ──────────────────────────────────────── */
@media (max-width: 768px) {
    .blog-hero {
        padding: 110px 0 40px;
    }

    .blog-hero-content h1 {
        font-size: 1.9rem;
    }

    .blog-hero-subtitle {
        font-size: 0.92rem;
    }

    .blog-article-title {
        font-size: 1.5rem;
    }

    .blog-article-excerpt {
        font-size: 0.92rem;
    }

    .blog-article-meta-row {
        gap: 10px;
    }

    .blog-article-content {
        font-size: 0.95rem;
    }

    .blog-article-content h2 {
        font-size: 1.25rem;
        margin-top: 32px;
    }

    .blog-article-content h3 {
        font-size: 1.05rem;
    }

    .blog-article-footer-cta {
        flex-direction: column;
        gap: 18px;
        padding: 22px 18px;
    }

    .blog-cta-box {
        padding: 40px 20px;
    }

    .blog-section-header h2 {
        font-size: 1.6rem;
    }
}
