.resources-page {
    padding-bottom: 96px;
}

.resources-hero {
    padding: 72px 0 40px;
}

.resources-hero__content {
    max-width: 860px;
}

.resources-eyebrow {
    margin: 0 0 10px;
    color: var(--color-accent-violet);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.resources-hero h1 {
    margin: 0 0 18px;
    color: var(--color-heading);
    font-size: clamp(2.2rem, 4vw, 2.45rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.resources-lead {
    max-width: 760px;
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.resources-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.resources-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.resources-button--primary {
    background: linear-gradient(180deg, var(--color-bee-yellow-300) 0%, var(--color-bee-yellow-500) 100%);
    color: #1f1f1f;
    box-shadow: 0 10px 18px rgba(215, 154, 18, 0.18);
}

.resources-button--primary:hover {
    text-decoration: none;
    box-shadow: 0 14px 24px rgba(215, 154, 18, 0.22);
    transform: translateY(-1px);
}

.resources-button--secondary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-heading);
}

.resources-button--secondary:hover {
    text-decoration: none;
    border-color: var(--color-primary-500);
    background: #fffef8;
}

.resources-grid-section,
.resources-featured,
.resources-products,
.resources-portal-cta {
    padding: 28px 0 0;
}

.resources-section-heading {
    margin-bottom: 24px;
}

.resources-section-heading h2 {
    margin: 0 0 10px;
    color: var(--color-heading);
    font-size: 2rem;
    line-height: 1.2;
}

.resources-section-heading p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.resource-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 26px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-surface);
    box-shadow: 0 18px 40px rgba(68, 65, 65, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(68, 65, 65, 0.11);
}

.resource-card__icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 16px;
}

.resource-card__body h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
    line-height: 1.3;
}

.resource-card__body h3 a {
    color: var(--color-heading);
    text-decoration: none;
}

.resource-card__body h3 a:hover {
    text-decoration: underline;
}

.resource-card__body p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.resource-card__children {
    margin: 16px 0 0;
    padding-left: 18px;
}

.resource-card__children li + li {
    margin-top: 6px;
}

.resource-card__footer {
    margin-top: auto;
    padding-top: 20px;
}

.resource-card__cta {
    color: var(--color-accent-violet);
    font-weight: 700;
    text-decoration: none;
}

.resource-card__cta:hover {
    text-decoration: underline;
}

.resources-featured__list {
    display: grid;
    gap: 14px;
}

.resources-featured__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-surface);
    color: var(--color-heading);
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(68, 65, 65, 0.06);
}

.resources-featured__item:hover {
    text-decoration: none;
    border-color: rgba(132, 68, 160, 0.24);
    background: rgba(132, 68, 160, 0.03);
}

.resources-featured__item strong {
    color: var(--color-accent-violet);
    white-space: nowrap;
}

.resources-products__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.resources-product-card {
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-surface);
    box-shadow: 0 18px 40px rgba(68, 65, 65, 0.08);
}

.resources-product-card h3 {
    margin: 0 0 12px;
    color: var(--color-heading);
    font-size: 1.3rem;
}

.resources-product-card p {
    margin: 0 0 14px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.resources-product-card ul {
    margin: 0;
    padding-left: 18px;
}

.resources-product-card li + li {
    margin-top: 6px;
}

.resources-portal-cta__box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: linear-gradient(180deg, #fffdfa 0%, #fff8e5 100%);
    box-shadow: 0 18px 40px rgba(68, 65, 65, 0.08);
}

.resources-portal-cta__box h2 {
    margin: 0 0 10px;
    color: var(--color-heading);
}

.resources-portal-cta__box p:last-child {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}

@media (max-width: 980px) {
    .resources-grid,
    .resources-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resources-portal-cta__box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .resources-hero {
        padding: 56px 0 28px;
    }

    .resources-grid,
    .resources-products__grid {
        grid-template-columns: 1fr;
    }

    .resources-featured__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .resources-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
}


/* =========================================================
   iPack migration page
   ========================================================= */
.page-id-6299 h1 {
    color:var(--color-bee-yellow-500);
}


/* =========================================================
   Resources - article decorations
   ========================================================= */
.article-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.75;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: var(--color-heading);
    margin-top: 2.2em;
    margin-bottom: 0.6em;
}

