/* V4 Hero CSS — exact copy from homepage-v4 inline styles */

/* Design tokens */
#ub3 {
    --ub-primary: #0D47A1;
    --ub-primary-light: #1976D2;
    --ub-accent: #00897B;
    --ub-accent-light: #4DB6AC;
    --ub-warm: #FF6F00;
    --ub-bg: #FAFBFC;
    --ub-text: #1A202C;
    --ub-muted: #64748B;
    --ub-card: #ffffff;
    --ub-border: #E2E8F0;
    --ub-radius: 16px;
    --ub-radius-sm: 10px;
}

#ub3 {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    color: var(--ub-text);
    margin: 0;
    width: 100%;
    overflow-x: hidden;
}
#ub3 *, #ub3 *::before, #ub3 *::after { box-sizing: border-box; }

/* Typography */
#ub3 h1 { font-family: Poppins, sans-serif; font-size: 52px; line-height: 1.08; font-weight: 800; margin: 0 0 0.4em; color: var(--ub-text); }
#ub3 p { line-height: 1.65; margin: 0 0 0.5em; color: #334155; }

.ub-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 13px;
    color: var(--ub-primary);
    margin-bottom: 10px;
}

/* Buttons */
#ub3 .ub-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--ub-radius-sm);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}
#ub3 .ub-btn-white { background: #fff; color: var(--ub-primary); border-color: #fff; }
#ub3 .ub-btn-white:hover { background: rgba(255,255,255,0.9); }
#ub3 .ub-btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
#ub3 .ub-btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.ub-btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
#ub3 .ub-hero {
    background: linear-gradient(160deg, #071e3d 0%, #0d3868 40%, #0a4f76 100%);
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
}
#ub3 .ub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(0, 137, 123, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(13, 71, 161, 0.12) 0%, transparent 35%);
    pointer-events: none;
}
#ub3 .ub-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: 140px 40px 120px;
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 16px;
    align-items: center;
}
#ub3 .ub-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
#ub3 .ub-hero-badge-icon {
    display: flex;
    align-items: center;
    margin-left: -4px;
}
#ub3 .ub-hero-badge-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -8px;
}
#ub3 .ub-hero-badge-circle:first-child { margin-left: 0; }
#ub3 .ub-hero-badge-circle-1 { background: linear-gradient(to bottom right, #0a54a4, #4aa4ed); }
#ub3 .ub-hero-badge-circle-2 { background: linear-gradient(to bottom right, #4aa4ed, #fec92a); }
#ub3 .ub-hero-badge-circle-3 { background: linear-gradient(to bottom right, #fec92a, #0a54a4); }

#ub3 .ub-hero h1 { color: #fff; font-size: 48px; }
#ub3 .ub-hero p { color: rgba(255,255,255,0.85); font-size: 18px; }
#ub3 .ub-hero .ub-eyebrow { color: var(--ub-accent-light); }
#ub3 .ub-hero .ub-btn-group { margin-top: 32px; }

#ub3 .ub-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Educator Carousel */
#ub3 .ub-hero-carousel {
    position: relative;
    width: 100%;
    max-width: 920px;
    overflow: hidden;
    margin: 0 auto;
}
#ub3 .ub-hero-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#ub3 .ub-hero-slide {
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 0;
}

/* Educator photo */
#ub3 .ub-spec-device {
    position: relative;
    width: 400px;
    height: 560px;
    z-index: 1;
    margin: 0 auto;
    overflow: hidden;
}
#ub3 .ub-spec-device::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(77,182,172,0.18) 0%, transparent 70%);
    filter: blur(10px);
}
#ub3 .ub-spec-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}

/* Name plate */
#ub3 .ub-spec-nameplate {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0.5) 65%, rgba(0,0,0,0.2) 85%, transparent 100%);
    padding: 36px 12px 12px;
}
#ub3 .ub-spec-name {
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
#ub3 .ub-spec-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--ub-accent-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 2px;
}
#ub3 .ub-spec-tags {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}
#ub3 .ub-spec-tag {
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(77,182,172,0.12);
    color: var(--ub-accent-light);
    border: 1px solid rgba(77,182,172,0.25);
}

/* Spec columns — absolute positioned */
#ub3 .ub-spec-col-left,
#ub3 .ub-spec-col-right {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 240px;
    pointer-events: none;
}
#ub3 .ub-spec-col-left { left: 0; }
#ub3 .ub-spec-col-right { right: 0; }

