body#categoryPage .smarter-bento .edu-features-card-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(3, auto) !important;
    gap: 24px !important;
    align-items: stretch !important;
    overflow: visible !important; padding: 0 !important; scroll-snap-type: none !important;
}
body#categoryPage .smarter-bento .edu-feature-card-item {
    height: auto !important; min-height: 0 !important; margin: 0 !important;
    display: flex !important; flex-direction: column !important;
    padding: clamp(24px, 3vw, 40px) !important; transform: none !important;
    width: 100% !important; min-width: 0 !important; max-width: 100% !important; flex: none !important;
}
body#categoryPage .smarter-bento .edu-feature-card-item:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
body#categoryPage .smarter-bento .edu-feature-card-item:nth-child(2) { grid-column: 2; grid-row: 1; }
body#categoryPage .smarter-bento .edu-feature-card-item:nth-child(3) { grid-column: 1; grid-row: 3; }
body#categoryPage .smarter-bento .edu-feature-card-item:nth-child(4) { grid-column: 2; grid-row: 2 / span 2; }
body#categoryPage .smarter-bento .edu-card-media-wrap {
    aspect-ratio: auto !important; height: auto !important; min-height: 0 !important;
    margin-top: 24px !important; width: 100% !important;
}
body#categoryPage .smarter-bento .edu-card-media-wrap img {
    width: 100% !important; height: auto !important; max-height: 260px !important;
    object-fit: contain !important; transform: none !important;
}
body#categoryPage .smarter-points { padding-left: 22px; margin: 22px 0; }
body#categoryPage .smarter-bento .edu-card-info .smarter-points,
body#categoryPage .smarter-bento .edu-card-info .smarter-points li,
body#categoryPage .smarter-bento .edu-card-info .smarter-points li::marker {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}
body#categoryPage .smarter-points li { margin: 12px 0; line-height: 1.6; }
body#categoryPage .smarter-bento .smarter-flip-card {
    padding: 0 !important; overflow: visible !important; perspective: 1400px;
    cursor: pointer; background: transparent !important; box-shadow: none !important; border: none !important;
}
body#categoryPage .smarter-flip-inner {
    display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; height: 100%;
    transform-style: preserve-3d; transition: transform .65s cubic-bezier(.2,.7,.2,1);
}
body#categoryPage .smarter-is-flipped .smarter-flip-inner { transform: rotateY(180deg); }
body#categoryPage .smarter-flip-face {
    grid-area: 1 / 1; min-width: 0; padding: clamp(24px, 3vw, 40px);
    border-radius: 24px; background: #f0fdf4; color: #000;
    box-shadow: 0 15px 45px rgba(0,0,0,.05); border: 1px solid rgba(0,0,0,.08);
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
body#categoryPage .smarter-flip-front { display: flex; flex-direction: column; transform: rotateY(0deg); }
body#categoryPage .smarter-flip-back { transform: rotateY(180deg); }
body#categoryPage[data-category="events"] .smarter-flip-back {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
body#categoryPage[data-category="events"] .smarter-flip-back .edu-card-info {
    flex: 0 0 auto !important;
    margin: auto 0 !important;
    width: 100%;
}
body#categoryPage[data-category="sports"] .smarter-flip-back {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
body#categoryPage[data-category="sports"] .smarter-flip-back .edu-card-info {
    flex: 0 0 auto !important;
    margin: auto 0 !important;
}
body#categoryPage .smarter-flip-front .edu-card-media-wrap { flex: 1; margin-top: 24px !important; }
body#categoryPage .smarter-flip-front .edu-card-media-wrap img { max-height: 360px !important; }
body#categoryPage .smarter-flip-face :is(h3, p, li) { color: #000 !important; -webkit-text-fill-color: #000 !important; }
body#categoryPage .smarter-flip-card:nth-child(even) .smarter-flip-face { background: #f5e3c5; }
body#categoryPage .smarter-flip-card:focus-visible { outline: 3px solid #93c5fd; outline-offset: 6px; border-radius: 24px; }
body#categoryPage :is(.smarter-bento, .smarter-timeline) .solution-smarter-carousel-controls { display: none !important; }
/* Clip horizontal artwork without creating an ancestor scroll container. */
body#categoryPage.smarter-has-timeline .main-page-wrapper { overflow: clip !important; }
html:has(body.smarter-has-timeline), body#categoryPage.smarter-has-timeline { overflow-x: clip !important; overflow-y: visible !important; }
body#categoryPage .smarter-timeline { overflow: visible !important; padding: 0 !important; }
body#categoryPage .smarter-timeline .smarter-pin {
    position: sticky; top: 80px; height: calc(100svh - 80px);
    padding: 24px 0; display: flex; flex-direction: column; justify-content: center;
}
body#categoryPage .smarter-timeline .edu-feat-section-container { width: 90% !important; max-width: 1440px !important; }
body#categoryPage .smarter-timeline .text-center.mb-5 { margin-bottom: 24px !important; }
body#categoryPage .smarter-timeline .text-center.mb-5 > p { font-size: 16px !important; line-height: 1.5 !important; margin-bottom: 0 !important; }
body#categoryPage .smarter-stage { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 28px; align-items: center; }
body#categoryPage .smarter-nav { display: flex; flex-direction: column; align-items: center; gap: 24px; position: relative; }
body#categoryPage .smarter-nav::before { content: ''; position: absolute; top: 20px; bottom: 20px; width: 2px; background: #a8b9cb; }
body#categoryPage .smarter-nav button { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #c8daef; background: #fff; color: #173b60 !important; -webkit-text-fill-color: #173b60 !important; cursor: pointer; font-weight: 700; }
body#categoryPage .smarter-nav button[aria-current=true] { background: #173b60; color: #fff !important; -webkit-text-fill-color: #fff !important; box-shadow: 0 0 0 4px #93c5fd; }
body#categoryPage .smarter-nav button:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
body#categoryPage .smarter-timeline .edu-features-card-grid { display: block !important; position: relative; height: clamp(280px, 48svh, 520px) !important; margin: 0 !important; perspective: 1400px; overflow: visible !important; padding: 0 !important; scroll-snap-type: none !important; }
body#categoryPage .smarter-timeline .edu-feature-card-item {
    position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important;
    min-height: 0 !important; margin: 0 !important; padding: clamp(24px, 3vw, 44px) !important;
    min-width: 0 !important; max-width: 100% !important; flex: none !important;
    display: grid !important; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) !important;
    gap: 32px !important; align-items: center !important;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-24px) scale(.97) !important;
    transition: transform .55s ease, opacity .4s ease !important;
}
body#categoryPage .smarter-timeline .edu-feature-card-item.smarter-current { opacity: 1; visibility: visible; pointer-events: auto; transform: none !important; z-index: 3; }
body#categoryPage .smarter-timeline .edu-feature-card-item.smarter-next { opacity: .55; visibility: visible; z-index: 1; transform: translateY(-16px) scale(.97) !important; }
body#categoryPage .smarter-timeline .edu-feature-card-item.smarter-dropped { opacity: 0; visibility: visible; transform: translateY(65vh) rotate(5deg) !important; z-index: 4; }
body#categoryPage .smarter-timeline .edu-card-info { width: 100% !important; min-width: 0; min-height: 0; max-height: 100%; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
body#categoryPage .smarter-timeline :is(.edu-card-info, .edu-card-info *, .edu-card-media-wrap) { opacity: 1 !important; visibility: visible !important; transform: none !important; animation: none !important; }
body#categoryPage .smarter-timeline .edu-feature-card-item::after { display: none !important; }
body#categoryPage .smarter-timeline .edu-card-title { font-size: clamp(23px, 2.1vw, 32px) !important; }
body#categoryPage .smarter-timeline .edu-card-desc { font-size: clamp(15px, 1.3vw, 19px) !important; line-height: 1.65 !important; }
body#categoryPage .smarter-timeline .edu-card-media-wrap { margin: 0 !important; width: 100% !important; height: 100% !important; min-height: 0 !important; aspect-ratio: auto !important; background: transparent !important; }
body#categoryPage .smarter-timeline .edu-card-media-wrap img { width: 100% !important; height: 100% !important; max-height: 420px !important; object-fit: contain !important; transform: none !important; }
@media(max-width: 767px) {
    body#categoryPage .smarter-bento .edu-features-card-grid { grid-template-columns: 1fr !important; }
    body#categoryPage .smarter-bento .edu-feature-card-item { grid-column: 1 !important; grid-row: auto !important; }
    body#categoryPage .smarter-timeline .smarter-pin { top: 70px; height: calc(100svh - 70px); padding: 12px 0; }
    body#categoryPage .smarter-timeline .text-center.mb-5 > p { display: none; }
    body#categoryPage .smarter-timeline .text-center.mb-5 { margin-bottom: 18px !important; }
    body#categoryPage .smarter-timeline h2 { font-size: 24px !important; margin: 8px 0 !important; }
    body#categoryPage .smarter-stage { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
    body#categoryPage .smarter-nav button { width: 32px; height: 32px; }
    body#categoryPage .smarter-nav { gap: 20px; }
    body#categoryPage .smarter-timeline .edu-features-card-grid { height: 58svh !important; }
    body#categoryPage .smarter-timeline .edu-feature-card-item { grid-template-columns: 1fr !important; grid-template-rows: auto minmax(0, 1fr); padding: 20px !important; gap: 16px !important; }
    body#categoryPage .smarter-timeline .edu-card-title { font-size: 21px !important; }
    body#categoryPage .smarter-timeline .edu-card-desc { font-size: 14px !important; line-height: 1.5 !important; }
}
@media(prefers-reduced-motion: reduce) { body#categoryPage .smarter-timeline .edu-feature-card-item, body#categoryPage .smarter-flip-inner { transition: none !important; } }
@media (min-width: 768px) and (max-height: 800px) {
    body#categoryPage .smarter-timeline .smarter-pin { padding: 12px 0; }
    body#categoryPage .smarter-timeline .text-center.mb-5 { margin-bottom: 16px !important; }
    body#categoryPage .smarter-timeline .text-center.mb-5 h2 { font-size: 28px !important; margin-top: 8px !important; margin-bottom: 12px !important; }
    body#categoryPage .smarter-timeline .text-center.mb-5 > p { font-size: 14px !important; line-height: 1.4 !important; }
    body#categoryPage .smarter-timeline .edu-features-card-grid { height: var(--smarter-short-card-height, 48svh) !important; }
    body#categoryPage .smarter-timeline .edu-feature-card-item { padding: 20px 24px !important; gap: 24px !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) !important; }
    body#categoryPage .smarter-timeline .edu-card-title { font-size: 21px !important; line-height: 1.25 !important; margin-bottom: 10px !important; }
    body#categoryPage .smarter-timeline .edu-card-desc { font-size: 14px !important; line-height: 1.4 !important; margin-bottom: 0 !important; }
    body#categoryPage .smarter-timeline .edu-card-info .beauty-card-point { margin-top: 8px !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; font-size: 14px !important; line-height: 1.4 !important; }
    body#categoryPage .smarter-timeline .edu-card-media-wrap { align-self: stretch !important; overflow: hidden !important; }
    body#categoryPage .smarter-timeline .edu-card-media-wrap img { max-height: 100% !important; object-position: center !important; }
    body#categoryPage .smarter-timeline .smarter-nav { gap: 12px; }
    body#categoryPage .smarter-timeline .smarter-nav button { width: 36px; height: 36px; }
}
@media (max-width: 767.98px) {
    body#categoryPage .edu-coffee-section.smarter-mobile-active {
        height: auto !important;
        min-height: 0 !important;
        padding: 60px 0 !important;
        overflow: visible !important;
    }
    body#categoryPage .smarter-mobile-active .smarter-pin {
        position: static !important;
        height: auto !important;
        padding: 0 !important;
    }
    body#categoryPage .smarter-mobile-active .smarter-stage { display: block !important; }
    body#categoryPage .smarter-mobile-active :is(.edu-features-card-grid, .smarter-nav, .solution-smarter-carousel-controls) { display: none !important; }
    body#categoryPage .smarter-mobile-active .solution-smarter-mobile-carousel .carousel-inner {
        padding: 8px 0 20px;
        overflow: hidden;
    }
    body#categoryPage .smarter-mobile-active .solution-smarter-mobile-carousel .carousel-item > .edu-feature-card-item {
        position: relative !important;
        inset: auto !important;
        display: flex !important;
        flex-direction: column !important;
        width: 88% !important;
        max-width: 420px !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        flex: none !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transition: none !important;
    }
    body#categoryPage .smarter-mobile-active .solution-smarter-mobile-carousel :is(.edu-card-info, .edu-card-info *, .edu-card-media-wrap) {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        animation: none !important;
    }
    body#categoryPage .smarter-mobile-active .solution-smarter-mobile-carousel .edu-card-media-wrap {
        height: auto !important;
        min-height: 0 !important;
        width: 100% !important;
        margin-top: 20px !important;
    }
    body#categoryPage .smarter-mobile-active .solution-smarter-mobile-carousel .edu-card-media-wrap img {
        height: auto !important;
        max-height: 360px !important;
        width: 100% !important;
        object-fit: contain !important;
    }
    body#categoryPage .smarter-mobile-active .solution-smarter-mobile-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        color: #fff;
    }
    body#categoryPage .smarter-mobile-active .solution-smarter-mobile-controls button {
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 10px;
        background: #fff;
        color: #173b60;
        font: 30px/1 Arial, sans-serif;
    }
}

