/* =========================================================
   Learning Content - For Students (PhysicsModels) - page styles  (physicsmodels.html)
   Shared styles live in css/style.css.
   ========================================================= */

:root { --ink: #0b1220; --mist: #eef4fa; }
.page-hero {
  position: sticky; top: 0; z-index: 0; display: flex; align-items: flex-end; min-height: 46svh; overflow: hidden; background: #0a1220;
}
@media (min-width: 768px) { .page-hero { min-height: 60svh; } }
.page-hero > .ph-bg { position: absolute; inset: 0; background: url('../../image/phy-bn.png') center / cover no-repeat; transform-origin: center; will-change: transform; }
@media (max-width: 1023px) { .page-hero > .ph-bg { background-image: url('../../image/phy-phn.png'); } }
.page-hero > .ph-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(2,20,48,.72) 0%, rgba(2,20,48,.4) 45%, rgba(2,20,48,.1) 100%), linear-gradient(to top, rgba(2,20,48,.36) 0%, transparent 40%); }
.page-hero > .ph-dim { position: absolute; inset: 0; background: var(--brand-navy); opacity: 0; pointer-events: none; }
.page-hero > .ph-inner { position: relative; width: 100%; will-change: transform, opacity; }
main > section:not(.page-hero) { position: relative; z-index: 1; }
.pm-intro-title .text-brand-blue { color: var(--ink); transition: color .3s ease; }
body.pm-scrolled .pm-intro-title .text-brand-blue { color: var(--brand-blue); }
.crumb a:hover { color: var(--brand-gold); }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3rem; padding: 0 1.5rem; font-size: .9rem; font-weight: 600; border-radius: 999px; transition: background-color .25s, color .25s, transform .25s, border-color .25s; }
.pill-btn svg { width: 1rem; height: 1rem; transition: transform .25s; }
.pill-btn:hover svg { transform: translateX(3px); }
.pill-dark { color: #fff; background: var(--ink); }
.pill-dark:hover { background: var(--brand-gold); color: var(--ink); transform: translateY(-2px); }
.pill-line { color: var(--ink); border: 1px solid #b9c9d8; background: #fff; }
.pill-line:hover { border-color: var(--brand-gold); background: rgba(245,184,46,.14); transform: translateY(-2px); }

.pm-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.pm-stats .stat { padding: .9rem 0 .9rem 1rem; }
.pm-stats .stat:first-child { padding-left: 0; }
.pm-stats .stat + .stat { border-left: 1px solid #e2e8f0; }
.stat { min-width: 0; }
@media (min-width: 640px) { .stat span { letter-spacing: .12em; } }
.stat b { display: block; font-family: 'Sora', sans-serif; font-size: clamp(1.25rem, 4.6vw, 1.85rem); font-weight: 600; line-height: 1; color: var(--ink); }
.stat span { display: block; margin-top: .45rem; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }

/* video player */
.player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: 16px; box-shadow: 0 30px 50px -30px rgba(2,20,48,.6); }
.player iframe, .player-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-poster { display: block; cursor: pointer; background: #000; }
.player-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .3s, transform .5s; }
.player-poster:hover img { opacity: 1; transform: scale(1.03); }
.player-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 4.2rem; height: 4.2rem; margin: -2.1rem 0 0 -2.1rem; color: #0b72c9; background: #fff; border-radius: 50%; box-shadow: 0 0 0 10px rgba(255,255,255,.25); transition: transform .3s, box-shadow .3s; }
.player-poster:hover .player-play { transform: scale(1.1); box-shadow: 0 0 0 14px rgba(255,255,255,.3); }
.player-play svg { width: 1.6rem; height: 1.6rem; margin-left: .2rem; }
.yt-link { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; font-size: .78rem; font-weight: 600; color: #0b1220; border: 1px solid #b9c9d8; border-radius: 999px; transition: border-color .25s, background-color .25s; }
.yt-link:hover { border-color: #0b72c9; color: #0b72c9; }
.yt-link svg { width: .85rem; height: .85rem; }
.options { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 480px) { .options { grid-template-columns: repeat(3, 1fr); gap: .8rem; } }
.opt { display: flex; width: 100%; height: 100%; gap: .75rem; padding: 0; text-align: left; color: #0b1220; background: none; border: 0; transition: color .25s; }
@media (min-width: 480px) { .opt { flex-direction: column; gap: .55rem; } }
.opt:hover .opt-img img, .opt:focus-visible .opt-img img { transform: scale(1.06); }
.opt:hover .opt-t, .opt:focus-visible .opt-t { color: #0b72c9; }
.opt:focus-visible { outline: 2px solid #0b72c9; outline-offset: 3px; border-radius: 8px; }
.opt-img { position: relative; flex: none; width: 7rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #000; }
@media (min-width: 480px) { .opt-img { width: 100%; } }
.opt-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.opt-img i { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; margin: -.85rem 0 0 -.85rem; color: #0b72c9; background: #fff; border-radius: 50%; }
.opt-img i svg { width: .8rem; height: .8rem; margin-left: .1rem; }
.opt-t { font-size: .7rem; font-weight: 500; line-height: 1.3; color: #334155; transition: color .25s; }
/* featured video card */
.vid-wrap { position: relative; max-width: 26rem; margin: 0 auto; }
.vid-wrap::before { content: ""; position: absolute; inset: 1.2rem -1rem -1.2rem 1rem; border: 2px solid var(--brand-gold); border-radius: 14px; opacity: .55; }
.vid { position: relative; display: block; overflow: hidden; background: var(--ink); border-radius: 14px; box-shadow: 0 34px 50px -28px rgba(2,20,48,.7); transition: transform .35s; }
.vid:hover { transform: translateY(-4px); }
.vid img { display: block; width: 100%; height: auto; }
.vid-cap { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1rem; color: #fff; background: var(--ink); }
.vid-cap b { font-family: 'Sora', sans-serif; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.live { flex: none; padding: .2rem .6rem; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--brand-gold); border-radius: 999px; }

/* why cards (same style as the e-learning cards) */
.why { position: relative; isolation: isolate; overflow: hidden; padding: 1.6rem 1.5rem 1.6rem; background: #fff; border: 1px solid #d5e1ea; border-radius: 14px; transition: transform .35s, box-shadow .35s, border-color .35s; }
.why::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, #0f1c33, #0b1220); transform: translateY(101%); transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.why::after { content: ""; position: absolute; right: -2.2rem; top: -2.2rem; width: 7rem; height: 7rem; border-radius: 50%; border: 2px solid rgba(245,184,46,.35); box-shadow: 0 0 0 14px rgba(245,184,46,.07); opacity: 0; transition: opacity .4s; z-index: -1; }
.why:hover { transform: translateY(-6px); border-color: var(--brand-gold); box-shadow: 0 26px 40px -26px rgba(2,20,48,.65); }
.why:hover::before { transform: translateY(0); }
.why:hover::after { opacity: 1; }
.why-ico { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; color: var(--brand-gold); background: var(--ink); box-shadow: 0 0 0 5px rgba(245,184,46,.18); transition: background-color .35s, color .35s, box-shadow .35s; }
.why-ico svg { width: 1.45rem; height: 1.45rem; }
.why:hover .why-ico { color: var(--ink); background: var(--brand-gold); box-shadow: 0 0 0 5px rgba(245,184,46,.3); }
.why-n { position: absolute; top: 1.4rem; right: 1.5rem; font-family: 'Sora', sans-serif; font-size: 2.2rem; font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #cdd9e6; transition: -webkit-text-stroke-color .35s; }
.why:hover .why-n { -webkit-text-stroke-color: rgba(245,184,46,.7); }
.why h3 { transition: color .35s; }
.why p { transition: color .35s; }
.why:hover h3 { color: #fff; }
.why:hover p { color: rgba(255,255,255,.78); }

/* animation cards */
.anim { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #d5e1ea; border-radius: 10px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.anim:hover { transform: translateY(-5px); border-color: var(--brand-gold); box-shadow: 0 24px 36px -26px rgba(2,20,48,.55); }
.anim-img { position: relative; overflow: hidden; background: var(--ink); }
.anim-img img { display: block; width: 100%; height: auto; transition: transform .5s; }
.anim:hover .anim-img img { transform: scale(1.06); }
.tag { display: inline-block; padding: .22rem .6rem; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a5f00; background: #fff3d1; border-radius: 999px; }
.go { display: inline-flex; align-items: center; gap: .5rem; font-size: .86rem; font-weight: 600; color: var(--brand-blue); transition: gap .25s, color .25s; }
.anim:hover .go { gap: .8rem; color: var(--ink); }
.go svg { width: 1rem; height: 1rem; }
/* Why students like it: horizontal timeline, items alternate above / below the line (vertical on phones) */
.tl { position: relative; list-style: none; margin: 2.25rem 0 0; padding: 0; }
.tl::before { content: ""; position: absolute; left: .55rem; top: .4rem; bottom: .4rem; width: 2px; background: linear-gradient(180deg, #0b72c9, #5fc3f5); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 1.5rem 2.2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: .15rem; top: .3rem; width: .95rem; height: .95rem; border-radius: 50%; background: #eef4fa; border: 2px solid #0b72c9; box-shadow: 0 0 0 4px rgba(11,114,201,.12); transition: background-color .3s, transform .3s; }
.tl-item:hover .tl-dot { background: #0b72c9; transform: scale(1.15); }
.tl-n { font-family: 'Sora', sans-serif; font-size: .75rem; font-weight: 600; letter-spacing: .1em; color: #0b72c9; }
.tl-card h3 { margin-top: .25rem; font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 600; color: #0e1626; }
.tl-card p { margin-top: .3rem; font-size: 14px; line-height: 1.6; color: #475569; }
.tl-note { margin: 2rem auto 0; max-width: 46rem; text-align: center; font-size: 13.5px; line-height: 1.7; color: #64748b; }
@media (min-width: 768px) {
  .tl { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; margin-top: 2.5rem; }
  .tl::before { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, rgba(11,114,201,0), #0b72c9 8%, #5fc3f5 92%, rgba(95,195,245,0)); }
  .tl-item { padding: 0 .9rem; display: flex; flex-direction: column; }
  .tl-item:nth-child(odd) { grid-row: 1; justify-content: flex-end; padding-bottom: 2.2rem; }
  .tl-item:nth-child(even) { grid-row: 2; padding-top: 2.2rem; }
  .tl-item:nth-child(1) { grid-column: 1; } .tl-item:nth-child(2) { grid-column: 2; }
  .tl-item:nth-child(3) { grid-column: 3; } .tl-item:nth-child(4) { grid-column: 4; }
  .tl-dot { left: 50%; transform: translateX(-50%); }
  .tl-item:nth-child(odd) .tl-dot { top: auto; bottom: -.48rem; }
  .tl-item:nth-child(even) .tl-dot { top: -.48rem; }
  .tl-item:hover .tl-dot { transform: translateX(-50%) scale(1.15); }
  /* short stem from the line to each item */
  .tl-item::after { content: ""; position: absolute; left: 50%; width: 1px; height: 1.4rem; background: rgba(11,114,201,.35); }
  .tl-item:nth-child(odd)::after { bottom: .5rem; }
  .tl-item:nth-child(even)::after { top: .5rem; }
  .tl-card { text-align: center; }
  .tl-card h3 { font-size: 1.1rem; }
  .tl-card p { font-size: 15px; line-height: 1.65; }
  .tl-note { margin-top: 2.5rem; font-size: 14.5px; }
}
/* intro buttons: About page "Get in touch" style (.about-btn) */
.about-btn.pm-btn { margin-top: 0; justify-content: center; padding: .72rem 1rem; font-size: .82rem; gap: .45rem; }
.about-btn.pm-btn-line { background: transparent; color: #0b72c9; box-shadow: inset 0 0 0 1px #0b72c9; }
.about-btn.pm-btn-line:hover { background: transparent; color: #0b72c9; box-shadow: inset 0 0 0 1px #0b72c9; transform: none; }
/* ---------- phones: compact spacing + smaller text ---------- */
@media (max-width: 639.98px) {
  main section p.uppercase { font-size: .66rem; letter-spacing: .16em; }
  #intro-title + p, #intro-title ~ p.sr { font-size: 14px !important; line-height: 1.65 !important; }
  .pm-stats .stat { padding: .7rem 0 .7rem .7rem; }
  .stat span { font-size: .58rem; margin-top: .35rem; }
  .pm-cta { flex-direction: row; flex-wrap: wrap; }
  .about-btn.pm-btn { padding: .58rem .72rem; font-size: .72rem; gap: .35rem; }
  #player-title { font-size: .92rem; }
  .opt-img { width: 6rem; }
  .opt-t { font-size: .68rem; }
  .tl { margin-top: 1.5rem; }
  .tl-item { padding-bottom: 1.1rem; }
  .tl-card h3 { font-size: .95rem; }
  .tl-card p { font-size: 13.5px; }
  .tl-note { margin-top: 1.25rem; font-size: 12.5px; }
  .pm-anims { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .pm-anims .anim > span:last-child { padding: .7rem .75rem .8rem; }
  .pm-anims .tag { font-size: .58rem; padding: .15rem .45rem; }
  .pm-anims .anim .font-heading { font-size: .82rem; margin-top: .45rem; }
  .pm-anims .go { font-size: .7rem; margin-top: .5rem; }
  section[aria-labelledby="doubt-title"] .btn-go { min-height: 38px; padding: 0 42px 0 14px; font-size: 12.5px; }
  section[aria-labelledby="doubt-title"] .btn-go .ico, section[aria-labelledby="doubt-title"] .btn-go .gear { width: 26px; height: 26px; }
  section[aria-labelledby="doubt-title"] .btn-go .ico { right: 5px; margin-top: -13px; }
  section[aria-labelledby="doubt-title"] .btn-go .ar { width: 12px; height: 6px; }
}
@media (min-width: 480px) { .pm-cta { flex-wrap: nowrap; } }
/* Google Play download button */
.play-btn { display: inline-flex; align-items: center; gap: .6rem; height: 48px; padding: 0 1.1rem 0 .9rem; border-radius: 12px; color: #fff; background: #000; border: 1px solid rgba(255,255,255,.35); transition: transform .25s, border-color .25s, box-shadow .25s; }
.play-btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.7); box-shadow: 0 12px 24px -12px rgba(0,0,0,.8); }
.play-btn svg { width: 1.5rem; height: 1.5rem; }
.play-btn span { display: flex; flex-direction: column; font-family: 'Sora', sans-serif; font-size: 1.02rem; font-weight: 600; line-height: 1.05; }
.play-btn small { font-family: 'Inter', sans-serif; font-size: .58rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.8); }
@media (max-width: 639.98px) { .play-btn { height: 38px; padding: 0 .8rem 0 .65rem; border-radius: 10px; } .play-btn svg { width: 1.15rem; height: 1.15rem; } .play-btn span { font-size: .85rem; } .play-btn small { font-size: .5rem; } }

/* animation cards play their YouTube video inline */
.anim-img { position: relative; display: block; aspect-ratio: 16 / 9; }
.anim-img img { width: 100%; height: 100%; object-fit: cover; }
.anim-img iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-btn { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.yt-btn:focus-visible { outline: 3px solid var(--brand-gold); outline-offset: -3px; }
.yt-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin: -1.6rem 0 0 -1.6rem; color: #0b72c9; background: #fff; border-radius: 50%; box-shadow: 0 0 0 8px rgba(255,255,255,.25); transition: transform .3s, box-shadow .3s; }
.yt-play svg { width: 1.25rem; height: 1.25rem; margin-left: .15rem; }
.anim:hover .yt-play { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(255,255,255,.3); }
.yt-go { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.yt-go:disabled { cursor: default; color: #64748b; }
@media (max-width: 639.98px) { .yt-play { width: 2.4rem; height: 2.4rem; margin: -1.2rem 0 0 -1.2rem; box-shadow: 0 0 0 5px rgba(255,255,255,.25); } .yt-play svg { width: 1rem; height: 1rem; } }
