/* 
  CRUVIA BLOG STYLES
  Premium Grid & Article Layout
*/

.blog-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
    border-bottom: 1px solid var(--navbar-border);
}

.blog-title {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Bento Grid Archive */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 4rem;
}

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

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Premium Article Card */
.article-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.article-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.08);
}

.article-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.article-body {
    padding: 1.5rem;
}

.article-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-title a { color: #0f172a; }
.article-title a:hover { color: var(--primary-color); }

.article-excerpt {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Single Article Layout */
.single-article-header {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.single-featured-image {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 32px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   SMART ADAPTIVE HERO — Quick Answer & TL;DR
   Desktop = Pattern 2 (Split)
   Mobile  = Pattern 1 (Overlay)
   ======================================== */

/* --- Desktop: Split layout (≥ 768px) --- */
.cruvai-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 2.5rem;
    min-height: 320px;
}

/* Left column: Quick Answer + TL;DR */
.cruvai-hero-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

/* Right column: Featured Image */
.cruvai-hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 280px;
}

.cruvai-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Quick Answer block */
.cruvai-qa-block {
    background: linear-gradient(135deg, #eef6ff 0%, #f0f7ff 100%);
    border-left: 4px solid var(--primary-color, #0066cc);
    border-radius: 0 16px 16px 0;
    padding: 1.25rem 1.5rem;
}

.cruvai-qa-block .qa-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-color, #0066cc);
    margin-bottom: 0.5rem;
}

.cruvai-qa-block .qa-label svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.cruvai-qa-block .qa-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #1e3a5f;
    font-weight: 500;
}

/* TL;DR block */
.cruvai-tldr-block {
    background: linear-gradient(135deg, #f0faf0 0%, #eaf5ea 100%);
    border-left: 4px solid #22863a;
    border-radius: 0 16px 16px 0;
    padding: 1rem 1.5rem;
}

.cruvai-tldr-block .tldr-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #22863a;
    margin-bottom: 0.5rem;
}

.cruvai-tldr-block .tldr-label svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.cruvai-tldr-block .tldr-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cruvai-tldr-block .tldr-list li {
    font-size: 0.95rem;
    color: #1a4a2e;
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1.5;
}

.cruvai-tldr-block .tldr-list li::before {
    content: "✓";
    font-weight: 700;
    color: #22863a;
    flex-shrink: 0;
}

/* --- Mobile: Layout a Blocchi Sequenziali (Migliore UX/UI) (< 768px) --- */
@media (max-width: 767px) {
    .cruvai-hero-split {
        display: flex;
        flex-direction: column;
        gap: 1.25rem; /* Spazio uniforme tra immagine, risposta e chip */
        margin-bottom: 2rem;
    }

    /* Immagine pulita in alto, senza testo sopra */
    .cruvai-hero-image {
        width: 100%;
        border-radius: 16px;
        overflow: hidden;
        aspect-ratio: 16 / 9; /* Mantiene proporzioni perfette */
        /* Rimuoviamo min-height fisse per evitare distorsioni */
    }

    /* Rimuoviamo il gradiente scuro overlay, l'immagine torna luminosa */
    .cruvai-hero-image::after {
        display: none; 
    }

    /* Contenitore Testo: si posiziona sotto l'immagine naturalmente */
    .cruvai-hero-text {
        padding: 0;
        background: transparent;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    /* Box Risposta Rapida: Stile "Card" elegante */
    .cruvai-qa-block {
        background: linear-gradient(135deg, #eef6ff 0%, #f0f7ff 100%);
        border-left: 4px solid var(--primary-color, #0066cc);
        border-radius: 12px;
        padding: 1.25rem;
    }

    .cruvai-qa-block .qa-label {
        color: var(--primary-color, #0066cc);
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .cruvai-qa-block .qa-text {
        color: #1e3a5f;
        font-size: 0.95rem;
        font-weight: 500;
        line-height: 1.6;
        margin-bottom: 0;
    }

    /* Hide the full TL;DR inside the overlay — show compact version below */
    .cruvai-tldr-block {
        display: none;
    }

    /* Compact TL;DR chips below the QA block */
    .cruvai-tldr-chips {
        display: flex !important;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0;
    }

    .cruvai-tldr-chips .tldr-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #f0faf0;
        border: 1px solid #c6e6c6;
        border-radius: 999px;
        padding: 0.4rem 0.85rem;
        font-size: 0.85rem;
        font-weight: 500;
        color: #1a4a2e;
        line-height: 1.2;
    }

    .cruvai-tldr-chips .tldr-chip::before {
        content: "✓";
        font-weight: 700;
        color: #22863a;
        font-size: 0.8rem;
    }

    /* Gestione fallback (se non c'è immagine) - resta identico ma senza l'immagine sopra */
    .cruvai-hero-split.no-image {
        gap: 0;
    }
}

/* Fallbacks for Desktop when there is NO image */
.cruvai-hero-split.no-image {
    grid-template-columns: 1fr;
    min-height: auto;
}
.cruvai-hero-split.no-image .cruvai-tldr-block {
    border-radius: 16px; /* Ensure rounding if it's full width */
}
.cruvai-hero-split.no-image .cruvai-qa-block {
    border-radius: 16px;
}

/* Desktop: hide the chip version */
@media (min-width: 768px) {
    .cruvai-tldr-chips {
        display: none;
    }
}

/* Fallback: no QA data, show normal featured image */
.cruvai-hero-split--fallback {
    display: block;
}

.cruvai-hero-split--fallback .cruvai-hero-image {
    border-radius: 32px;
    min-height: auto;
    max-height: 600px;
}

.cruvai-hero-split--fallback .cruvai-hero-image img {
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
}

.article-entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: #334155;
}

/* Restored Social Share Box (Gray Design) */
.share-box-gray {
    margin-top: 4rem;
    padding: 2.5rem;
    border-radius: 24px;
    background: #f1f5f9; /* Original gray background */
    text-align: center;
    border: 1px solid #e2e8f0;
}

.share-box-gray h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
    font-weight: 700;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.social-btn-dark {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #1e293b; /* Navy / Dark style as requested */
    color: white !important;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn-dark:hover {
    background: #0f172a;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-btn-dark .cruvai-svg-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: white !important;
}

.article-entry-content h2 { margin-top: 2.5rem; font-size: 2rem; }
.article-entry-content h3 { margin-top: 2rem; font-size: 1.5rem; }
.article-entry-content p { margin-bottom: 1.5rem; line-height: 1.8; }

/* Sidebar Premium */
.sidebar {
    display: flex; flex-direction: column; gap: 2rem;
}

.widget {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.widget-title::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Tool CTAs Premium Styling */
.widget-cta-tool {
    text-align: center;
    border: none;
    background: white;
    position: relative;
    padding: 1.25rem;
    z-index: 1;
}

.widget-cta-tool::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.cta-icon .cruvai-svg-icon-cta {
    width: 2.2rem;
    height: 2.2rem;
    margin-bottom: 0.5rem;
}

.widget-cta-tool p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Sidebar Wrapper (Natural Scroll) */
.sidebar-sticky-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.widget-toc {
    /* Rimosso sticky da qui per usare il wrapper */
}

/* Scroll-Spy Active State */
.toc-list a.active {
    color: var(--primary-color);
    font-weight: 700;
    padding-left: 8px;
    border-left: 3px solid var(--accent-color);
}

.toc-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: #475569;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: block;
    padding: 4px 0;
}

.toc-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* In-Content Table of Contents (Premium Card) */
.cruvai-in-content-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-sm);
}

.cruvai-in-content-toc .toc-header {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.cruvai-in-content-toc .widget-title {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.cruvai-in-content-toc .toc-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.cruvai-in-content-toc .toc-body li {
    font-size: 0.95rem;
    color: #475569;
}

.cruvai-in-content-toc .toc-body a {
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cruvai-in-content-toc .toc-body a::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z'/%3E%3C/svg%3E") no-repeat center / contain;
    flex-shrink: 0;
}

.cruvai-in-content-toc .toc-body a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Category Chips */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    padding: 6px 14px;
    background: #f1f5f9;
    border-radius: 99px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.chip:hover {
    background: var(--primary-gradient);
    color: white;
}

/* Pagination Styling (Synced with user design request) */
.pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
}

.pagination a.page-numbers:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: var(--primary-color); /* Matches ocean-blue in theme */
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.pagination .prev, .pagination .next {
    border: 1px solid #e2e8f0;
    background: white;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .prev:hover, .pagination .next:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: #f8fafc;
}

/* ========================================
   PREMIUM YOAST FAQ STYLING
   ======================================== */
.wp-block-yoast-faq-block {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schema-faq-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.schema-faq-section:hover {
    border-color: var(--primary-color, #0066cc);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.08);
}

.schema-faq-question {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    font-family: var(--font-heading, sans-serif);
    font-weight: 700;
    color: #0f172a;
    transition: background 0.3s ease;
}

.schema-faq-question:hover {
    background: #f8fafc;
}

/* Arrow Icon via SVG Data URI */
.schema-faq-question::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230066cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.schema-faq-section.is-open .schema-faq-question::after {
    transform: rotate(180deg);
}

.schema-faq-section.is-open .schema-faq-question {
    color: var(--primary-color, #0066cc);
    background: #f0f7ff;
}

.schema-faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    color: #475569;
    line-height: 1.7;
    display: none;
}

/* Quando l'accordion è aperto */
.schema-faq-section.is-open .schema-faq-answer {
    display: block;
    animation: faqFadeIn 0.4s ease forwards;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   CONVERSION OPTIMIZATION (CTAs)
   ======================================== */

/* 1. In-Content CTA Banner */
.cruvai-incontent-cta {
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    border: 1px solid #d0e3f7;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.05);
}

.cruvai-incontent-cta .cta-icon {
    width: 48px;
    height: 48px;
    background: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.cruvai-incontent-cta .cta-icon svg {
    width: 24px;
    height: 24px;
}

.cruvai-incontent-cta .cta-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #1e3a5f;
    font-weight: 700;
}

.cruvai-incontent-cta .cta-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.cruvai-incontent-cta .cta-button {
    background: #0066cc;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

.cruvai-incontent-cta .cta-button:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 102, 204, 0.4);
}

@media (min-width: 768px) {
    .cruvai-incontent-cta {
        flex-direction: row;
        text-align: left;
        padding: 1.5rem 2rem;
    }
    .cruvai-incontent-cta .cta-icon {
        flex-shrink: 0;
    }
    .cruvai-incontent-cta .cta-button {
        margin-left: auto;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* 2. Sticky Bottom Bar (Mobile Only) */
.cruvai-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    padding: 0.75rem 1.25rem;
    z-index: 9999;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    display: none; /* Nascosta di default (viene attivata su mobile) */
}

.cruvai-sticky-bar.visible {
    transform: translateY(0);
    opacity: 1;
}

.cruvai-sticky-bar .sticky-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cruvai-sticky-bar .sticky-text {
    display: flex;
    flex-direction: column;
}

.cruvai-sticky-bar .sticky-title {
    font-weight: 700;
    color: #1e3a5f;
    font-size: 0.95rem;
    line-height: 1.2;
}

.cruvai-sticky-bar .sticky-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

.cruvai-sticky-bar .sticky-button {
    background: #0066cc;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: 99px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    /* Mostra la sticky bar solo su mobile */
    .cruvai-sticky-bar {
        display: block;
    }
    
    /* 3. Nascondi la Sidebar a fine pagina su mobile */
    .sidebar {
        display: none !important;
    }
}

/* 4. Tool Hub (Fine Articolo) */
.cruvai-tool-hub {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 2px solid #f1f5f9;
}

.cruvai-tool-hub .hub-title {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

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

.cruvai-tool-hub .hub-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.cruvai-tool-hub .hub-card:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
}

.cruvai-tool-hub .hub-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.cruvai-tool-hub .hub-text {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 600;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .cruvai-tool-hub .hub-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .cruvai-tool-hub .hub-title {
        text-align: left;
    }
}