.article-content h1 {
    font-size: 2.4rem;
}

.article-content h2 {
    font-size: 1.8rem;
}

.article-content h3 {
    font-size: 1.4rem;
}

.article-content p {
    margin: 1em 0;
}

.article-content ul {
    margin: 1em 0;
    padding-left: 20px;
}

.article-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
}


.article-note,
.article-warning,
.article-tip {
    padding: 16px 18px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid;
}

.article-note {
    background: #f5f8ff;
    border-color: #4a7cff;
}

.article-warning {
    background: #fff4f4;
    border-color: #ff4a4a;
}

.article-tip {
    background: #f4fff6;
    border-color: #2ecc71;
}

.article-content pre {
    background: #1e1e1e;
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.9rem;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.98rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

/* Header */
.article-table thead {
    background: linear-gradient(
        180deg,
        var(--color-bee-yellow-100) 0%,
        #f6d66a 100%
    );
}

.article-table th {
    text-align: left;
    padding: 14px 16px;
    font-weight: 700;
    color: var(--color-gray-900);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Body cells */
.article-table td {
    padding: 14px 16px;
    vertical-align: top;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    color: var(--color-text-muted);
}

/* Zebra striping */
.article-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Remove border on last row */
.article-table tbody tr:last-child td {
    border-bottom: none;
}

/* Lists inside table */
.article-table td ul {
    margin: 0;
    padding-left: 18px;
}

.article-table td li {
    margin-bottom: 4px;
}

/* Make first column stronger */
.article-table td:first-child {
    font-weight: 600;
    color: var(--color-heading);
}

/* Responsive behavior */
@media (max-width: 768px) {
    .article-table {
        font-size: 0.9rem;
    }

    .article-table th,
    .article-table td {
        padding: 10px 12px;
    }
}

/* =========================================
   Migration diagram
========================================= */

.migration-diagram {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 20px 72px;
}

.migration-diagram__header {
    max-width: 860px;
    margin-bottom: 34px;
}

.migration-diagram__header h1 {
    margin: 0 0 14px;
    color: var(--color-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.migration-diagram__header p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.migration-steps {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 16px;
    margin: 34px 0;
}

.migration-step {
    position: relative;
    padding: 22px 16px 18px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-surface);
    box-shadow: 0 14px 30px rgba(68, 65, 65, 0.07);
}

.migration-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -14px;
    top: 34px;
    z-index: 2;
    color: var(--color-accent-violet);
    font-size: 1.4rem;
    font-weight: 800;
}

.migration-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--color-accent-violet);
    color: #fff;
    font-weight: 800;
}

.migration-step h3 {
    margin: 0 0 10px;
    color: var(--color-heading);
    font-size: 1rem;
    line-height: 1.3;
}

.migration-step p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.migration-paths {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 34px;
}

.migration-path {
    padding: 26px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: 0 18px 40px rgba(68, 65, 65, 0.08);
}

.migration-path--managed {
    border-top: 4px solid var(--color-accent-violet);
}

.migration-path--native {
    border-top: 4px solid #3d9442;
}

.migration-path h2 {
    margin: 0 0 20px;
    color: var(--color-heading);
    font-size: 1.45rem;
}

.migration-path__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.migration-path__grid article {
    padding: 18px;
    border-radius: 16px;
    background: #fafafa;
    border: 1px solid var(--color-border);
}

.migration-path__grid h3 {
    margin: 0 0 12px;
    color: var(--color-heading);
    font-size: 1.05rem;
}

.migration-path__grid ul {
    margin: 0;
    padding-left: 18px;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.migration-result {
    margin-top: 28px;
    padding: 28px 32px;
    border-radius: 20px;
    border: 1px solid rgba(215, 154, 18, 0.28);
    background: linear-gradient(180deg, #fffdfa 0%, #fff6d8 100%);
    box-shadow: 0 18px 40px rgba(68, 65, 65, 0.08);
}

.migration-result h2 {
    margin: 0 0 10px;
    color: var(--color-heading);
}

.migration-result p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}

@media (max-width: 1180px) {
    .migration-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .migration-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 820px) {
    .migration-steps,
    .migration-path__grid {
        grid-template-columns: 1fr;
    }

    .migration-path {
        padding: 22px;
    }

    .migration-result {
        padding: 24px;
    }
}