/*
Theme Name: SkunkCRM Theme
Description: Custom WordPress theme for SkunkCRM Resources/Blog
Author: SkunkCRM
Version: 2.0.0
Text Domain: skunkcrm-theme
*/

/* ============================================
   CSS Reset and Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-red: #E50914;
    --brand-red-hover: #B8070F;
    --background: #ffffff;
    --foreground: #171717;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

body {
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

h1 {
    line-height: 1.1;
}

.font-work-sans {
    font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Container and Layout
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 900px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   Bundle Banner
   ============================================ */
.bundle-banner {
    background-color: #fef9c3;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    text-align: center;
}

.bundle-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.banner-highlight {
    font-weight: 600;
}

.banner-cta {
    background-color: var(--gray-900);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.banner-cta:hover {
    background-color: var(--gray-700);
}

/* ============================================
   Header Styles
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-200);
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 50;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.25rem;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.125rem;
}

.logo-text {
    margin-left: 0.5rem;
    font-weight: 900;
    font-size: 1.25rem;
}

.main-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .main-nav {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--gray-700);
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link-active {
    color: var(--foreground);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background-color: var(--brand-red);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--brand-red-hover);
    color: white;
}

.cta-button-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu {
    display: none;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
}

.mobile-menu.is-active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-nav-link {
    padding: 0.5rem 0;
    font-weight: 500;
    color: var(--gray-700);
}

.mobile-nav-link:hover,
.mobile-nav-link-active {
    color: var(--brand-red);
}

/* ============================================
   Hero Sections
   ============================================ */
.resources-hero,
.page-hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--gray-50), white);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.archive-label {
    display: inline-block;
    background-color: var(--brand-red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

/* ============================================
   Featured Post
   ============================================ */
.featured-post {
    padding: 2rem 0 4rem;
}

.featured-card {
    display: grid;
    gap: 2rem;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .featured-card {
        grid-template-columns: 1fr 1fr;
    }
}

.featured-image img {
    width: 100%;
    height: auto;
}

.featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-label {
    display: inline-block;
    background-color: var(--brand-red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    width: fit-content;
}

.featured-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.featured-title a {
    color: inherit;
}

.featured-title a:hover {
    color: var(--brand-red);
}

.featured-excerpt {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.featured-meta {
    display: flex;
    gap: 1rem;
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-red);
    font-weight: 600;
    transition: gap 0.2s;
}

.read-more-btn:hover {
    gap: 0.75rem;
}

/* ============================================
   Categories Section
   ============================================ */
.categories-section {
    padding: 4rem 0;
    background-color: var(--gray-50);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-red);
    font-weight: 600;
}

.view-all-link:hover {
    text-decoration: underline;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.2s;
}

.category-card:hover {
    border-color: var(--brand-red);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.1);
}

.category-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-100);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}

