/* ── Reset & Base ── */
.tp-wrap *, .tp-wrap *::before, .tp-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }
.tp-wrap {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #f0f4fb;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* ══════════════════════════════════════
   KEYFRAME ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes photoReveal {
    from { opacity: 0; transform: translateY(20px) scale(.94); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes tagPop {
    from { opacity: 0; transform: scale(.8) translateY(6px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes orbFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-18px) rotate(6deg); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(14px) rotate(-5deg); }
}
@keyframes borderGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,62,38,.15), 0 8px 40px rgba(36,64,146,.22); }
    50%       { box-shadow: 0 0 0 6px rgba(239,62,38,.08), 0 12px 48px rgba(36,64,146,.30); }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.tp-hero {
    background: linear-gradient(135deg, #0f1829 0%, #1a2f6e 55%, #2748b5 100%);
    padding: 64px 0 0;
    position: relative;
    overflow: hidden;
}
.tp-hero__orb1 {
    position: absolute; top: -100px; right: -100px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: orbFloat 9s ease-in-out infinite;
}
.tp-hero__orb2 {
    position: absolute; bottom: -40px; left: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(239,62,38,.10) 0%, transparent 70%);
    border-radius: 50%;
    animation: orbFloat2 11s ease-in-out infinite;
}
.tp-hero__orb3 {
    position: absolute; top: 30%; left: 45%;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,.03) 0%, transparent 70%);
    border-radius: 50%;
    animation: orbFloat 14s ease-in-out infinite 2s;
}
.tp-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.tp-hero__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: flex-end;
    gap: 44px;
    position: relative;
    z-index: 1;
}

/* Photo */
.tp-hero__photo-wrap {
    flex-shrink: 0;
    animation: photoReveal .8s cubic-bezier(.22,1,.36,1) .1s both;
}
.tp-hero__photo,
.tp-hero__photo-placeholder {
    width: 320px;
    height: 400px;
    border-radius: 20px;
    border: 4px solid rgba(255,255,255,.22);
    object-fit: cover;
    display: block;
    animation: borderGlow 4s ease-in-out infinite 1s;
    box-shadow: 0 8px 40px rgba(36,64,146,.35);
}
.tp-hero__photo-placeholder {
    background: linear-gradient(135deg, #2748b5, #0f1829);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,.35);
}

/* Info */
.tp-hero__info { padding-bottom: 36px; flex: 1; }
.tp-hero__name {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 8px;
    animation: fadeSlideUp .7s cubic-bezier(.22,1,.36,1) .25s both;
}
.tp-hero__designation {
    font-size: 1rem;
    color: rgba(255,255,255,.72);
    font-weight: 500;
    margin-bottom: 18px;
    animation: fadeSlideUp .7s cubic-bezier(.22,1,.36,1) .35s both;
}
.tp-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    animation: fadeSlideUp .7s cubic-bezier(.22,1,.36,1) .45s both;
}
.tp-hero__tag {
    background: rgba(255,255,255,.11);
    color: rgba(255,255,255,.92);
    font-size: .73rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.2);
    letter-spacing: .03em;
    animation: tagPop .5s cubic-bezier(.34,1.56,.64,1) both;
    transition: background .2s, transform .2s;
}
.tp-hero__tag:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.tp-hero__tag:nth-child(1) { animation-delay: .5s; }
.tp-hero__tag:nth-child(2) { animation-delay: .6s; }
.tp-hero__tag:nth-child(3) { animation-delay: .7s; }
.tp-hero__tag:nth-child(4) { animation-delay: .8s; }

.tp-hero__wave {
    height: 48px;
    background: #f0f4fb;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    margin-top: 36px;
    position: relative;
    z-index: 2;
}

/* ══════════════════════════════════════
   STATS BAR
══════════════════════════════════════ */
.tp-stats {
    max-width: 1140px;
    margin: -16px auto 0;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
    z-index: 3;
}
.tp-stat {
    background: #fff;
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 4px 28px rgba(36,64,146,.10);
    border: 1.5px solid rgba(36,64,146,.06);
    animation: countUp .6s cubic-bezier(.22,1,.36,1) both;
    transition: transform .25s, box-shadow .25s;
}
.tp-stat:hover { transform: translateY(-4px); box-shadow: 0 10px 36px rgba(36,64,146,.15); }
.tp-stat:nth-child(1) { animation-delay: .5s; }
.tp-stat:nth-child(2) { animation-delay: .65s; }
.tp-stat:nth-child(3) { animation-delay: .8s; }
.tp-stat__num { font-size: 2rem; font-weight: 800; color: #1a2f6e; line-height: 1; }
.tp-stat__label {
    font-size: .68rem; color: #94a3b8;
    font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; margin-top: 5px;
}

/* ══════════════════════════════════════
   BODY LAYOUT
══════════════════════════════════════ */
.tp-body {
    max-width: 1140px;
    margin: 32px auto 0;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

/* ══════════════════════════════════════
   CARDS
══════════════════════════════════════ */
.tp-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 28px rgba(36,64,146,.08);
    border: 1.5px solid rgba(36,64,146,.05);
    margin-bottom: 24px;
    transition: box-shadow .3s, transform .3s;
}
.tp-card:hover { box-shadow: 0 8px 40px rgba(36,64,146,.13); }
.tp-card__header {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 22px; padding-bottom: 18px;
    border-bottom: 2px solid #f1f5f9;
}
.tp-card__icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #eef2ff, #dbeafe);
    border-radius: 12px;
    display: flex; align-items: center;
    justify-content: center;
    font-size: 1.35rem; flex-shrink: 0;
}
.tp-card__title {
    font-size: 1.05rem; font-weight: 800;
    color: #1e293b; position: relative; padding-left: 14px;
}
.tp-card__title::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 80%;
    background: linear-gradient(180deg, #ef3e26, #f97316);
    border-radius: 2px;
}