/* Row-span reveal for pages that previously used the dropping card stack. */
body#categoryPage .smarter-span-reveal .edu-features-card-grid { height:auto !important; }
body#categoryPage .smarter-span-reveal .edu-feature-card-item { position:relative !important; inset:auto !important; visibility:visible !important; pointer-events:auto !important; }
body#categoryPage .smarter-span-reveal .edu-card-info,
body#categoryPage .smarter-span-reveal .edu-card-info *,
body#categoryPage .smarter-span-reveal .edu-card-media-wrap { opacity:1 !important; visibility:visible !important; transform:none !important; animation:none !important; }
body#categoryPage .smarter-span-ready .edu-feature-card-item { opacity:0 !important; scale:.97; transition:opacity .65s ease,scale .65s ease !important; transition-delay:var(--smarter-span-delay,0ms) !important; }
body#categoryPage .smarter-span-ready .edu-feature-card-item.smarter-span-visible { opacity:1 !important; scale:1; }
@media(max-width:767.98px), (prefers-reduced-motion:reduce) {
 body#categoryPage .smarter-span-ready .edu-feature-card-item { opacity:1 !important; scale:1; transition:none !important; }
}


body#categoryPage .smarter-span-reveal .smarter-flip-back { display:flex; align-items:center; justify-content:center; text-align:center; }
body#categoryPage .smarter-span-reveal .smarter-flip-back .edu-card-info { flex:0 0 auto !important; margin:auto 0 !important; width:100%; }
body#categoryPage .smarter-span-reveal .smarter-points, body#categoryPage .smarter-span-reveal .smarter-points li, body#categoryPage .smarter-span-reveal .smarter-points li::marker { color:var(--smarter-details-color, inherit) !important; -webkit-text-fill-color:var(--smarter-details-color, inherit) !important; }
body#categoryPage .smarter-span-reveal .smarter-flip-back .smarter-points { list-style:none; padding:0; margin:20px 0 0; }
body#categoryPage .smarter-span-reveal .smarter-flip-back .smarter-points li { margin:16px 0; line-height:1.65; }
@media(min-width:768px) {
 body#categoryPage .smarter-span-reveal .edu-feature-card-item:nth-child(3) { grid-column:1; grid-row:3; }
 body#categoryPage .smarter-span-reveal .edu-feature-card-item:nth-child(4) { grid-column:2; grid-row:2 / span 2; }
}