/* Spec labels — positioned by JS */
#ub3 .ub-spec-label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    position: absolute;
    pointer-events: auto;
}
#ub3 .ub-spec-col-left .ub-spec-label {
    flex-direction: row-reverse;
    text-align: right;
    right: 0;
}
#ub3 .ub-spec-col-right .ub-spec-label {
    left: 0;
}

/* Connector SVG lines */
#ub3 .ub-spec-connector {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}
#ub3 .ub-spec-connector path {
    fill: none;
    stroke: rgba(77,182,172,0.4);
    stroke-width: 1;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: ubLineIn 0.8s ease-out forwards;
}
@keyframes ubLineIn {
    to { stroke-dashoffset: 0; }
}
#ub3 .ub-spec-connector circle {
    fill: var(--ub-accent-light);
    opacity: 0;
    animation: ubDotPop 0.3s ease-out 0.7s forwards;
}
@keyframes ubDotPop {
    to { opacity: 1; }
}

/* Dot */
#ub3 .ub-spec-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ub-accent-light);
    box-shadow: 0 0 6px rgba(77,182,172,0.6);
    flex-shrink: 0;
    margin-top: 5px;
}

#ub3 .ub-spec-key {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ub-accent-light);
    margin-bottom: 1px;
}
#ub3 .ub-spec-val {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
}

/* CTA button on silhouette */
#ub3 .ub-spec-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 10px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.25s;
}
#ub3 .ub-spec-cta:hover {
    background: rgba(255,255,255,0.3);
    border-color: #fff;
}

/* Teacher name below image */
#ub3 .ub-hero-teacher-name {
    text-align: center;
    margin-top: 12px;
}

/* Carousel dots */
#ub3 .ub-hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}
#ub3 .ub-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
#ub3 .ub-hero-dot.active {
    background: var(--ub-accent-light);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(77,182,172,0.5);
}

/* Per-slide details (hidden on desktop) */
#ub3 .ub-slide-details { display: none; text-align: center; width: 100%; }
#ub3 .ub-slide-details .ub-mobile-spec-row { grid-template-columns: 1fr; max-width: 280px; gap: 6px; }
#ub3 .ub-slide-details .ub-spec-val { font-size: 12px; }

/* Shared mobile specs */
#ub3 .ub-hero-mobile-specs { display: none; margin-top: 16px; }
#ub3 .ub-mobile-spec-set { display: none; }
#ub3 .ub-mobile-spec-set.active { display: block; }
#ub3 .ub-mobile-spec-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
    text-align: center; max-width: 360px; margin: 0 auto;
}
#ub3 .ub-mobile-spec .ub-spec-key { font-size: 10px; margin-bottom: 1px; }
#ub3 .ub-mobile-spec .ub-spec-val { font-size: 12px; }

/* Responsive */
@media (max-width: 1024px) {
    #ub3 .ub-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    #ub3 .ub-hero .ub-btn-group { justify-content: center; }
    #ub3 .ub-hero-carousel { max-width: 420px; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 auto; }
    #ub3 .ub-hero-carousel::-webkit-scrollbar { display: none; }
    #ub3 .ub-hero-slides { transition: none; }
    #ub3 .ub-hero-slide { min-width: 100%; scroll-snap-align: start; padding: 10px 0 0; }
    #ub3 .ub-spec-device { width: 380px; height: 500px; margin: 0 auto; }
    #ub3 .ub-spec-col-left,
    #ub3 .ub-spec-col-right,
    #ub3 .ub-spec-connector { display: none; }
    #ub3 .ub-slide-details { display: block; margin-top: 12px; }
    #ub3 .ub-hero-teacher-name-shared,
    #ub3 .ub-hero-mobile-specs-shared { display: none !important; }
    #ub3 .ub-hero-dots { position: sticky; left: 0; }
}

@media (max-width: 640px) {
    #ub3 h1, #ub3 .ub-hero h1 { font-size: 30px; }
    #ub3 .ub-hero-inner { padding: 120px 16px 80px; }
    #ub3 .ub-hero-carousel { max-width: 380px; }
    #ub3 .ub-spec-device { width: 340px; height: 460px; }
    #ub3 .ub-btn { padding: 12px 22px; font-size: 14px; }
}

