/*
Theme Name: Python Training SG
Theme URI: https://pythontraining.sg
Author: Intellisoft Systems
Description: Minimal custom theme for pythontraining.sg course pages.
Version: 1.0.0
Requires PHP: 7.4
*/

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
	--ink:       #161b22;
	--ink-2:     #232c3d;
	--paper:     #fafaf8;
	--paper-2:   #f1f2f6;
	--slate:     #4a5568;
	--slate-dim: #737f92;
	--line:      #e3e6ec;
	--accent:    #3B5BDB;
	--accent-2:  #2c46ad;
	--gold:      #F0B429;
	--font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1140px;
	--radius: 16px;
	--shadow: 0 18px 50px -24px rgba(22,27,34,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--paper);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pyt-skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.pyt-skip:focus { left: 1rem; top: 1rem; }
.pyt-muted { color: var(--slate-dim); }
.pyt-eyebrow { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--accent); margin: 0 0 .8rem; }

/* ── Buttons ────────────────────────────────────────────────────── */
.pyt-btn { display: inline-block; font-weight: 600; font-size: .95rem; padding: .8rem 1.5rem; border-radius: 999px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.pyt-btn--primary { background: var(--ink); color: var(--paper); }
.pyt-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(22,27,34,.6); }
.pyt-btn--gold { background: var(--gold); color: var(--ink); }
.pyt-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(240,180,41,.5); }
.pyt-btn--ghost { color: var(--paper); border: 1px solid rgba(250,250,248,.4); }
.pyt-btn--ghost:hover { background: rgba(250,250,248,.1); }

/* ── Header / nav ───────────────────────────────────────────────── */
.pyt-site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,250,248,.86); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.pyt-header-inner { max-width: var(--wrap); margin: 0 auto; padding: .85rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pyt-logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.pyt-logo__mark { width: 26px; height: 26px; color: var(--accent); flex: none; }
.pyt-logo__text { font-family: var(--font-display); font-weight: 700; font-size: 1.14rem; letter-spacing: -.01em; color: var(--ink); }
.pyt-logo__tld { color: var(--accent); font-weight: 700; }
.pyt-nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.pyt-nav a { text-decoration: none; font-weight: 500; font-size: .94rem; color: var(--slate); transition: color .15s; }
.pyt-nav a:hover { color: var(--ink); }
.pyt-nav__cta { padding: .5rem 1rem; border-radius: 999px; background: var(--ink); color: var(--paper) !important; }
.pyt-nav__cta:hover { background: var(--ink-2); }

/* ── Hero ───────────────────────────────────────────────────────── */
.pyt-hero { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 80% -10%, var(--accent-2) 0%, var(--ink) 55%); color: var(--paper); }
.pyt-hero__grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.pyt-hero__inner { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 5.5rem 1.5rem 4rem; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.pyt-hero__media { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.pyt-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.pyt-hero .pyt-eyebrow { color: #9db4f5; }
.pyt-hero__title { font-size: clamp(2.4rem, 6vw, 4.3rem); margin: 0 0 1.1rem; max-width: 16ch; }
.pyt-hero__title em { font-style: normal; color: var(--gold); }
.pyt-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: #cdd5e6; max-width: 54ch; margin: 0 0 2rem; }
.pyt-hero__lead strong { color: var(--paper); font-weight: 600; }
.pyt-hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 3rem; }
.pyt-hero__stats { list-style: none; margin: 0; padding: 1.6rem 0 0; border-top: 1px solid rgba(255,255,255,.14); display: flex; gap: 2.6rem; flex-wrap: wrap; }
.pyt-hero__stats strong { display: block; font-family: var(--font-display); font-size: 1.7rem; }
.pyt-hero__stats span { font-size: .86rem; color: #9fa9c8; }

/* ── Section heads ──────────────────────────────────────────────── */
.pyt-section-head { max-width: 60ch; margin: 0 auto 2.6rem; text-align: center; }
.pyt-section-head--left { text-align: left; margin-left: 0; }
.pyt-section-head h2, .pyt-section-head h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0 0 .6rem; }
.pyt-section-sub { color: var(--slate); font-size: 1.05rem; margin: 0; }
.pyt-section-head--media { max-width: none; display: grid; grid-template-columns: 1.3fr .7fr; gap: 2.4rem; align-items: center; }
.pyt-section-head--media .pyt-section-head-media img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 20px 45px -25px rgba(22,27,34,.45); }

/* ── Courses / cards ────────────────────────────────────────────── */
.pyt-courses { max-width: var(--wrap); margin: 0 auto; padding: 5rem 1.5rem; }
.pyt-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.6rem; }
.pyt-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.pyt-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pyt-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; z-index: 2; }
.pyt-card:hover::before { transform: scaleX(1); }
.pyt-card__media { display: block; aspect-ratio: 16 / 10; background: var(--ink); }
.pyt-card__media img { width: 100%; height: 100%; object-fit: cover; }
.pyt-card__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.pyt-card__meta { display: flex; align-items: center; gap: .7rem; margin: 0; }
.pyt-pill { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px; background: var(--paper-2); color: var(--slate); }
.pyt-card__dur { font-size: .82rem; color: var(--slate-dim); }
.pyt-card__dur::before { content: "•"; margin-right: .6rem; color: var(--line); }
.pyt-card__title { font-size: 1.28rem; margin: 0; }
.pyt-card__title a { text-decoration: none; }
.pyt-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.pyt-card__title a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pyt-card__teaser { color: var(--slate); font-size: .96rem; margin: 0; flex: 1; }
.pyt-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .4rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.pyt-card__price { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.pyt-card__price small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .74rem; color: var(--slate-dim); margin-top: .15rem; }
.pyt-card__link { font-size: .86rem; font-weight: 600; color: var(--accent); }

