@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ================================================================
   INSTRUCTOR PROFILE  ·  Compact v2  ·  Flat Design System
   ----------------------------------------------------------------
   Prefix   ip-   (instructor profile)
   Tokens:
     White       #FFFFFF
     Page bg     #FDFBF8   (inherited)
     Accent      #A41034
     Hover       #D91247
     Ink         #111827
     Body        #374151
     Muted       #6B7280
     Border      #E5E7EB
     Amber       #F59E0B   (stars only)
================================================================ */

main.main-area { overflow: visible !important; min-height: 0 !important; padding-bottom: 0 !important; margin-bottom: 0 !important; }
.ip-page { padding-bottom: 0 !important; margin-bottom: 0 !important; }

/* ================================================================
   PAGE SHELL
================================================================ */
.ip-page {
    font-family: 'Inter', system-ui, sans-serif;
    color: #374151;
}

/* ================================================================
   HERO ENTRANCE ANIMATIONS
================================================================ */
@keyframes ip-avatar-pop {
    0%   { opacity: 0; transform: scale(.75); }
    65%  { transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes ip-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes ip-stat-enter {
    from { opacity: 0; transform: translateX(28px) scale(.96); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes ip-orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%  { transform: translate(-18px, 14px) scale(1.06); }
    70%  { transform: translate(12px, -8px) scale(.96); }
}
@keyframes ip-shimmer-sweep {
    0%   { transform: translateX(-100%) skewX(-12deg); }
    100% { transform: translateX(250%) skewX(-12deg); }
}

/* ================================================================
   1.  IDENTITY HEADER  —  Cinematic Crimson Hero
   Color system: all darks derived from #A41034 (hsl 346°, 82%)
   L=10% #2E060E  L=18% #4A0B1A  L=26% #6B0E26  L=36% #A41034
================================================================ */
.ip-header {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 18px 0 0;
    padding: clamp(28px,3.2vw,52px) clamp(24px,3.2vw,44px);
    background: radial-gradient(130% 150% at 12% 0%, #C2143F 0%, #A41034 46%, #7E0C26 100%);
    box-shadow: 0 22px 50px -18px rgba(164,16,52,.55);
    color: #fff;
}

/* Grain texture */
.ip-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: .055;
    pointer-events: none;
    z-index: 0;
}
/* Floating ambient orb — slow drift */
.ip-header::after {
    content: '';
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 70%);
    top: -120px; right: 40px;
    pointer-events: none;
    z-index: 0;
    animation: ip-orb-drift 9s ease-in-out infinite;
}

/* One-time shimmer sweep on load */
.ip-header__shimmer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.ip-header__shimmer::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 0; width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
    animation: ip-shimmer-sweep 1.6s cubic-bezier(.4,0,.2,1) .3s both;
}

/* Dot grid overlay — mirrors courses hero */
.ip-header__dots {
    position: absolute; inset: 0; opacity: .45;
    background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask: radial-gradient(80% 100% at 85% 0%, #000, transparent 75%);
    mask: radial-gradient(80% 100% at 85% 0%, #000, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

/* ── Layout ── */
.ip-header__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 32px;
}
.ip-header__identity {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 24px;
    align-items: center;
}
.ip-header__info { flex: 1; min-width: 0; }

/* ── Avatar — cinematic triple-ring halo ── */
.ip-avatar {
    flex-shrink: 0;
    width: 106px; height: 106px;
    border-radius: 50%;
    overflow: hidden;
    background: #4A0B1A;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,.22);
    box-shadow:
        0 0 0 5px rgba(164,16,52,.65),
        0 0 0 11px rgba(164,16,52,.22),
        0 0 0 18px rgba(164,16,52,.08),
        0 20px 60px rgba(164,16,52,.35),
        0 0 50px rgba(164,16,52,.40);
    transition: box-shadow .3s, transform .3s;
    animation: ip-avatar-pop .6s cubic-bezier(.34,1.56,.64,1) .05s both;
}
.ip-avatar:hover {
    transform: scale(1.04);
    box-shadow:
        0 0 0 5px rgba(164,16,52,.90),
        0 0 0 12px rgba(164,16,52,.32),
        0 0 0 22px rgba(164,16,52,.10),
        0 24px 72px rgba(164,16,52,.45),
        0 0 70px rgba(164,16,52,.55);
}
.ip-avatar img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    display: block;
}
.ip-avatar span {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 32px; font-weight: 700;
    color: #FCA5A5; line-height: 1;
    user-select: none;
}

/* ── Tags — frosted glass pills ── */
.ip-tags {
    display: flex; flex-wrap: wrap;
    gap: 6px; margin-bottom: 12px;
    animation: ip-rise .5s ease .18s both;
}
.ip-tag {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10px; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 20px; line-height: 1;
    backdrop-filter: blur(10px);
}
.ip-tag--accent {
    background: rgba(164,16,52,.35);
    border: 1px solid rgba(164,16,52,.55);
    color: #FCA5A5;
    box-shadow: 0 0 14px rgba(164,16,52,.30);
}
.ip-tag--muted {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.20);
    color: rgba(255,255,255,.68);
}
.ip-tag--highlight {
    background: #F5F1EA;
    border: 1px solid #F5F1EA;
    color: #A41034;
    box-shadow: 0 0 16px rgba(245,241,234,.45);
}

/* ── Name ── */
.ip-name {
    font-family: 'Fraunces', Georgia, serif !important;
    font-size: clamp(28px, 3.2vw, 46px) !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    line-height: 1.04 !important;
    letter-spacing: -0.035em !important;
    margin: 0 0 6px !important;
    text-transform: none !important;
    text-shadow: 0 2px 20px rgba(0,0,0,.4) !important;
    animation: ip-rise .5s ease .26s both;
}

/* ── Job title ── */
.ip-job {
    font-size: 13.5px; font-weight: 600;
    color: #FCA5A5;
    margin: 0 0 10px;
    letter-spacing: -.01em;
    animation: ip-rise .5s ease .32s both;
}

/* ── Short bio — clamps to 2 lines at word boundary ── */
.ip-snippet {
    font-size: 13.5px; line-height: 1.65;
    color: rgba(255,255,255,.58);
    margin: 0 0 18px; max-width: 560px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: break-word;
    animation: ip-rise .5s ease .38s both;
}

/* ── Footer row ── */
.ip-header__foot {
    display: flex; align-items: center;
    flex-wrap: wrap; gap: 12px;
    animation: ip-rise .5s ease .44s both;
}

/* ── Social icons — frosted glass squares ── */
.ip-socials { display: flex; gap: 6px; flex-wrap: wrap; }
.ip-social {
    width: 34px; height: 34px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.65);
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
    flex-shrink: 0;
}
.ip-social:hover {
    background: #A41034;
    border-color: rgba(255,255,255,.30);
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 28px rgba(164,16,52,.65);
}