@media (max-width: 480px) {
    #ub3 h1, #ub3 .ub-hero h1 { font-size: 24px; }
    #ub3 .ub-hero-inner { padding: 100px 12px 60px; }
    #ub3 .ub-hero-carousel { max-width: 320px; }
    #ub3 .ub-spec-device { width: 290px; height: 400px; }
    #ub3 .ub-mobile-spec-row { gap: 8px 12px; }
    #ub3 .ub-mobile-spec .ub-spec-key { font-size: 9px; }
    #ub3 .ub-mobile-spec .ub-spec-val { font-size: 11px; }
}

/* ==============================
   SHARED LAYOUT
   ============================== */
.ub-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.ub-section { padding: 96px 0; }
.ub-section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.ub-muted { color: var(--ub-muted); }
#ub3 h2 { font-family: Poppins, sans-serif; font-size: 36px; line-height: 1.15; font-weight: 700; margin: 0 0 0.4em; color: var(--ub-text); }
#ub3 .ub-anim { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
#ub3 .ub-anim.ub-visible { opacity: 1; transform: translateY(0); }

/* ==============================
   USE CASES SECTION
   ============================== */
#ub3 .ub-uc-section { background: var(--ub-bg, #FAFBFC); overflow: visible; }

#ub3 .ub-uc-carousel {
    position: relative;
    max-width: 1296px;
    margin: 0 auto;
    overflow: visible;
}

#ub3 .ub-uc-track-wrap { overflow: hidden; }

#ub3 .ub-uc-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

#ub3 .ub-uc-page {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    padding: 6px;
}

#ub3 .ub-uc-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-height: 337px;
    display: flex;
    flex-direction: column;
}
#ub3 .ub-uc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(13,71,161,0.12);
}
#ub3 .ub-uc-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ub-primary);
    margin: 0 0 10px 0;
}
#ub3 .ub-uc-case h4 {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 0 10px;
    border-radius: 6px;
}
#ub3 .ub-uc-card > div:nth-child(2) h4 { background: #fef2f2; }
#ub3 .ub-uc-card > div:nth-child(4) h4 { background: #eff6ff; }
#ub3 .ub-uc-case p {
    font-size: 14px;
    color: #063c4b;
    margin: 0;
    line-height: 1.5;
}
#ub3 .ub-uc-arrow {
    color: var(--ub-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
#ub3 .ub-uc-arrow::before {
    content: '\2192';
    font-size: 25px;
    font-weight: bold;
}
#ub3 .ub-uc-result {
    background: transparent;
    color: #f59e0b;
    padding: 12px 0 0 0;
    border-top: 1px solid #e5e7eb;
    font-weight: 600;
    font-size: 18px;
    margin-top: 12px;
    line-height: 1.4;
}

#ub3 .ub-uc-prev,
#ub3 .ub-uc-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e5e7eb;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    padding: 0;
}
#ub3 .ub-uc-prev svg,
#ub3 .ub-uc-next svg {
    width: 20px; height: 20px;
    stroke: currentColor; stroke-width: 2; fill: none;
}
#ub3 .ub-uc-prev { left: -60px; }
#ub3 .ub-uc-next { right: -60px; }
#ub3 .ub-uc-prev:hover,
#ub3 .ub-uc-next:hover {
    background: var(--ub-primary);
    color: white;
    border-color: var(--ub-primary);
    transform: translateY(-50%) scale(1.05);
}

#ub3 .ub-uc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}
#ub3 .ub-uc-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}
#ub3 .ub-uc-dot:hover { background: #94a3b8; }
#ub3 .ub-uc-dot.active {
    background: var(--ub-primary);
    width: 24px;
    border-radius: 5px;
}

@media (max-width: 1024px) {
    #ub3 .ub-uc-page { grid-template-columns: repeat(2, 1fr); }
    #ub3 .ub-uc-prev { left: -10px; }
    #ub3 .ub-uc-next { right: -10px; }
    #ub3 .ub-uc-prev, #ub3 .ub-uc-next { width: 36px; height: 36px; }
}
@media (max-width: 768px) {
    #ub3 .ub-uc-page { grid-template-columns: 1fr; }
    #ub3 .ub-uc-card { max-height: none; padding: 20px; }
    #ub3 .ub-uc-card h3 { font-size: 17px; }
    #ub3 .ub-uc-page { gap: 14px; }
}
@media (max-width: 640px) {
    .ub-section { padding: 60px 0; }
    .ub-container { padding: 0 16px; }
    #ub3 h2 { font-size: 24px; }
}
@media (max-width: 480px) {
    .ub-section { padding: 48px 0; }
    #ub3 h2 { font-size: 20px; }
    #ub3 .ub-uc-prev, #ub3 .ub-uc-next { display: none; }
}