/* Center every category's card back, including travel, education and nonprofit. */
body#categoryPage .edu-coffee-section .smarter-flip-back {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}
body#categoryPage .edu-coffee-section .smarter-flip-back > .edu-card-info {
    flex: 0 0 auto !important;
    width: 100% !important;
    margin: auto 0 !important;
}
body#categoryPage .edu-coffee-section .smarter-flip-back .smarter-points {
    list-style: none;
    padding-left: 0;
}

/* Explicit child alignment prevents category typography from overriding the back. */
body#categoryPage .edu-coffee-section .smarter-flip-back {
    box-sizing: border-box;
    padding: clamp(24px, 3vw, 40px) !important;
}
body#categoryPage .edu-coffee-section .smarter-flip-back > .edu-card-info,
body#categoryPage .edu-coffee-section .smarter-flip-back > .edu-card-info :is(h3, p, ul, li) {
    text-align: center !important;
    box-sizing: border-box;
    max-width: 100% !important;
    transform: none !important;
}
body#categoryPage .edu-coffee-section .smarter-flip-back > .edu-card-info {
    padding: 0 !important;
    min-width: 0;
}
body#categoryPage .edu-coffee-section .smarter-flip-back .edu-card-title {
    margin: 0 0 14px !important;
}
body#categoryPage .edu-coffee-section .smarter-flip-back .edu-card-desc {
    margin: 0 !important;
    line-height: 1.65 !important;
}
body#categoryPage .edu-coffee-section .smarter-flip-back .smarter-points {
    margin: 20px 0 0 !important;
    padding: 0 !important;
}
body#categoryPage .edu-coffee-section .smarter-flip-back .smarter-points li {
    margin: 0 0 14px !important;
    padding: 0 !important;
    line-height: 1.65 !important;
}
body#categoryPage .edu-coffee-section .smarter-flip-back .smarter-points li:last-child {
    margin-bottom: 0 !important;
}