.category-name {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ============================================
   Posts Grid
   ============================================ */
.latest-posts {
    padding: 4rem 0;
}

.posts-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.posts-grid-3 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .posts-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.post-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    display: block;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

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

.post-card-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    background-color: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.post-category:hover {
    background-color: var(--brand-red);
    color: white;
}

.post-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.post-title a {
    color: inherit;
}

.post-title a:hover {
    color: var(--brand-red);
}

.post-excerpt {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* ============================================
   Blog Layout with Sidebar
   ============================================ */
.blog-layout .container {
    display: grid;
    gap: 3rem;
}

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

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--gray-50);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list li.current a {
    color: var(--brand-red);
    font-weight: 600;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    transition: color 0.2s;
}

.category-list a:hover {
    color: var(--brand-red);
}

.category-list .count {
    background: var(--gray-200);
    color: var(--gray-600);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.sidebar-cta {
    background: var(--slate-900);
    color: white;
}

.sidebar-cta .widget-title {
    color: white;
    border-bottom-color: var(--gray-700);
}

.sidebar-cta p {
    color: var(--gray-400);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.sidebar-cta .cta-button {
    width: 100%;
}

/* ============================================
   Pagination
   ============================================ */
.pagination-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.pagination-nav a,
.pagination-nav span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    color: var(--gray-700);
    transition: all 0.2s;
}

.pagination-nav a:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.pagination-nav .current {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
    color: white;
}

/* ============================================
   Single Post Styles
   ============================================ */
.single-header {
    padding: 4rem 0 2rem;
    text-align: center;
}

.single-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .single-title {
        font-size: 3rem;
    }
}

.single-meta {
    display: flex;
    justify-content: center;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.author-details {
    text-align: left;
}

.author-name {
    font-weight: 600;
    color: var(--foreground);
}

.author-details .post-date {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.single-featured-image {
    margin-bottom: 3rem;
}

.single-featured-image img {
    width: 100%;
    border-radius: 1rem;
}

.single-content {
    padding-bottom: 3rem;
}

/* Prose Styles */
.entry-content.prose {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.entry-content.prose h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--foreground);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-content.prose h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

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

.entry-content.prose a {
    color: var(--brand-red);
    text-decoration: underline;
}

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

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

.entry-content.prose blockquote {
    border-left: 4px solid var(--brand-red);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-600);
}

.entry-content.prose pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.entry-content.prose code {
    background: var(--gray-100);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.entry-content.prose pre code {
    background: none;
    padding: 0;
}

.entry-content.prose img {
    border-radius: 0.5rem;
    margin: 2rem 0;
}

/* Tables in article content */
.entry-content.prose .wp-block-table,
.entry-content.prose figure.wp-block-table {
    margin: 2.5rem -2rem;
    width: calc(100% + 4rem);
    max-width: none;
    overflow-x: auto;
}

.entry-content.prose table {
    width: 100%;
    max-width: none;
    border-collapse: collapse;
    font-size: 1rem;
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 0.5rem;
    overflow: hidden;
}

.entry-content.prose thead {
    background: #0f0f1a;
}

.entry-content.prose th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid var(--primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.entry-content.prose td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #2a2a3e;
    color: #e0e0e0;
}

.entry-content.prose tbody tr:last-child td {
    border-bottom: none;
}

.entry-content.prose tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.entry-content.prose tbody tr:hover {
    background: rgba(229, 9, 20, 0.08);
}

.entry-content.prose td:first-child {
    font-weight: 600;
    color: #fff;
}

.entry-content.prose td strong {
    color: #fff;
}

@media (max-width: 768px) {
    .entry-content.prose table {
        font-size: 0.875rem;
        margin: 2rem 0;
        width: 100%;
    }

    .entry-content.prose th,
    .entry-content.prose td {
        padding: 0.75rem;
    }
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.tags-label {
    font-weight: 600;
    color: var(--gray-600);
}

.tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--brand-red);
    color: white;
}

/* Share Buttons */
.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.share-label {
    font-weight: 600;
    color: var(--gray-600);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-700);
    transition: all 0.2s;
}

.share-btn.twitter:hover {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin:hover {
    background: #0077b5;
    color: white;
}

/* Author Bio */
.author-bio {
    padding: 3rem 0;
    background: var(--gray-50);
}

.author-bio-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-bio-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-bio-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.author-bio-content p {
    color: var(--gray-600);
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
}

/* Post CTA */
.post-cta {
    padding: 4rem 0;
    background: var(--slate-900);
}

.cta-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    color: var(--gray-400);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter-section {
    padding: 4rem 0;
}

.newsletter-card {
    background: var(--slate-900);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.75rem;
}

.newsletter-description {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

@media (min-width: 480px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-700);
    border-radius: 0.5rem;
    background: var(--slate-800);
    color: white;
    font-size: 1rem;
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--gray-500);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--brand-red);
}

/* ============================================
   Footer Styles
   ============================================ */
.site-footer {
    background-color: white;
    border-top: 1px solid var(--gray-200);
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--gray-600);
    max-width: 300px;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: var(--gray-600);
    transition: color 0.2s;
}

.footer-menu a:hover {
    color: var(--brand-red);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    color: var(--gray-600);
}

/* ============================================
   Utility Classes
   ============================================ */
.sr-only,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results h2 {
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* ============================================
   WordPress Specific
   ============================================ */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 0.5rem;
}

/* ============================================
   Enhanced Resources Hub Styles
   ============================================ */

/* Enhanced Hero Section */
.resources-hero-enhanced {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 50%, var(--gray-50) 100%);
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    background-color: var(--brand-red);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.resources-hero-enhanced .hero-title {
    font-size: 2.75rem;
    max-width: 800px;
    margin: 0 auto 1.25rem;
}

@media (min-width: 768px) {
    .resources-hero-enhanced .hero-title {
        font-size: 3.5rem;
    }
}

.resources-hero-enhanced .hero-description {
    font-size: 1.125rem;
    max-width: 700px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--gray-200);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--foreground);
    font-family: "Work Sans", sans-serif;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Quick Navigation */
.quick-nav-section {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 64px;
    z-index: 40;
}

.quick-nav-grid {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s;
}

.quick-nav-item:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: white;
}

.quick-nav-item:hover .quick-nav-icon {
    color: white;
}

.quick-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--gray-500);
    transition: color 0.2s;
}

.quick-nav-icon svg {
    width: 18px;
    height: 18px;
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
}

.content-section-alt {
    background: var(--gray-50);
}

.content-section-dark {
    background: var(--slate-900);
    color: white;
}

/* Section Headers */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.section-header-left {
    flex: 1;
    max-width: 600px;
}