/* .ub3-scope — same styles as #ub3 for use outside the hero wrapper */

/* ==============================
   USE CASES SECTION
   ============================== */
.ub3-scope .ub-uc-section { background: var(--ub-bg, #FAFBFC); overflow: visible; }

.ub3-scope .ub-uc-carousel {
    position: relative;
    max-width: 1296px;
    margin: 0 auto;
    overflow: visible;
}

.ub3-scope .ub-uc-track-wrap { overflow: hidden; }

.ub3-scope .ub-uc-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.ub3-scope .ub-uc-page {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    padding: 6px;
}

.ub3-scope .ub-uc-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}
.ub3-scope .ub-uc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(13,71,161,0.12);
}
.ub3-scope .ub-uc-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ub-primary);
    margin: 0 0 10px 0;
}
.ub3-scope .ub-uc-case h4 {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 0 10px;
    border-radius: 6px;
}
.ub3-scope .ub-uc-card > div:nth-child(2) h4 { background: #fef2f2; }
.ub3-scope .ub-uc-card > div:nth-child(4) h4 { background: #eff6ff; }
.ub3-scope .ub-uc-case p {
    font-size: 14px;
    color: #063c4b;
    margin: 0;
    line-height: 1.5;
}
.ub3-scope .ub-uc-arrow {
    color: var(--ub-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ub3-scope .ub-uc-arrow::before {
    content: '\2192';
    font-size: 25px;
    font-weight: bold;
}
.ub3-scope .ub-uc-result {
    background: transparent;
    color: #f59e0b;
    padding: 12px 0 0 0;
    border-top: 1px solid #e5e7eb;
    font-weight: 600;
    font-size: 18px;
    margin-top: 12px;
    line-height: 1.4;
}

.ub3-scope .ub-uc-prev,
.ub3-scope .ub-uc-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e5e7eb;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    padding: 0;
}
.ub3-scope .ub-uc-prev svg,
.ub3-scope .ub-uc-next svg {
    width: 20px; height: 20px;
    stroke: currentColor; stroke-width: 2; fill: none;
}
.ub3-scope .ub-uc-prev { left: -60px; }
.ub3-scope .ub-uc-next { right: -60px; }
.ub3-scope .ub-uc-prev:hover,
.ub3-scope .ub-uc-next:hover {
    background: var(--ub-primary);
    color: white;
    border-color: var(--ub-primary);
    transform: translateY(-50%) scale(1.05);
}

.ub3-scope .ub-uc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}
.ub3-scope .ub-uc-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}
.ub3-scope .ub-uc-dot:hover { background: #94a3b8; }
.ub3-scope .ub-uc-dot.active {
    background: var(--ub-primary);
    width: 24px;
    border-radius: 5px;
}

@media (max-width: 1024px) {
    .ub3-scope .ub-uc-page { grid-template-columns: repeat(2, 1fr); }
    .ub3-scope .ub-uc-prev { left: -10px; }
    .ub3-scope .ub-uc-next { right: -10px; }
    .ub3-scope .ub-uc-prev, .ub3-scope .ub-uc-next { width: 36px; height: 36px; }
}
@media (max-width: 768px) {
    .ub3-scope .ub-uc-page { grid-template-columns: 1fr; }
    .ub3-scope .ub-uc-card { max-height: none; padding: 20px; }
    .ub3-scope .ub-uc-card h3 { font-size: 17px; }
    .ub3-scope .ub-uc-page { gap: 14px; }
}
@media (max-width: 640px) {
    .ub-section { padding: 60px 0; }
    .ub-container { padding: 0 16px; }
    .ub3-scope h2 { font-size: 24px; }
}
@media (max-width: 480px) {
    .ub-section { padding: 48px 0; }
    .ub3-scope h2 { font-size: 20px; }
    .ub3-scope .ub-uc-prev, .ub3-scope .ub-uc-next { display: none; }
}
.ub3-scope h2 { font-family: Poppins, sans-serif; font-size: 36px; line-height: 1.15; font-weight: 700; margin: 0 0 0.4em; color: #1A202C; }
.ub3-scope .ub-anim { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.ub3-scope .ub-anim.ub-visible { opacity: 1; transform: translateY(0); }

/* Design tokens for .ub3-scope */
.ub3-scope { --ub-primary: #0D47A1; --ub-primary-light: #1976D2; --ub-accent: #00897B; --ub-accent-light: #4DB6AC; --ub-text: #1A202C; --ub-muted: #64748B; --ub-bg: #FAFBFC; font-family: Inter, system-ui, sans-serif; }
.ub3-scope *, .ub3-scope *::before, .ub3-scope *::after { box-sizing: border-box; }

/* ==============================
   PROGRAMS SECTION
   ============================== */
#ub3 .ub-prog-section { background: var(--ub-bg-alt); }
#ub3 .ub-prog-tabs {
    display: flex; justify-content: center; gap: 8px;
    margin-bottom: 40px; flex-wrap: wrap;
}
#ub3 .ub-prog-tab {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 18px; background: #fff; border: 1px solid var(--ub-border);
    border-radius: 999px; cursor: pointer; transition: all 0.2s;
    font-weight: 600; font-size: 13px; color: var(--ub-muted); font-family: 'Inter', sans-serif;
}
#ub3 .ub-prog-tab svg { width: 16px; height: 16px; stroke: currentColor; flex-shrink: 0; }
#ub3 .ub-prog-tab:hover,
#ub3 .ub-prog-tab.active {
    background: var(--ub-primary); color: #fff; border-color: var(--ub-primary);
}
#ub3 .ub-prog-tab.active svg { stroke: white; }
#ub3 .ub-prog-content { margin-bottom: 40px; }
#ub3 .ub-prog-panel { display: none !important; }
#ub3 .ub-prog-panel.active { display: block !important; animation: ub-fadeIn 0.3s ease; }
@keyframes ub-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
#ub3 .ub-prog-carousel-wrap {
    position: relative;
}
#ub3 .ub-prog-carousel { overflow: hidden; flex: 1; padding: 8px 0; margin: -8px 0; }
#ub3 .ub-prog-track {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 992px) { #ub3 .ub-prog-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) {
    #ub3 .ub-prog-carousel { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scrollbar-width: none; }
    #ub3 .ub-prog-carousel::-webkit-scrollbar { display: none; }
    #ub3 .ub-prog-track { display: flex; gap: 12px; padding: 0 4vw; }
    #ub3 .ub-prog-card { min-width: calc(100vw - 40px); max-width: calc(100vw - 40px); flex-shrink: 0; scroll-snap-align: center; display: block !important; margin-bottom: 0; }
    #ub3 .ub-prog-card-image { aspect-ratio: 16/9; }
    #ub3 .ub-prog-card-content { padding: 10px 12px; }
    #ub3 .ub-prog-card-content h4 { font-size: 14px; margin-bottom: 6px; }
    #ub3 .ub-prog-card-additional-meta { gap: 6px; margin-bottom: 8px; font-size: 11px; }
    #ub3 .ub-prog-card-excerpt { font-size: 12px; margin-bottom: 8px; -webkit-line-clamp: 2; }
    #ub3 .ub-prog-card-badges-row { gap: 4px; }
    #ub3 .ub-prog-card-community,
    #ub3 .ub-prog-card-hrdc,
    #ub3 .ub-prog-card-focus-badge,
    #ub3 .ub-prog-card-conduct-badge { font-size: 10px; padding: 5px 8px; }
    #ub3 .ub-prog-card-author-row { padding-bottom: 6px; }
    #ub3 .ub-prog-card-author { font-size: 11px; }
    #ub3 .ub-prog-card-avatar { width: 20px; height: 20px; }
    #ub3 .ub-prog-card-footer { padding-top: 6px; }
    #ub3 .ub-prog-card-quick-enroll,
    #ub3 .ub-prog-card-view { padding: 7px 12px; font-size: 12px; }
    #ub3 .ub-prog-card-price { font-size: 12px; }
    #ub3 .ub-prog-card-rating { font-size: 11px; }
    #ub3 .ub-prog-dots { display: none; }
}
#ub3 .ub-prog-card { height: auto; margin-bottom: 10px; }
#ub3 .ub-prog-card-inner {
    display: flex; flex-direction: column; height: 100%;
    background: white; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--ub-border);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
