/* Global category page styles */

.category-landing {
    --category-primary: #123e69;
    --category-accent: #27669a;
    --category-light: #f4f7fb;
    --category-text: #475569;
    --category-border: #dce5ee;
}

.category-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.category-landing section {
    padding: 60px 0;
}

@media (max-width: 767px) {
    .category-landing section {
        padding: 40px 0;
    }
}

.category-landing h1 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.15;
    font-weight: 700;
    color: var(--category-primary);
    margin-bottom: 24px;
}

.category-landing h2 {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.3;
    font-weight: 700;
    color: var(--category-primary);
    margin-bottom: 20px;
}

.category-landing h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--category-primary);
}

.category-landing p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--category-text);
    margin-bottom: 16px;
}

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

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 60px;
}

.category-text-only,
.category-hero .category-grid:has(.category-hero-content:only-child) {
    grid-template-columns: 1fr;
}

.category-section-heading {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.category-label {
    display: inline-block;
    color: var(--category-accent);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}


/* Hero Section */

.category-hero {
	padding-top:150px !important;
    background: linear-gradient(
        135deg,
        #f7faff 0%,
        #e7eff8 100%
    );
}

.category-hero .category-tagline {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--category-primary);
}

.category-hero-image img {
    display: block;
    width: 100%;
    border-radius: 20px;
}

.category-btn {
    display: inline-block;
    padding: 16px 24px;
    border-radius: 8px;
    background: var(--category-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 16px;
    transition: background .2s ease;
}

.category-btn:hover {
    background: var(--category-accent);
    color: #fff;
}


/* Audience Section */

.category-audience-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.category-audience-card {
    padding: 30px 20px;
    background: var(--category-light);
    border: 1px solid var(--category-border);
    border-radius: 14px;
    text-align: center;
}

.category-audience-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 0 auto 16px;
}


/* Dynamic Feature Sections */

.category-feature:nth-child(odd) {
    background: var(--category-light);
}

.category-feature-image img {
    display: block;
    width: 100%;
    border-radius: 16px;
}

.category-reverse .category-feature-image {
    order: 2;
}

.category-text-link {
    display: inline-block;
    color: var(--category-accent);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
}

.category-text-link:hover {
    text-decoration: underline;
}


/* Workflow Section */

.category-workflow {
    background: #ffffff;
    padding: 60px 0;
}

.category-workflow-grid {
    --columns: 4;
    --gap: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap);
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Automatic column adjustment */

.category-workflow-grid:has(
    > :last-child:nth-child(3),
    > :last-child:nth-child(5),
    > :last-child:nth-child(6),
    > :last-child:nth-child(9)
) {
    --columns: 3;
}

/* Workflow Card */

.category-workflow-card {
    flex: 0 0 calc(
        (100% - (var(--columns) - 1) * var(--gap))
        / var(--columns)
    );

    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    align-content: start;
    column-gap: 12px;
    row-gap: 16px;

    box-sizing: border-box;
    min-width: 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #d9e2ea;
    border-radius: 16px;
    text-align: left;

    transition: border-color .25s ease,
                box-shadow .25s ease;
}

.category-workflow-card:hover {
    border-color: #b4cadc;
    box-shadow: 0 4px 16px rgba(18, 62, 105, .06);
}

/* Number Circle */

.category-step-number {
    grid-column: 1;
    grid-row: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    margin: 0;

    background: #eaf1f7;
    color: #123e69;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 700;
}

/* Card Title */

.category-workflow-card h3 {
    grid-column: 2;
    grid-row: 1;

    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
    color: #123e69;
    margin: 0;
}

/* Full Width Description */

.category-workflow-card p {
    grid-column: 1 / -1;

    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* Optional Icon */

.category-workflow-card img {
    grid-column: 1 / -1;
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin: 0;
}

/* Tablet */

@media (max-width: 1024px) {
    .category-workflow-grid,
    .category-workflow-grid:has(> :last-child) {
        --columns: 2;
        --gap: 20px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .category-workflow-grid,
    .category-workflow-grid:has(> :last-child) {
        --columns: 1;
        --gap: 16px;
    }

    .category-workflow-card {
        padding: 20px;
        grid-template-columns: 40px minmax(0, 1fr);
        row-gap: 12px;
    }

    .category-step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .category-workflow-card h3 {
        font-size: 16px;
    }

    .category-workflow-card p {
        font-size: 14px;
    }
}

.category-workflow .category-section-heading {
    max-width: 100%;
}

/* Customer Proof */

.category-customer-proof {
    text-align: center;
}

.category-testimonial {
    max-width: 850px;
    padding: 40px;
    margin: 0 auto;
    background: var(--category-light);
    border-radius: 16px;
}

.category-testimonial img {
    max-width: 150px;
    margin: 0 auto 24px;
}

.category-testimonial blockquote {
    font-size: 22px;
    line-height: 1.7;
    color: var(--category-primary);
    margin: 0 0 24px;
}


/* FAQ Section */

.category-faq {
    background: #f2f6f9;
    padding: 70px 0;
}

.category-faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.category-faq-item {
    border: 1px solid var(--category-border);
    background: #fff;
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
}

.category-faq-item summary {
    position: relative;
    padding: 22px 56px 22px 24px;
    font-size: 17px;
    font-weight: 600;
    color: var(--category-primary);
    cursor: pointer;
    list-style: none;
}

.category-faq-item summary::-webkit-details-marker {
    display: none;
}

.category-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
}

.category-faq-item[open] summary::after {
    content: "−";
}

.category-faq-answer {
    padding: 0 24px 24px;
}


/* Related Solutions */

.category-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-related-links a {
    padding: 12px 20px;
    border: 1px solid var(--category-border);
    border-radius: 8px;
    color: var(--category-primary);
    text-decoration: none;
    font-weight: 500;
    transition: background .2s ease;
}

.category-related-links a:hover {
    background: var(--category-light);
}


/* CTA Section */

.category-cta {
    background: #fff;
    text-align: center;
    padding: 60px 0;
}

.category-cta .category-container {
    max-width: 1200px;
    box-sizing: border-box;
    padding: 60px 40px;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        #123e69 0%,
        #1d527c 100%
    );
}

.category-cta h2,
.category-cta p,
.category-cta .category-description {
    color: #fff;
}

.category-cta .category-description {
    max-width: 800px;
    margin: 0 auto;
}

.category-cta .category-btn {
    background: #fff;
    color: #123e69;
    margin-top: 24px;
}

.category-cta .category-btn:hover {
    background: #eaf2f9;
}

@media (max-width: 767px) {
    .category-cta .category-container {
        padding: 35px 20px;
        border-radius: 16px;
    }
}


/* Tablet */

@media (max-width: 1024px) {

    .category-landing section {
        padding: 60px 0;
    }

    .category-grid {
        gap: 30px;
    }

    .category-audience-grid,
    .category-workflow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Mobile */

@media (max-width: 767px) {

    .category-landing section {
        padding: 40px 0;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .category-reverse .category-feature-image {
        order: 0;
    }

    .category-hero .category-tagline {
        font-size: 18px;
    }

    .category-landing p {
        font-size: 15px;
    }

    .category-audience-grid {
        gap: 12px;
    }

    .category-audience-card {
        padding: 20px 12px;
    }

    .category-workflow-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-section-heading {
        margin-bottom: 24px;
    }

    .category-faq-item summary {
        font-size: 15px;
        padding: 18px 44px 18px 18px;
    }

    .category-faq-answer {
        padding: 0 18px 18px;
    }

    .category-testimonial {
        padding: 24px;
    }

    .category-testimonial blockquote {
        font-size: 18px;
    }
}