/* ── Divider ── */
.ip-header__ctas { position: relative; padding-left: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.ip-header__ctas::before {
    content: '';
    position: absolute;
    left: 0; top: 50%; transform: translateY(-50%);
    width: 1px; height: 22px;
    background: rgba(255,255,255,.18);
}

/* ── CTA buttons ── */
.ip-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Inter', inherit;
    font-size: 12.5px; font-weight: 700;
    padding: 10px 20px; border-radius: 10px;
    text-decoration: none; border: none; cursor: pointer;
    white-space: nowrap; line-height: 1; letter-spacing: -.01em;
    transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
/* Primary: white on dark = inverted, stands out beautifully */
.ip-btn--primary {
    background: #FFFFFF;
    color: #A41034;
    box-shadow: 0 4px 20px rgba(255,255,255,.18), 0 0 0 0 rgba(255,255,255,0);
}
.ip-btn--primary:hover {
    background: #FFF0F3;
    color: #8B0D2B;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(255,255,255,.26);
}
/* Ghost: frosted glass */
.ip-btn--ghost {
    background: rgba(255,255,255,.10);
    color: rgba(255,255,255,.88);
    border: 1.5px solid rgba(255,255,255,.22);
    backdrop-filter: blur(10px);
}
.ip-btn--ghost:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.40);
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.30);
}