#ub3 .ub-prog-card-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0; cursor: pointer;
}
#ub3 .ub-prog-card-content { pointer-events: none; position: relative; }
#ub3 .ub-prog-card-quick-enroll,
#ub3 .ub-prog-card-view,
#ub3 .ub-prog-card-community,
#ub3 .ub-prog-card-title-link,
#ub3 .ub-prog-card-video-trigger { pointer-events: auto; position: relative; z-index: 2; }
#ub3 .ub-prog-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
#ub3 .ub-prog-card-image {
    position: relative; aspect-ratio: 16/10; overflow: hidden;
}
#ub3 .ub-prog-card-image img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;
}
#ub3 .ub-prog-card-image-link:hover .ub-prog-card-image img { transform: scale(1.05); }
#ub3 .ub-prog-card-ribbon {
    position: absolute; top: 15px; left: 0;
    color: #fff; font-size: 11px; line-height: 1; padding: 5px 12px;
    border-radius: 0 15px 15px 0; text-transform: uppercase; letter-spacing: 0.23px; z-index: 9;
}
#ub3 .ub-ribbon-self-paced-course-and-quiz { background: #198C95; }
#ub3 .ub-ribbon-1on1-private-tutor { background: #CE011F; }
#ub3 .ub-ribbon-live-class-1-to-many { background: #7c3aed; }
#ub3 .ub-ribbon-experience-maker { background: #085CB9; }
#ub3 .ub-prog-card-content {
    padding: 16px; display: flex; flex-direction: column; flex: 1;
}
#ub3 .ub-prog-card-content h4 {
    font-size: 16px; font-weight: 600; color: #1f2937;
    margin: 0 0 8px 0; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Additional Meta Section */