.section-header-centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.section-header-light h2,
.section-header-light .section-title {
    color: white;
}

.section-label {
    display: inline-block;
    background: rgba(229, 9, 20, 0.1);
    color: var(--brand-red);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.section-label-light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.section-description {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 0.75rem;
}

.section-description-centered {
    max-width: 600px;
    margin: 0.75rem auto 0;
    color: var(--gray-400);
}

.content-section-dark .section-description {
    color: var(--gray-400);
}

/* Card Link */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-red);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: auto;
    transition: gap 0.2s;
}

.card-link:hover {
    gap: 0.75rem;
}

/* Case Study Tag */
.case-study-tag {
    background: rgba(229, 9, 20, 0.1);
    color: var(--brand-red);
}

/* Tutorial Tag */
.tutorial-tag {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .use-cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.use-case-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    transition: all 0.3s;
}

.use-case-card:hover {
    border-color: var(--brand-red);
    box-shadow: 0 10px 30px -10px rgba(229, 9, 20, 0.15);
    transform: translateY(-4px);
}

.use-case-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 0.75rem;
    color: var(--gray-700);
    margin-bottom: 1.25rem;
    transition: all 0.3s;
}

.use-case-card:hover .use-case-icon {
    background: var(--brand-red);
    color: white;
}

.use-case-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.use-case-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Industries Grid */
.industries-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .industries-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.industry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.industry-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-red);
    transform: translateY(-4px);
}

.industry-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 9, 20, 0.2);
    border-radius: 0.5rem;
    color: white;
    margin-bottom: 1rem;
}

.industry-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.375rem;
}

.industry-description {
    font-size: 0.8rem;
    color: var(--gray-400);
    line-height: 1.5;
}

/* Guides Grid */
.guides-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guide-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.guide-card:hover {
    border-color: var(--brand-red);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.guide-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gray-200);
    font-family: "Work Sans", sans-serif;
    min-width: 48px;
    transition: color 0.2s;
}

.guide-card:hover .guide-number {
    color: var(--brand-red);
}

.guide-content {
    flex: 1;
}

.guide-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.guide-title a {
    color: var(--foreground);
}

.guide-title a:hover {
    color: var(--brand-red);
}

.guide-excerpt {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.guide-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.guide-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-500);
    transition: all 0.2s;
}

.guide-card:hover .guide-arrow {
    background: var(--brand-red);
    color: white;
}

/* Video Tutorial Play Overlay */
.tutorial-card .post-thumbnail {
    position: relative;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
}

.tutorial-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay svg {
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Section CTA */
.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.cta-button-outline {
    background: transparent;
    border: 2px solid var(--brand-red);
    color: var(--brand-red);
}

.cta-button-outline:hover {
    background: var(--brand-red);
    color: white;
}

.cta-button-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-button-outline-light:hover {
    background: white;
    color: var(--slate-900);
}

/* Resources CTA Section */
.resources-cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--slate-900) 0%, #1a1a2e 100%);
}

.resources-cta-card {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.resources-cta-title {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .resources-cta-title {
        font-size: 2.5rem;
    }
}

.resources-cta-description {
    font-size: 1.125rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.resources-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 480px) {
    .resources-cta-buttons {
        flex-direction: row;
    }
}

/* Empty Section Message */
.empty-section-message {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gray-50);
    border-radius: 1rem;
    border: 2px dashed var(--gray-200);
}

.empty-section-message p {
    color: var(--gray-500);
    font-size: 1rem;
}

/* Post Card Enhancements */
.post-card-content {
    display: flex;
    flex-direction: column;
}

.case-study-card .post-card-content,
.tutorial-card .post-card-content {
    height: 100%;
}

/* ============================================
   Comparison Table Styles
   ============================================ */
.comparison-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--background);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comparison-table thead {
    background: var(--slate-900);
    color: white;
}

.comparison-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-family: "Work Sans", sans-serif;
}

.comparison-table th:first-child {
    border-radius: 0.5rem 0 0 0;
}

.comparison-table th:last-child {
    border-radius: 0 0.5rem 0 0;
}

.comparison-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: top;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.comparison-table tbody tr:hover {
    background: var(--gray-100);
}

.comparison-table td:first-child {
    font-weight: 500;
    color: var(--gray-700);
}

.comparison-table td strong {
    color: var(--foreground);
}

/* Lead paragraph style for articles */
.entry-content p.lead,
.single-content p.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 2rem;
    border-left: 4px solid var(--brand-red);
    padding-left: 1.5rem;
}

@media (max-width: 768px) {
    .entry-content p.lead,
    .single-content p.lead {
        font-size: 1.1rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Comparison verdict highlights */
.entry-content p strong:first-child,
.single-content p strong:first-child {
    color: var(--gray-800);
}