/* ── Bio ── */
.tp-bio { font-size: .95rem; color: #475569; line-height: 1.9; }
.tp-bio p { margin-bottom: 12px; }
.tp-bio p:last-child { margin-bottom: 0; }

/* ── Courses grid (big card design) ── */
.tp-courses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.tp-course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border-right: 3px solid #EF3E26;
    border-bottom: 3px solid #EF3E26;
    box-shadow: 0 10px 20px rgba(0,0,0,.12);
    transition: transform .28s ease, box-shadow .28s ease;
    text-decoration: none;
    display: block;
}
.tp-course-card::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: 12px;
    pointer-events: none;
    z-index: 3;
    box-shadow:
        inset 0 18px 30px -22px #244092,
        inset 0 -18px 30px -28px #244092,
        inset 12px 0 24px -28px #244092,
        inset -12px 0 24px -28px #244092;
}
.tp-course-card:hover { box-shadow: 0 18px 36px rgba(0,0,0,.18); transform: translateY(-6px); }
.tp-course-card:hover .tp-course-card__content { transform: translateY(-6px); transition: transform .22s ease; }
.tp-course-card:hover .tp-course-card__title,
.tp-course-card:hover .tp-course-card__learn { color: #EF3E26 !important; transition: color .22s ease; }

.tp-course-card__link { position: relative; z-index: 2; display: block; }
.tp-course-card__image {
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 9px 9px 0 0;
}
.tp-course-card__image-placeholder {
    height: 220px;
    background: linear-gradient(135deg, #eef2ff, #c7d2fe);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    border-radius: 9px 9px 0 0;
}
.tp-course-card__content {
    padding: 16px;
    background: #fff;
    display: flex; flex-direction: column;
}
.tp-course-card__meta-row {
    display: flex; align-items: center;
    gap: 1.4rem; margin-bottom: 10px;
    font-family: system-ui;
}
.tp-course-card__meta-item {
    display: flex; align-items: center; gap: 8px;
    color: #244092; font-weight: 700; font-size: 13px;
}
.tp-course-card__meta-icon {
    width: 36px; height: 35px; flex-shrink: 0;
}
.tp-course-card__meta-label { font-size: 13px; font-weight: 700; color: #244092; }
.tp-course-card__title {
    font-size: 1.1rem; font-weight: 700;
    color: #244092; margin: 4px 0 6px;
    line-height: 1.3;
}
.tp-course-card__excerpt {
    color: #000; font-weight: 400;
    font-size: .88rem; line-height: 1.4;
    margin: 0 0 12px;
}
.tp-course-card__learn {
    display: inline-flex; align-items: center; gap: 6px;
    color: #EF3E26; font-weight: 700; font-size: 1rem;
    margin-top: auto;
}
@media (max-width: 600px) {
    .tp-courses { grid-template-columns: 1fr; }
}

/* ── Sidebar Info ── */
.tp-info-list { display: flex; flex-direction: column; gap: 16px; }
.tp-info-row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px; border-radius: 10px;
    transition: background .2s;
}
.tp-info-row:hover { background: #f8fafc; }
.tp-info-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 10px;
    display: flex; align-items: center;
    justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.tp-info-label {
    font-size: .68rem; color: #94a3b8;
    font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.tp-info-value { font-size: .9rem; color: #334155; font-weight: 600; margin-top: 2px; }

/* ── Empty ── */
.tp-empty { text-align: center; padding: 40px 24px; color: #94a3b8; font-size: .9rem; }
.tp-empty-icon { font-size: 2.8rem; margin-bottom: 12px; }

/* ══════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════ */
.tp-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.tp-reveal.is-visible { opacity: 1; transform: translateY(0); }
.tp-reveal-delay-1 { transition-delay: .1s; }
.tp-reveal-delay-2 { transition-delay: .2s; }

/* ══════════════════════════════════════
   RESPONSIVE — Tablet ≤900px
══════════════════════════════════════ */
@media (max-width: 900px) {
    .tp-body { grid-template-columns: 1fr; }
    .tp-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .tp-sidebar .tp-card { margin-bottom: 0; }
}

/* ══════════════════════════════════════
   RESPONSIVE — Mobile ≤600px
══════════════════════════════════════ */
@media (max-width: 600px) {
    .tp-hero { padding: 40px 0 0; }
    .tp-hero__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 0 20px;
    }
    .tp-hero__photo,
    .tp-hero__photo-placeholder { width: 160px; height: 160px; border-radius: 16px; }
    .tp-hero__info { padding-bottom: 16px; }
    .tp-hero__tags { justify-content: center; }

    .tp-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 20px;
        margin-top: -10px;
    }
    .tp-stat:last-child { grid-column: 1 / -1; }

    .tp-body { padding: 0 16px; margin-top: 24px; }
    .tp-card { padding: 20px 16px; }
    .tp-sidebar { grid-template-columns: 1fr; }

    .tp-course-card__thumb,
    .tp-course-card__thumb-placeholder { width: 60px; height: 46px; }

    .tp-hero__wave { height: 36px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — Tiny ≤380px
══════════════════════════════════════ */
@media (max-width: 380px) {
    .tp-stats { grid-template-columns: 1fr; }
    .tp-stat:last-child { grid-column: auto; }
    .tp-hero__photo,
    .tp-hero__photo-placeholder { width: 130px; height: 130px; }
    .tp-hero__inner { padding: 0 16px; }
    .tp-body { padding: 0 12px; }
}