#ub3 .ub-prog-card-additional-meta {
    display: flex; flex-direction: column; align-items: center;
    gap: 10px; margin-bottom: 15px; font-size: 12px;
}
/* Language Pair */
#ub3 .ub-prog-card-language-pair {
    color: #0D47A1; font-weight: 600; line-height: 1.3;
    display: flex; align-items: center; justify-content: center;
    gap: 8px; width: 100%;
}
#ub3 .ub-prog-lang-instructions,
#ub3 .ub-prog-lang-subjects {
    display: flex; flex-direction: column; gap: 2px; flex: 1;
}
#ub3 .ub-prog-lang-instructions { text-align: right; align-items: flex-end; }
#ub3 .ub-prog-lang-subjects { text-align: left; align-items: flex-start; }
#ub3 .ub-prog-lang-item { display: block; white-space: nowrap; }
#ub3 .ub-prog-lang-arrow { color: #64748B; font-weight: 400; flex-shrink: 0; }
/* Years of Experience */
#ub3 .ub-prog-card-experience { color: #334155; }
/* Badges Row */
#ub3 .ub-prog-card-badges-row {
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
}
#ub3 .ub-prog-card-community {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 11px; font-weight: 600; color: #7c3aed;
    background: #f5f3ff; border: 1px solid #e9d5ff;
    padding: 8px 10px; border-radius: 999px;
    line-height: 1; text-decoration: none; transition: all 0.2s;
}
#ub3 .ub-prog-card-community:hover { background: #ede9fe; color: #6d28d9; }
#ub3 .ub-prog-card-community svg { flex-shrink: 0; }
#ub3 .ub-prog-card-hrdc {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 11px; font-weight: 600; color: #059669;
    background: #ecfdf5; border: 1px solid #a7f3d0;
    padding: 8px 10px; border-radius: 999px; line-height: 1;
}
#ub3 .ub-prog-card-hrdc svg { flex-shrink: 0; }
/* Focus Area Badges */
#ub3 .ub-prog-card-focus-areas { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
#ub3 .ub-prog-card-focus-badge {
    display: inline-block; padding: 8px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 600; line-height: 1.2;
    background: #f0f7ff; color: #0D47A1; border: 1px solid #dbeafe;
}
/* Conduct Type Badges */
#ub3 .ub-prog-card-conduct-wrap { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
#ub3 .ub-prog-card-conduct-badge {
    display: inline-block; padding: 8px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 600; line-height: 1.2;
}
#ub3 .ub-prog-conduct-online { background: #e0f7fa; color: #00838f; border: 1px solid #80deea; }
#ub3 .ub-prog-conduct-inperson { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
/* Excerpt */
#ub3 .ub-prog-card-excerpt {
    font-size: 13px; color: #6b7280; margin: 0 0 12px 0; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    text-align: center; font-style: italic;
}
#ub3 .ub-prog-card-author-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-top: auto; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0;
}
#ub3 .ub-prog-card-author {
    display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6b7280; line-height: 1;
}
#ub3 .ub-prog-card-avatar {
    width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
