/* Category page expansion blocks — bump ?v= on link when changing (v=20260525) */
.category-expansion-content {
    color: #1f2937;
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1.75;
}

.category-expansion-content h1,
.category-expansion-content h2,
.category-expansion-content h3,
.category-expansion-content h4,
.category-expansion-content h5,
.category-expansion-content h6 {
    font-family: 'Domine', serif !important;
    color: #111827;
    line-height: 1.3;
    margin: 0 0 1rem;
}

.category-expansion-content p,
.category-expansion-content span,
.category-expansion-content a,
.category-expansion-content li,
.category-expansion-content ul,
.category-expansion-content ol,
.category-expansion-content td,
.category-expansion-content th,
.category-expansion-content div,
.category-expansion-content strong,
.category-expansion-content em,
.category-expansion-content blockquote {
    font-family: 'Montserrat', sans-serif !important;
}

.category-expansion-content h1 *,
.category-expansion-content h2 *,
.category-expansion-content h3 *,
.category-expansion-content h4 *,
.category-expansion-content h5 *,
.category-expansion-content h6 * {
    font-family: inherit !important;
}

.category-expansion-content h2 {
    font-size: 28px;
    line-height: 40px;
    text-align: center;
    margin-bottom: 2rem;
    color: #111827;
}

@media (min-width: 768px) {
    .category-expansion-content h2 {
        font-size: 36px;
        line-height: 48px;
    }
}

.category-expansion-content p {
    font-size: 15px;
    line-height: 24px;
    margin: 0 0 1rem;
}

.category-expansion-intro p {
    text-align: center;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    color: #374151;
}

.category-expansion-content a:not(.category-expansion-cta) {
    color: #b6866d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.category-expansion-content > p > img,
.category-expansion-content > img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem auto;
    display: block;
}

.category-expansion-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 15px;
}

.category-expansion-content th,
.category-expansion-content td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    text-align: left;
}

.category-expansion-content th {
    background: #faf3ee;
    font-weight: 600;
}

.category-expansion-design .category-expansion-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

@media (min-width: 640px) {
    .category-expansion-design .category-expansion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .category-expansion-design .category-expansion-grid .category-expansion-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 420px;
        justify-self: center;
        width: 100%;
    }
}

.category-expansion-design .category-expansion-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e7d8cc;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
    box-shadow: 0 4px 18px rgba(130, 95, 67, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.category-expansion-design .category-expansion-card:hover {
    transform: translateY(-5px);
    border-color: #d8bda9;
    box-shadow: 0 18px 36px rgba(130, 95, 67, 0.14);
}

.category-expansion-design .category-expansion-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3ebe3;
    flex-shrink: 0;
}

.category-expansion-design .category-expansion-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.18) 100%);
    pointer-events: none;
}

.category-expansion-design .category-expansion-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    display: block;
    transition: transform 0.4s ease;
}

.category-expansion-design .category-expansion-card:hover img {
    transform: scale(1.05);
}

.category-expansion-design .category-expansion-card > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}

.category-expansion-design .category-expansion-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.25rem 1.35rem 1.5rem;
    text-align: center;
}

.category-expansion-design .category-expansion-card-body h3,
.category-expansion-design .category-expansion-card h3 {
    font-family: 'Domine', serif !important;
    font-size: 1.35rem;
    line-height: 1.35;
    font-weight: 400;
    color: #111827;
    margin: 0 0 0.65rem;
    text-align: center;
}

.category-expansion-design .category-expansion-card-body p,
.category-expansion-design .category-expansion-card p {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px;
    line-height: 22px;
    color: #4b5563;
    margin: 0;
    text-align: center;
}

.category-expansion-design .category-expansion-cta-wrap {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 0.25rem;
}

.category-expansion-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 0.85rem 1.75rem;
    background: #b6866d;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 9999px;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(182, 134, 109, 0.35);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.category-expansion-cta:hover {
    background: #a67359;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(166, 115, 89, 0.4);
}

.category-expansion-cost .category-expansion-cta-wrap {
    margin-top: 2rem;
}