/* ── Comparison table (hub) ─────────────────────────────────────── */
.pyt-compare { width: 100%; border-collapse: collapse; margin: 3.2rem 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pyt-compare caption { text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; padding: 1.2rem 1.4rem 0; }
.pyt-compare th, .pyt-compare td { text-align: left; padding: .9rem 1.4rem; border-bottom: 1px solid var(--line); font-size: .94rem; }
.pyt-compare th { color: var(--slate-dim); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.pyt-compare tr:last-child td { border-bottom: 0; }
.pyt-compare td a { color: var(--accent); font-weight: 600; text-decoration: none; }
.pyt-compare .pyt-compare__note { font-size: .82rem; color: var(--slate-dim); background: var(--paper-2); }

/* ── Corporate band (home) ──────────────────────────────────────── */
.pyt-corp { background: linear-gradient(135deg, var(--accent-2), var(--ink-2)); color: var(--paper); }
.pyt-corp__inner { max-width: var(--wrap); margin: 0 auto; padding: 3.6rem 1.5rem; display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.4rem; align-items: center; }
.pyt-corp .pyt-eyebrow { color: #9db4f5; }
.pyt-corp h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .7rem; }
.pyt-corp p { color: #d5dbeb; margin: 0 0 .9rem; max-width: 60ch; }
.pyt-corp__deadline { border-left: 3px solid var(--gold); padding-left: .9rem; }
.pyt-corp__deadline strong { color: var(--gold); }
.pyt-corp__cta { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }

/* ── Course fees + next steps ───────────────────────────────────── */
.pyt-fees { margin-top: 2.6rem; }
.pyt-fees h2, .pyt-next h2 { font-size: 1.5rem; margin: 0 0 .8rem; }
.pyt-fees__table { margin: 1rem 0; }
.pyt-fees .pyt-muted { font-size: .88rem; }
.pyt-dates__alt { margin: 1rem 0 0; font-size: .92rem; color: var(--slate); }
.pyt-next { margin-top: 2.8rem; }
.pyt-next__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.pyt-next__list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.pyt-next__list a { display: block; font-weight: 600; color: var(--accent); text-decoration: none; margin-bottom: .3rem; }
.pyt-next__list span { font-size: .88rem; color: var(--slate); }

/* ── WhatsApp ───────────────────────────────────────────────────── */
.pyt-wa { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: inline-flex; align-items: center; gap: .5rem; background: #25D366; color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; padding: .7rem 1rem; border-radius: 999px; box-shadow: 0 10px 28px -10px rgba(0,0,0,.45); }
.pyt-wa:hover { background: #1ebe5b; }
.pyt-form__alt { margin: 0; font-size: .88rem; color: var(--slate); }
@media (max-width: 560px) { .pyt-wa span { display: none; } .pyt-wa { padding: .8rem; } }

/* ── Why ────────────────────────────────────────────────────────── */
.pyt-why { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pyt-why__inner { max-width: var(--wrap); margin: 0 auto; padding: 3.4rem 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.pyt-why__item h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
.pyt-why__item h3::before { content: ""; display: block; width: 30px; height: 3px; background: var(--accent); border-radius: 3px; margin-bottom: .8rem; }
.pyt-why__item p { margin: 0; color: var(--slate); }

/* ── CTA band ───────────────────────────────────────────────────── */
.pyt-cta-band { background: var(--ink); color: var(--paper); }
.pyt-cta-band__inner { max-width: var(--wrap); margin: 0 auto; padding: 3.6rem 1.5rem; text-align: center; }
.pyt-cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 .5rem; }
.pyt-cta-band p { color: #b9c0d4; margin: 0 0 1.6rem; }

/* ── Generic page wrap (course + hub + contact) ─────────────────── */
.pyt-main { max-width: 860px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.pyt-hub { max-width: var(--wrap); }
.pyt-course-page .pyt-course__title { font-size: clamp(2rem, 4vw, 2.8rem); margin: .2rem 0 1.4rem; }
.pyt-course__body h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; }
.pyt-course__body h3 { font-size: 1.18rem; margin: 1.6rem 0 .5rem; }
.pyt-course__body ul, .pyt-course__body ol { padding-left: 1.2rem; }
.pyt-course__body li { margin: .35rem 0; }
.pyt-figure { margin: 2.2rem 0; }
.pyt-figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 10px 30px -22px rgba(22,27,34,.4); }
.pyt-figure figcaption { margin-top: .65rem; font-size: .88rem; color: var(--slate-dim); text-align: center; }
.pyt-figure--portrait { max-width: 420px; margin-left: auto; margin-right: auto; }
.pyt-figure--portrait img { border-radius: 20px; }

/* dates list */
.pyt-dates { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 2px solid var(--ink); }
.pyt-dates h2 { font-size: 1.5rem; margin: 0 0 1rem; }
.pyt-dates__list { list-style: none; padding: 0; margin: 0; }
.pyt-date { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.pyt-date__label { font-weight: 600; }
.pyt-date__btn { margin-left: auto; background: var(--gold); color: var(--ink); text-decoration: none; padding: .55rem 1.1rem; border-radius: 999px; font-size: .9rem; font-weight: 600; transition: transform .15s; }
.pyt-date__btn:hover { transform: translateY(-2px); }
.pyt-dates__loading { color: var(--slate-dim); }

/* ── Contact ────────────────────────────────────────────────────── */
.pyt-contact { max-width: var(--wrap); }
.pyt-contact__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.pyt-profile { display: flex; gap: 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.pyt-profile__avatar { flex: none; width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.pyt-profile__name { font-size: 1.5rem; margin: 0; }
.pyt-profile__role { font-weight: 600; margin: .2rem 0 .1rem; }
.pyt-profile__creds { color: var(--slate-dim); font-size: .9rem; margin: 0 0 .8rem; }
.pyt-contact-card { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 1.8rem; }
.pyt-contact-card h2 { color: var(--paper); font-size: 1.3rem; margin: 0 0 1rem; }
.pyt-contact-list { margin: 0 0 1.4rem; }
.pyt-contact-list dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 1rem; }
.pyt-contact-list dd { margin: .25rem 0 0; }
.pyt-contact-card a { color: var(--paper); }
.pyt-contact-card .pyt-muted { color: #8e97b3; font-size: .85rem; }
.pyt-contact-card .pyt-btn--primary { background: var(--gold); color: var(--ink); margin-top: .4rem; }
.pyt-contact__extra { margin-top: 2.4rem; }
.pyt-hub__extra { margin-top: 2.4rem; }

/* ── Funding logos (SkillsFuture / WSQ / UTAP) ──────────────────── */
.pyt-funding { padding: 1.9rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line); }
.pyt-funding__label { text-align: center; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--slate-dim); margin: 0 0 1.1rem; }
.pyt-funding__logos { display: flex; justify-content: center; align-items: center; gap: 2.6rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.pyt-funding__logos img { height: 56px; width: auto; display: block; }
.pyt-funding--compact { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin: 1.6rem 0 0; border-bottom: 1px solid var(--line); }
.pyt-funding--compact .pyt-funding__label { margin-bottom: .9rem; }
.pyt-funding--compact .pyt-funding__logos { gap: 2rem; }
.pyt-funding--compact .pyt-funding__logos img { height: 46px; }
@media (max-width: 560px) { .pyt-funding__logos { gap: 1.5rem; } .pyt-funding__logos img { height: 40px; } }

/* ── Enquiry form ───────────────────────────────────────────────── */
.pyt-enquiry { background: var(--paper-2); border-top: 1px solid var(--line); }
.pyt-enquiry__inner { max-width: 820px; margin: 0 auto; padding: 3.6rem 1.5rem; }
.pyt-enquiry--compact { background: transparent; border-top: 0; }
.pyt-enquiry--compact .pyt-enquiry__inner { max-width: 860px; padding: 2.6rem 1.5rem 0; }
.pyt-enquiry__head { text-align: center; margin-bottom: 1.5rem; }
.pyt-enquiry--compact .pyt-enquiry__head { text-align: left; }
.pyt-form { display: flex; flex-direction: column; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow); }
.pyt-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pyt-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.pyt-form input, .pyt-form select, .pyt-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; font-family: inherit; font-size: .98rem; font-weight: 400; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.pyt-form input:focus, .pyt-form select:focus, .pyt-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.pyt-form textarea { resize: vertical; }
.pyt-form button { align-self: flex-start; border: 0; cursor: pointer; margin-top: .3rem; }
.pyt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pyt-formmsg { padding: .9rem 1.1rem; border-radius: 10px; font-weight: 500; margin-bottom: 1.1rem; }
.pyt-formmsg--ok { background: #e7edfb; color: #1f3a99; border: 1px solid var(--accent); }
.pyt-formmsg--err { background: #fdecec; color: #a32626; border: 1px solid #e0625a; }
@media (max-width: 620px) { .pyt-form__row { grid-template-columns: 1fr; } }

/* ── Footer ─────────────────────────────────────────────────────── */
.pyt-site-footer { background: var(--ink); color: #c4c9d9; margin-top: 4rem; }
.pyt-footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 3.4rem 1.5rem 2rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.pyt-footer-brand .pyt-logo__text { color: var(--paper); font-size: 1.3rem; }
.pyt-footer-brand .pyt-logo__mark { color: var(--gold); }
.pyt-footer-brand p { margin: .8rem 0 0; max-width: 40ch; font-size: .92rem; }
.pyt-footer-col h3 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #8e97b3; margin: 0 0 .9rem; }
.pyt-footer-col a { display: block; color: #c4c9d9; text-decoration: none; font-size: .92rem; margin-bottom: .5rem; transition: color .15s; }
.pyt-footer-col a:hover { color: var(--gold); }
.pyt-footer-col p { margin: 0 0 .6rem; font-size: .92rem; }
.pyt-footer-base { border-top: 1px solid rgba(255,255,255,.1); }
.pyt-footer-base p { max-width: var(--wrap); margin: 0 auto; padding: 1.2rem 1.5rem; font-size: .84rem; color: #8e97b3; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.pyt-hero__inner { grid-template-columns: 1fr; }
	.pyt-hero__media { order: -1; max-width: 480px; margin: 0 auto; }
	.pyt-section-head--media { grid-template-columns: 1fr; text-align: left; }
	.pyt-section-head--media .pyt-section-head-media { max-width: 360px; }
	.pyt-corp__inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
	.pyt-contact__grid { grid-template-columns: 1fr; }
	.pyt-footer-inner { grid-template-columns: 1fr; gap: 1.6rem; }
	.pyt-profile { flex-direction: column; }
	.pyt-nav { gap: 1rem; }
	.pyt-nav a:not(.pyt-nav__cta) { font-size: .9rem; }
	.pyt-compare { display: block; overflow-x: auto; }
	/* Level and Duration are on the cards above; keep "You pay" in view without a sideways swipe. */
	.pyt-compare th:nth-child(2), .pyt-compare th:nth-child(3),
	.pyt-compare td:nth-child(2), .pyt-compare td:nth-child(3) { display: none; }
	.pyt-compare th, .pyt-compare td { padding: .8rem .9rem; }
}