#ub3 .ub-prog-card-quick-enroll {
    display: block; width: 100%; padding: 10px 20px;
    font-size: 13px; font-weight: 600; text-align: center;
    color: var(--ub-primary); background: transparent;
    border: 2px solid var(--ub-primary); border-radius: var(--ub-radius-sm);
    text-decoration: none; transition: all 0.2s; cursor: pointer;
}
#ub3 .ub-prog-card-quick-enroll:hover { background: var(--ub-primary); color: #fff; }
#ub3 .ub-prog-card-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px;
}
#ub3 .ub-prog-card-review { display: flex; align-items: center; gap: 4px; }
#ub3 .ub-prog-card-rating {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 13px; font-weight: 600; color: #1f2937;
}
#ub3 .ub-prog-card-rating svg { flex-shrink: 0; }
#ub3 .ub-prog-card-review-count { font-size: 12px; color: #6b7280; }
#ub3 .ub-prog-card-no-review { font-size: 12px; color: #9ca3af; }
#ub3 .ub-prog-card-price { font-size: 14px; font-weight: 600; color: #1f2937; }
#ub3 .ub-prog-card-view {
    display: block; width: 100%; padding: 10px 20px;
    font-size: 13px; font-weight: 600; text-align: center;
    color: var(--ub-primary); background: transparent;
    border: 2px solid var(--ub-primary); border-radius: var(--ub-radius-sm);
    text-decoration: none; transition: all 0.2s;
}
#ub3 .ub-prog-card-view:hover { background: var(--ub-primary); color: #fff; }
#ub3 .ub-prog-card-image-link { display: block; }
#ub3 .ub-prog-card-video-trigger { display: block; cursor: pointer; }
#ub3 .ub-prog-card-play-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10;
    pointer-events: none; width: 50px; height: 50px; border-radius: 50%;
    background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}
#ub3 .ub-prog-card-video-trigger:hover .ub-prog-card-play-overlay {
    transform: translate(-50%, -50%) scale(1.1); background: rgba(0,0,0,0.8);
}
#ub3 .ub-prog-card-play-overlay svg { display: block; width: 24px; height: 24px; }
#ub3 .ub-prog-card-title-row {
    display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin-bottom: 8px;
}
#ub3 .ub-prog-card-title-link { text-decoration: none; color: inherit; text-align: center; }
#ub3 .ub-prog-card-title-row .ub-prog-card-review { flex-shrink: 0; }
#ub3 .ub-prog-card-title-link:hover h4 { color: var(--ub-primary); }
/* Dot Pagination */
#ub3 .ub-prog-dots {
    display: flex; justify-content: center; align-items: center;
    gap: 10px; padding-top: 24px;
}
#ub3 .ub-prog-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #d1d5db; border: none; padding: 0;
    cursor: pointer; transition: all 0.3s;
}
#ub3 .ub-prog-dot:hover { background: #9ca3af; }
#ub3 .ub-prog-dot.active {
    background: var(--ub-primary); width: 28px; border-radius: 5px;
}
#ub3 .ub-prog-empty { text-align: center; color: #6b7280; padding: 40px; }
#ub3 .ub-prog-cta { display: flex; justify-content: center; margin-top: 30px; }
#ub3 .ub-prog-cta .ub-btn {
    padding: 8px 18px; font-size: 13px; font-weight: 600;
    background: #fff; color: var(--ub-muted);
    border: 1px solid var(--ub-border); border-radius: 999px;
    text-decoration: none; display: inline-block; transition: all 0.2s;
    cursor: pointer;
}
#ub3 .ub-prog-cta .ub-btn:hover {
    background: var(--ub-primary); color: #fff; border-color: var(--ub-primary);
}
/* ===== TRIAL FORM SECTION ===== */