/* ── Stats panel — animation ── */
.ip-header__stats {
    animation: ip-stat-enter .6s cubic-bezier(.16,1,.3,1) .22s both;
    box-shadow:
        0 20px 64px rgba(164,16,52,.22),
        0 6px 20px rgba(164,16,52,.12),
        0 0 0 1px rgba(164,16,52,.18),
        inset 0 1px 0 rgba(255,255,255,.80) !important;
}

/* ── CTA buttons — hero context (dark crimson bg) ── */
.ip-header__ctas {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', inherit;
    font-size: 12.5px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 9px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -0.01em;
    transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
/* Primary on dark = white fills — maximum contrast */
.ip-btn--primary {
    background: #FFFFFF;
    color: #A41034;
    box-shadow: 0 4px 20px rgba(255,255,255,.20), 0 1px 0 rgba(255,255,255,.50);
}
.ip-btn--primary:hover {
    background: #FFF0F3;
    color: #7D0E26;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(255,255,255,.28);
}
/* Ghost on dark = frosted crimson glass */
.ip-btn--ghost {
    background: rgba(164,16,52,.22);
    color: rgba(255,255,255,.90);
    border: 1.5px solid rgba(164,16,52,.55);
    backdrop-filter: blur(10px);
}
.ip-btn--ghost:hover {
    background: rgba(164,16,52,.38);
    border-color: rgba(164,16,52,.75);
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(164,16,52,.35);
}
/* Following = the settled state: white frosted rather than the crimson
   frosting of Follow, so the two are told apart by hue, not just label. */
.ip-btn--following {
    background: rgba(255,255,255,.16);
    color: #FFFFFF;
    border: 1.5px solid rgba(255,255,255,.58);
    backdrop-filter: blur(10px);
}
.ip-btn--following:hover {
    background: rgba(255,255,255,.26);
    border-color: #FFFFFF;
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.ip-btn:disabled { opacity: .65; cursor: default; transform: none; }

/* ── Stats 2×2 grid — cream card ── */
.ip-header__stats {
    flex-shrink: 0;
    width: 292px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    background: #F5F1EA;
    border: 1px solid rgba(164,16,52,.18);
    border-radius: 18px;
    overflow: hidden;
    align-self: center;
    box-shadow:
        0 16px 48px rgba(164,16,52,.20),
        0 4px 16px rgba(164,16,52,.10),
        inset 0 1px 0 rgba(255,255,255,.90);
    position: relative;
}
/* Subtle maroon tint at top-right */
.ip-header__stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 120% 80% at 110% -10%, rgba(164,16,52,.10) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
/* Decorative orb */
.ip-header__stats::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(164,16,52,.06);
    top: -50px;
    right: -40px;
    pointer-events: none;
    z-index: 0;
}
.ip-stat {
    background: transparent;
    padding: 18px 18px 15px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    z-index: 1;
    transition: background .18s;
}
.ip-stat:hover { background: rgba(164,16,52,.06); }
/* Inner grid dividers */
.ip-stat:nth-child(1),
.ip-stat:nth-child(2) { border-bottom: 1px solid rgba(164,16,52,.12); }
.ip-stat:nth-child(odd) { border-right: 1px solid rgba(164,16,52,.12); }

.ip-stat__icon {
    color: rgba(164,16,52,.45);
    margin-bottom: 3px;
}
.ip-stat--star .ip-stat__icon { color: #A41034; filter: none; }
.ip-stat__num {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #A41034;
    letter-spacing: -0.04em;
    line-height: 1;
    text-shadow: none;
}
.ip-stat--star .ip-stat__num { color: #A41034; }
.ip-stat__label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(164,16,52,.55);
    font-weight: 700;
    margin-top: 1px;
}

/* ================================================================
   2.  LOWER SECTION
================================================================ */
.ip-lower {
    padding: 28px 0 8px;
    background: #F5F1EA;
}

.ip-lower__grid {
    display: grid;
    grid-template-columns: 1fr 292px;
    gap: 24px;
    align-items: start;
}

/* ── Main column ── */
.ip-main-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* ── Section cards ── */
.ip-card {
    border: 1px solid #EDDADD;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(164,16,52,.05);
    background: #FFFFFF;
}

.ip-card__head {
    padding: 14px 20px 12px;
    border-bottom: 1px solid #F6EAEC;
}
.ip-card__head--courses {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ip-card__title {
    font-family: 'Fraunces', Georgia, serif !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    letter-spacing: -0.015em !important;
    margin: 0 !important;
    text-transform: none !important;
    line-height: 1.25 !important;
}
.ip-card__sub {
    font-size: 11.5px;
    color: #9CA3AF;
    margin: 2px 0 0;
    font-weight: 400;
}

.ip-card__body { padding: 16px 20px; }

.ip-card--bio { border-left: 3px solid #A41034; }
.ip-card--bio .ip-card__head { border-left: none; }

/* ── Top-rated label ── */
.ip-courses-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: #A41034;
    background: rgba(164,16,52,.08);
    border: 1px solid rgba(164,16,52,.18);
    padding: 4px 11px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.ip-courses-label svg { color: #F59E0B; }

/* ── Featured 3 grid ── */
.ip-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.ip-scroll-btns { display: flex; gap: 5px; }
.ip-scroll-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #EDDADD;
    background: #FFFFFF;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    flex-shrink: 0;
}
.ip-scroll-btn:hover {
    border-color: #A41034;
    background: #A41034;
    color: #FFFFFF;
}

/* ── Horizontal scroller ── */
.ip-courses-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(164,16,52,.25) transparent;
    padding-bottom: 6px;
}
.ip-courses-scroll::-webkit-scrollbar { height: 4px; }
.ip-courses-scroll::-webkit-scrollbar-track { background: transparent; }
.ip-courses-scroll::-webkit-scrollbar-thumb { background: rgba(164,16,52,.25); border-radius: 4px; }

/* ── Course card — shared ── */
.ip-course-card {
    background: #FFFFFF;
    border: 1px solid #EDDADD;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.ip-course-card:hover {
    box-shadow: 0 6px 22px rgba(164,16,52,.12);
    transform: translateY(-3px);
    border-color: rgba(164,16,52,.22);
}

/* Featured card: subtle top accent */
.ip-course-card--featured {
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.ip-course-card--featured::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #A41034, #C0163D);
    width: 100%;
}

/* Scroller card: fixed width — 3 visible at once in the main column */
.ip-course-card--scroll {
    flex: 0 0 268px;
    min-width: 268px;
}

/* Thumbnail */
.ip-c-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #F3F4F6;
}
.ip-c-thumb a { display: block; width: 100%; height: 100%; }
.ip-c-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.ip-course-card:hover .ip-c-thumb img { transform: scale(1.04); }

/* Gradient fallback when no real thumbnail is uploaded */
.ip-c-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    position: relative;
}
.ip-c-thumb-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.18);
}
.ip-c-thumb-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.90);
    line-height: 1.4;
    position: relative;
    z-index: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: normal;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.ip-c-price {
    position: absolute;
    bottom: 7px;
    right: 9px;
    z-index: 2;
    font-size: 13px;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
    line-height: 1;
}
.ip-c-pill {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 2;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 20px;
    line-height: 1;
}
.ip-c-pill--free { background: rgba(0,0,0,.68); color: #FFFFFF; }
.ip-c-pill--sale { background: #A41034; color: #FFFFFF; }
.ip-c-pill--top { background: linear-gradient(90deg,#A41034,#C0163D); color: #FFFFFF; text-transform: none; font-size: 9.5px; letter-spacing: .03em; }

/* Body */
.ip-c-body {
    padding: 12px 14px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ip-c-cat {
    font-size: 9.5px;
    font-weight: 700;
    color: #A41034;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 5px;
}
.ip-course-card .ip-c-title,
h3.ip-c-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 12px !important;
    font-weight: 600;
    color: #111827;
    line-height: 1.45;
    margin: 0 0 8px;
    flex: 1;
    /* 2-line clamp at word boundaries — no mid-word cuts */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: break-word;
}
.ip-course-card .ip-c-title a,
h3.ip-c-title a {
    font-size: 12px !important;
    color: inherit;
    text-decoration: none;
    display: block;
}
h3.ip-c-title a:hover { color: #A41034; }

.ip-c-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 7px;
    border-top: 1px solid #F6EAEC;
}
.ip-c-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 700;
    color: #111827;
}
.ip-c-rating svg { color: #F59E0B; }
.ip-c-rating__count { font-weight: 400; color: #6B7280; font-size: 11px; }
.ip-c-enrolled { font-size: 11px; color: #6B7280; }

/* Footer / CTA */
.ip-c-foot { padding: 8px 12px 10px; border-top: 1px solid #F0DDE0; }
.ip-c-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', inherit;
    line-height: 1;
    letter-spacing: -0.01em;
    transition: background .16s, color .16s;
}
.ip-c-btn--add {
    background: #A41034;
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(164,16,52,.20);
}
.ip-c-btn--add:hover { background: #D91247; color: #FFFFFF; text-decoration: none; }
.ip-c-btn--enrolled {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}
.ip-c-btn--enrolled:hover { background: #DCFCE7; text-decoration: none; color: #166534; }
.ip-c-btn--full {
    background: #F9FAFB;
    color: #9CA3AF;
    border: 1px solid #E5E7EB;
    cursor: not-allowed;
}

/* ── Bio ── */
.ip-bio { font-size: 14px; line-height: 1.75; color: #374151; }
.ip-bio p { margin-bottom: .7em; }
.ip-bio p:last-child { margin-bottom: 0; }
.ip-page .ip-bio a { color: #A41034 !important; text-decoration: underline; text-underline-offset: 2px; }
.ip-page .ip-bio a:hover { color: #D91247 !important; }

/* ── Timeline — 2-column card grid ── */
.ip-tl { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ip-tl::before { display: none; }

.ip-tl-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #FFFBFC;
    border: 1px solid #F0DDE0;
    border-radius: 10px;
    transition: border-color .16s, box-shadow .16s;
}
.ip-tl-item:hover {
    border-color: rgba(164,16,52,.22);
    box-shadow: 0 3px 12px rgba(164,16,52,.08);
}

.ip-tl-dot {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(164,16,52,.08);
    border: 1px solid rgba(164,16,52,.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A41034;
    transition: background .15s, border-color .15s, color .15s;
}
.ip-tl-dot svg { width: 13px; height: 13px; }
.ip-tl-item:hover .ip-tl-dot {
    background: #A41034;
    border-color: #A41034;
    color: #FFFFFF;
}

.ip-tl-body { flex: 1; min-width: 0; }
.ip-tl-date {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: #A41034;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
    line-height: 1.6;
}
.ip-tl-org { font-size: 13.5px; font-weight: 700; color: #111827; margin-bottom: 1px; line-height: 1.3; }
.ip-tl-role { font-size: 12px; color: #6B7280; }

/* ── Achievement badges ── */
.ip-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ip-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 10px 9px;
    background: #FFFBFC;
    border: 1px solid #F0DDE0;
    border-radius: 9px;
    min-width: 78px;
    text-align: center;
    transition: border-color .16s, box-shadow .16s;
    cursor: default;
}
.ip-badge:hover {
    border-color: rgba(164,16,52,.28);
    box-shadow: 0 3px 10px rgba(164,16,52,.09);
}
.ip-badge img { width: 38px; height: 38px; object-fit: contain; }
.ip-badge span { font-size: 10px; color: #6B7280; font-weight: 600; line-height: 1.3; max-width: 68px; }

/* ================================================================
   3.  SIDEBAR
================================================================ */
.ip-sidebar-col { min-width: 0; }
.ip-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Mini profile card ── */
.ip-mini-card {
    background: #FFFFFF;
    border: 1px solid #EDDADD;
    border-radius: 16px;
    padding: 22px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(164,16,52,.10), 0 1px 3px rgba(164,16,52,.05);
}

.ip-mini-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #EDDADD;
    box-shadow: 0 0 0 3px rgba(164,16,52,.14);
    background: #FFF0F3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.ip-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.ip-mini-avatar span {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #A41034;
    line-height: 1;
    user-select: none;
}

.ip-mini-name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
    line-height: 1.2;
}
.ip-mini-role {
    font-size: 11.5px;
    color: #6B7280;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Mini stats grid */
.ip-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #EDDADD;
    border: 1px solid #EDDADD;
    border-radius: 9px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 12px;
}
.ip-mini-stat {
    background: #FFFBFC;
    padding: 9px 7px;
    text-align: center;
}
.ip-mini-stat strong {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 2px;
}
.ip-mini-stat span {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #6B7280;
    font-weight: 600;
}

/* Mini socials */
.ip-mini-socials {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* View courses CTA */
.ip-mini-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 11px 14px;
    background: linear-gradient(135deg, #A41034 0%, #C0163D 100%);
    color: #FFFFFF;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Inter', inherit;
    letter-spacing: 0.01em;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(164,16,52,.28);
    transition: transform .18s, box-shadow .18s, background .18s;
}
.ip-mini-cta:hover {
    background: linear-gradient(135deg, #8B0D29 0%, #A41034 100%);
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(164,16,52,.34);
}

/* ── Contact card — premium redesign ── */
.ip-contact-card {
    background: #FFFFFF;
    border: 1px solid #EDDADD;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(164,16,52,.12), 0 1px 3px rgba(164,16,52,.06);
}

/* Dark wine header banner */
.ip-contact-card__head {
    padding: 20px 20px 18px;
    background: linear-gradient(135deg, #7D0E26 0%, #A41034 55%, #C0163D 100%);
    position: relative;
    overflow: hidden;
}
.ip-contact-card__head::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}
.ip-contact-card__head::after {
    content: '';
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
    pointer-events: none;
}

.ip-contact-card__title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 9px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}
.ip-contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}
.ip-contact-card__sub {
    font-size: 11.5px;
    color: rgba(255,255,255,.72);
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 400;
}
.ip-contact-card__body { padding: 18px 18px 18px; }

/* Success alert */
.ip-alert {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 12px;
}
.ip-alert--success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

/* Field rows — inline icon style */
.ip-field-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 10px;
    border: 1.5px solid #EDDADD;
    border-radius: 10px;
    overflow: hidden;
    background: #FFFBFC;
    transition: border-color .18s, box-shadow .18s;
}
.ip-field-row:focus-within {
    border-color: #A41034;
    box-shadow: 0 0 0 3px rgba(164,16,52,.10);
    background: #FFFFFF;
}
.ip-field-icon {
    flex-shrink: 0;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A41034;
    background: rgba(164,16,52,.06);
    border-right: 1.5px solid #EDDADD;
    transition: background .18s;
}
.ip-field-row:focus-within .ip-field-icon {
    background: rgba(164,16,52,.10);
    border-right-color: rgba(164,16,52,.28);
}
.ip-field { flex: 1; margin-bottom: 0; }

/* Standalone fields (subject, message) */
.ip-field:not(.ip-field-row .ip-field) {
    margin-bottom: 10px;
}

.ip-field-err {
    display: none;
    font-size: 11px;
    color: #DC2626;
    margin-top: 3px;
    padding-left: 4px;
}

/* Submit button */
.ip-contact-cta { margin-top: 14px; }
.ip-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 18px;
    background: linear-gradient(135deg, #A41034 0%, #C0163D 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', inherit;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(164,16,52,.32), 0 1px 3px rgba(164,16,52,.18);
    transition: transform .18s, box-shadow .18s, background .18s;
    letter-spacing: 0.01em;
    line-height: 1;
}
.ip-submit:hover {
    background: linear-gradient(135deg, #8B0D29 0%, #A41034 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(164,16,52,.38), 0 2px 6px rgba(164,16,52,.20);
    color: #FFFFFF;
}
.ip-submit:active { transform: translateY(0); }

/* Submit arrow icon nudge on hover */
.ip-submit:hover svg { transform: translateX(3px); }
.ip-submit svg { transition: transform .18s; }

/* ================================================================
   4.  FORM INPUTS
================================================================ */
.id-input {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 0;
    font-size: 13px;
    color: #1C1210;
    background: transparent;
    outline: none;
    font-family: 'Inter', inherit;
    line-height: 1.5;
    box-sizing: border-box;
    transition: background .16s;
}

/* Standalone inputs (not inside a field-row) get their own border */
.ip-field:not(.ip-field-row .ip-field) .id-input {
    border: 1.5px solid #EDDADD;
    border-radius: 10px;
    background: #FFFBFC;
    padding: 10px 12px;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.ip-field:not(.ip-field-row .ip-field) .id-input:focus {
    border-color: #A41034;
    box-shadow: 0 0 0 3px rgba(164,16,52,.10);
    background: #FFFFFF;
    outline: none;
}

.id-input:focus { outline: none; }
.id-input::placeholder { color: #C4A8AE; font-size: 12.5px; }
.id-textarea { resize: vertical; min-height: 88px; }
.id-input--err {
    border-color: #DC2626 !important;
    background: #FEF2F2 !important;
}
.id-input--err:focus {
    border-color: #DC2626 !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,.10) !important;
}
.id-input--prefilled {
    background: transparent !important;
    border-color: rgba(164,16,52,.18) !important;
    color: #374151 !important;
    cursor: default;
}
.id-input--prefilled:focus {
    border-color: rgba(164,16,52,.28) !important;
    box-shadow: none !important;
}

/* ================================================================
   5.  BACK TO TOP
================================================================ */
#id-totop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 40px;
    height: 40px;
    background: #A41034;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .22s, transform .22s, background .16s, box-shadow .16s;
    z-index: 9000;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(164,16,52,.35);
}
#id-totop svg { width: 16px; height: 16px; }
#id-totop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
#id-totop:hover { background: #7D0E26 !important; box-shadow: 0 6px 20px rgba(164,16,52,.50) !important; }

/* ================================================================
   6.  RESPONSIVE
================================================================ */
@media (max-width: 1199px) {
    .ip-lower__grid { grid-template-columns: 1fr 264px; }
    .ip-header__stats { width: 264px; }
}

@media (max-width: 991px) {
    .ip-header__inner { flex-direction: column; gap: 20px; }
    .ip-header__stats {
        width: 100%;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
    }
    .ip-lower__grid { grid-template-columns: 1fr; }
    .ip-sidebar { position: static; }
}

@media (max-width: 767px) {
    .ip-tl { grid-template-columns: 1fr; }
    .ip-courses-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .ip-courses-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .ip-header { padding: 32px 0 28px; }
    .ip-header__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .ip-header__identity { flex-direction: row; gap: 16px; align-items: center; }
    .ip-avatar { width: 80px; height: 80px; }
    .ip-name { font-size: 26px !important; }
    .ip-snippet { -webkit-line-clamp: 3; }
    .ip-header__foot { flex-direction: column; align-items: flex-start; gap: 10px; }
    .ip-header__ctas { padding-left: 0; }
    .ip-header__ctas::before { display: none; }
    .ip-header__stats { width: 100% !important; }
    .ip-header__stats { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr 1fr; }
    .ip-courses-grid { grid-template-columns: 1fr; }
    .ip-card__body { padding: 14px 14px; }
    .ip-card__head { padding: 12px 14px 10px; }
    .ip-lower { padding: 20px 0 40px; }
    #id-totop { bottom: 16px; right: 16px; }
}

/* ================================================================
   Education Sidebar Card
================================================================ */
.ip-edu-card {
    background: #FFFFFF;
    border: 1px solid #EDDADD;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(164,16,52,.09), 0 1px 3px rgba(164,16,52,.04);
}
.ip-edu-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 12px;
    background: linear-gradient(135deg, #FFF8F9 0%, #FFF0F3 100%);
    border-bottom: 1px solid #EDDADD;
}
.ip-edu-card__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(164,16,52,.08);
    border: 1px solid rgba(164,16,52,.16);
    color: #A41034;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ip-edu-card__title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1px;
    line-height: 1.3;
}
.ip-edu-card__sub {
    font-size: 10.5px;
    color: #9CA3AF;
    margin: 0;
    line-height: 1.3;
}
.ip-edu-list {
    list-style: none;
    padding: 10px 14px 12px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ip-edu-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #F6EAEC;
    position: relative;
}
.ip-edu-item:last-child { border-bottom: none; }
.ip-edu-dot {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 7px;
    background: rgba(164,16,52,.07);
    border: 1px solid rgba(164,16,52,.14);
    color: #A41034;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.ip-edu-body { flex: 1; min-width: 0; }
.ip-edu-org {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ip-edu-degree {
    font-size: 11px;
    color: #6B7280;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ip-edu-date {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(90deg, #A41034, #C0163D);
    border-radius: 20px;
    padding: 2px 8px;
    letter-spacing: .02em;
}

/* ================================================================
   Instructor Info Sidebar Card
================================================================ */
.ip-info-card {
    background: #FFFFFF;
    border: 1px solid #EDDADD;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(164,16,52,.09), 0 1px 3px rgba(164,16,52,.04);
}
.ip-info-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 12px;
    background: linear-gradient(135deg, #FFF8F9 0%, #FFF0F3 100%);
    border-bottom: 1px solid #EDDADD;
}
.ip-info-card__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(164,16,52,.08);
    border: 1px solid rgba(164,16,52,.16);
    color: #A41034;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ip-info-card__title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1px;
    line-height: 1.3;
}
.ip-info-card__sub {
    font-size: 10.5px;
    color: #9CA3AF;
    margin: 0;
    line-height: 1.3;
}
.ip-info-list {
    list-style: none;
    padding: 6px 14px 10px;
    margin: 0;
}
.ip-info-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 0;
    border-bottom: 1px solid #F6EAEC;
}
.ip-info-row:last-child { border-bottom: none; }
.ip-info-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(164,16,52,.07);
    border: 1px solid rgba(164,16,52,.12);
    color: #A41034;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.ip-info-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.ip-info-label {
    font-size: 9.5px;
    font-weight: 700;
    color: #A41034;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.2;
}
.ip-info-value {
    font-size: 11.5px;
    color: #374151;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

/* ================================================================
   SweetAlert2  ·  Add to Cart guest prompt
================================================================ */
.ig-swal-popup.swal2-popup {
    border-radius: 18px !important;
    padding: 32px 28px 24px !important;
    font-family: 'Inter', sans-serif !important;
    background: #FFF8F9 !important;
    border: 1px solid #EDDADD !important;
    box-shadow: 0 20px 60px rgba(164,16,52,.16), 0 4px 16px rgba(164,16,52,.08) !important;
    max-width: 380px !important;
}
.ig-swal-popup .swal2-icon.swal2-warning {
    border-color: #A41034 !important;
    color: #A41034 !important;
    width: 56px !important;
    height: 56px !important;
    margin-bottom: 14px !important;
}
.ig-swal-popup .swal2-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 6px !important;
}
.ig-swal-popup .swal2-actions {
    gap: 10px !important;
    margin-top: 20px !important;
}
.ig-swal-confirm.swal2-confirm {
    border-radius: 9px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    box-shadow: 0 4px 14px rgba(164,16,52,.30) !important;
    letter-spacing: .02em !important;
}
.ig-swal-confirm.swal2-confirm:focus {
    box-shadow: 0 4px 14px rgba(164,16,52,.30), 0 0 0 3px rgba(164,16,52,.18) !important;
}
.ig-swal-cancel.swal2-cancel {
    border-radius: 9px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    padding: 10px 22px !important;
    background: #F0EBE4 !important;
    color: #6B7280 !important;
}
.ig-swal-cancel.swal2-cancel:hover {
    background: #E5DDD4 !important;
}
