/* css/instructor.css - the Instructors page: DSP's founder and only instructor, Doc Sam (Dr. Jay-R M. Villanueva). Founder hero, education and professional credentials,
 * founder and training philosophy, the four training areas he teaches, and a closing call to action. Every section sits in the page's own container (style.css `section`:
 * 5% side padding, 1280px at most), the same content edges as the header and the homepage. The portrait is shown WHOLE, at its own 9:16 proportions: it is never cropped. */

/* ---------------------------------------------------------------- founder hero */
.fp-hero { position: relative; overflow: hidden; padding: 40px 5% 64px; background: linear-gradient(135deg, #031c2d 0%, #042940 48%, #053b5c 100%); color: #fff; }
.fp-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle at 12% 18%, rgba(0, 175, 185, 0.2) 0%, transparent 46%), radial-gradient(circle at 88% 85%, rgba(8, 145, 178, 0.22) 0%, transparent 50%), linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px; }
.fp-hero-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.fp-portrait { position: relative; margin: 0 auto; width: min(70vw, 280px); }
.fp-portrait::before { content: ""; position: absolute; z-index: 0; inset: 14px -12px -12px 14px; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(0, 175, 185, 0.5), rgba(0, 119, 145, 0.25)); }
.fp-portrait img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 768 / 1376; border-radius: var(--radius-lg); background: #1d3a4a; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.fp-intro { min-width: 0; text-align: center; }
.fp-eyebrow { margin: 0 0 6px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.fp-intro h1 { margin: 0 0 4px; color: #fff; font-size: clamp(2.8rem, 7vw, 4.4rem); line-height: 1.02; letter-spacing: -0.03em; }
.fp-fullname { margin: 0; font-size: clamp(1.2rem, 2.6vw, 1.55rem); font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.fp-roles { list-style: none; margin: 18px 0 14px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fp-roles li { padding: 6px 14px; border: 1px solid rgba(0, 175, 185, 0.5); border-radius: 999px; background: rgba(0, 175, 185, 0.16); color: #c7f5f8; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; }
.fp-org { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 1rem; }
.fp-lead { max-width: 60ch; margin: 20px auto 28px; color: rgba(255, 255, 255, 0.88); font-size: 1.05rem; line-height: 1.7; }
.fp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.fp-actions .btn-primary { background: linear-gradient(135deg, #00afb9 0%, #007791 100%); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 4px 20px rgba(0, 175, 185, 0.4); }
.fp-actions .btn-primary:hover { background: linear-gradient(135deg, #0891b2 0%, #042940 100%); transform: translateY(-2px); }
.fp-actions .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.05); }
.fp-actions .btn-outline:hover { background: rgba(255, 255, 255, 0.15); border-color: #fff; color: #fff; }

/* ---------------------------------------------------------------- education & professional credentials */
.fp-cred .section-header, .fp-areas .section-header { margin-bottom: 40px; }
.cred-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.cred-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 2px 12px rgba(4, 41, 64, 0.07); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.cred-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 1; background: linear-gradient(90deg, var(--secondary), var(--accent)); }
.cred-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(4, 41, 64, 0.13); }
.cred-body { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px 24px; }
.cred-kind { align-self: flex-start; margin-bottom: 6px; padding: 4px 11px; border-radius: 999px; background: rgba(0, 119, 145, 0.1); color: var(--primary); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.cred-kind i { margin-right: 6px; }
.cred-title { margin: 0; font-size: 1.3rem; line-height: 1.25; color: var(--secondary); letter-spacing: -0.01em; }
.cred-inst { margin: 0; font-weight: 700; color: var(--text-dark); }
.cred-detail { margin: 0; color: var(--text-muted); }
.cred-date { margin: 8px 0 0; color: var(--text-muted); font-size: 0.92rem; font-weight: 600; }
.cred-date i { margin-right: 7px; color: var(--secondary); }
.fp-area .btn:focus-visible, .fp-join a:focus-visible, .fp-actions a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- founder and training philosophy */
.fp-phil { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fp-phil-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; }
.fp-phil-copy { text-align: center; }
.fp-phil-copy .section-title { margin-bottom: 14px; }
.fp-phil-copy p { margin: 0 auto; max-width: 52ch; color: var(--text-muted); font-size: 1.05rem; line-height: 1.75; }
.fp-pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.fp-pillar { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(180deg, #fff, #f7fafc); }
.fp-pillar-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 12px; background: var(--secondary); color: #fff; font-size: 1.1rem; }
.fp-pillar h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--primary); }
.fp-pillar p { margin: 0; color: var(--text-muted); line-height: 1.6; }

/* ---------------------------------------------------------------- the four training areas */
.fp-area-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.fp-area { position: relative; display: flex; flex-direction: column; padding: 26px 24px 22px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 2px 10px rgba(4, 41, 64, 0.06); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.fp-area::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--secondary), var(--accent)); }
.fp-area:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(4, 41, 64, 0.14); border-color: rgba(0, 119, 145, 0.35); }
.fp-area-tag { align-self: flex-start; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 119, 145, 0.1); color: var(--primary); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.fp-area h3 { margin: 0; font-size: 2rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--secondary); }
.fp-area-sub { margin: 4px 0 12px; font-weight: 600; color: var(--text-dark); }
.fp-area-by { margin: 0 0 20px; flex: 1 1 auto; color: var(--text-muted); font-size: 0.92rem; }
.fp-area-by i { margin-right: 7px; color: var(--secondary); }
.fp-area .btn { align-self: flex-start; gap: 8px; }

/* ---------------------------------------------------------------- closing call to action */
.fp-join { padding-top: 20px; padding-bottom: 80px; }
.fp-join-card { padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 56px); border-radius: var(--radius-xl); background: linear-gradient(135deg, #032030 0%, #042940 50%, #005c53 100%); color: #fff; text-align: center; box-shadow: var(--shadow-hover); }
.fp-join-card h2 { margin: 0 auto 12px; max-width: 760px; color: #fff; font-size: clamp(1.7rem, 3.8vw, 2.5rem); line-height: 1.18; letter-spacing: -0.01em; }
.fp-join-card > p { margin: 0 auto 26px; max-width: 600px; color: rgba(255, 255, 255, 0.84); line-height: 1.6; }
.fp-join-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.fp-join-main { background: #fff; color: var(--primary); border-color: #fff; }
.fp-join-main:hover { background: #e8f6f8; color: var(--primary); }
.fp-join-alt { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.fp-join-alt:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.fp-join-card .fp-join-venue { margin: 26px auto 0; max-width: 640px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.fp-join-venue strong { color: #fff; }

@media (min-width: 640px) {
    .cred-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fp-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .fp-hero { padding-block: 56px 88px; }
    .fp-hero-inner { grid-template-columns: 340px minmax(0, 1fr); gap: 72px; }
    .fp-portrait { width: 340px; }
    .fp-intro { text-align: left; }
    .fp-roles, .fp-actions { justify-content: flex-start; }
    .fp-lead { margin-left: 0; margin-right: 0; }
    .fp-phil-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; }
    .fp-phil-copy { text-align: left; position: sticky; top: 110px; }
    .fp-phil-copy p { margin-left: 0; }
}
@media (min-width: 1100px) {
    .cred-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fp-area-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .cred-card, .fp-area, .fp-actions .btn-primary { transition: none; }
    .cred-card:hover, .fp-area:hover, .fp-actions .btn-primary:hover { transform: none; }
}
