/*
Theme Name: USMLE Journey
Theme URI: https://usmlejourney.com/
Author: Brand Solution BD
Description: Premium WordPress theme for USMLE Journey with dynamic homepage sections, blog templates, CPT support, and Customizer controls.
Version: 1.0.0
Text Domain: usmle-journey
*/

:root {
    --bg: #ffffff;
    --bg-soft: #ededed;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-strong: #ffffff;
    --card: #ffffff;
    --card-strong: #ededed;
    --text: #1f1f1f;
    --muted: #626262;
    --line: rgba(31, 31, 31, 0.1);
    --teal: #fe4f2d;
    --gold: #fe4f2d;
    --rose: #ffd9d1;
    --shadow: 0 24px 60px rgba(254, 79, 45, 0.12);
    --radius: 28px;
    --radius-sm: 18px;
    --max: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(254, 79, 45, 0.16), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(237, 237, 237, 0.9), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f7f7f7 44%, #ededed 100%);
    min-height: 100vh;
    padding-top: 9.6rem;
}

body.nav-open {
    overflow: hidden;
}

body.is-scrolled .header-shell {
    box-shadow: 0 22px 54px rgba(31, 31, 31, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

body.desktop-scroll-hide .header-shell {
    transform: translateX(-50%) translateY(calc(-100% - 1.2rem));
}

body.desktop-compact .header-shell {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(31, 31, 31, 0.08);
}

body.desktop-compact .topbar {
    max-height: 0;
    opacity: 0;
    border-bottom-color: transparent;
    overflow: hidden;
    transform: translateY(-8px);
    pointer-events: none;
}

body.desktop-compact .site-header {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.site-shell {
    position: relative;
    overflow: clip;
}

.smooth-wrapper {
    position: relative;
}

.smooth-content {
    position: relative;
}

.header-shell {
    position: fixed;
    top: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 1.2rem), calc(var(--max) + 0.8rem));
    z-index: 30;
    border: 1px solid rgba(31, 31, 31, 0.08);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(22px);
    transition: background 220ms ease, box-shadow 220ms ease, transform 260ms ease;
}

.ambient {
    position: fixed;
    inset: auto;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.ambient-one {
    top: 8rem;
    left: -9rem;
    background: rgba(254, 79, 45, 0.42);
}

.ambient-two {
    top: 30rem;
    right: -10rem;
    background: rgba(237, 237, 237, 0.95);
}

.wrap {
    width: min(calc(100% - 2rem), var(--max));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.topbar {
    border-bottom: 1px solid var(--line);
    background: transparent;
    backdrop-filter: none;
    max-height: 8rem;
    opacity: 1;
    overflow: hidden;
    transform: translateY(0);
    transition:
        max-height 220ms ease,
        opacity 180ms ease,
        transform 220ms ease,
        border-bottom-color 220ms ease;
}

.topbar-inner,
.site-header,
.hero,
.hero-highlights,
.feature-grid,
.roadmap-shell,
.timeline-grid,
.study-metrics,
.residency-layout,
.resource-grid,
.insight-grid,
.site-footer {
    display: grid;
    gap: 1.2rem;
}

.topbar-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 0.7rem 1rem 0.55rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.topbar-inner p {
    margin: 0;
}

.topbar-note {
    display: grid;
    gap: 0.3rem;
}

.topbar-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 1.65rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(254, 79, 45, 0.1);
    color: var(--teal);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.topbar-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.topbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.55rem;
    padding: 0.45rem 0.75rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(31, 31, 31, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.topbar-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(31, 31, 31, 0.06);
}

.chip-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    min-height: 1.7rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: rgba(254, 79, 45, 0.1);
    color: var(--teal);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar-chip strong {
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 700;
}

.site-header {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 0.95rem 1rem 1rem;
    transition: padding 220ms ease;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.95rem;
}

.brand strong,
.hero h1,
.section-head h2,
.panel-card h2,
.tab-panel h3,
.cta-block h2 {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    letter-spacing: -0.03em;
}

.brand span:last-child {
    display: grid;
    gap: 0.12rem;
}

.brand strong {
    font-size: 1.15rem;
}

.brand small {
    color: var(--muted);
}

.brand-mark {
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid rgba(254, 79, 45, 0.2);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 0.28rem;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-mark .custom-logo-link {
    display: block;
    width: 100%;
    height: 100%;
}

.brand-mark .custom-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-nav {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-parent {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-caret {
    width: 0.5rem;
    height: 0.5rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 200ms ease;
}

.has-submenu.is-open .nav-caret,
.has-submenu:hover .nav-caret,
.has-submenu:focus-within .nav-caret {
    transform: rotate(-135deg) translateY(-1px);
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    z-index: 8;
    display: grid;
    gap: 0.35rem;
    min-width: 13rem;
    padding: 0.55rem;
    border: 1px solid rgba(31, 31, 31, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 247, 0.98));
    box-shadow: 0 18px 36px rgba(31, 31, 31, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

.nav-submenu a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.78rem 0.95rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(31, 31, 31, 0.06);
    font-size: 0.92rem;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible {
    color: var(--text);
    background: #ededed;
    transform: translateX(2px);
    outline: none;
}

.has-submenu.is-open .nav-submenu,
.has-submenu:hover .nav-submenu,
.has-submenu:focus-within .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-menu-actions,
.mobile-menu-info {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

.site-nav > a,
.nav-parent {
    color: var(--muted);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav > a:hover,
.site-nav > a.is-active,
.nav-parent:hover,
.has-submenu.is-open .nav-parent,
.has-submenu:focus-within .nav-parent {
    color: var(--text);
    background: #ededed;
}

.site-nav .nav-cta {
    color: #ffffff;
    background: linear-gradient(135deg, #fe4f2d, #ff775c);
    font-weight: 700;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    padding: 0;
    cursor: pointer;
    position: relative;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.menu-toggle span {
    display: block;
    width: 1.15rem;
    height: 2px;
    margin: 0.3rem auto;
    background: var(--text);
    border-radius: 999px;
    transition: transform 220ms ease, opacity 220ms ease, background 220ms ease;
}

.menu-toggle:hover {
    transform: translateY(-1px);
}

.menu-toggle.is-open {
    background: linear-gradient(135deg, #fe4f2d, #ff775c);
    border-color: rgba(254, 79, 45, 0.4);
}

.menu-toggle.is-open span {
    background: #ffffff;
}

.menu-toggle.is-open span:first-child {
    transform: translateY(5px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
    transform: translateY(-5px) rotate(-45deg);
}

.hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: start;
    gap: 1.6rem;
    padding: 2.4rem 0 2rem;
}

.hero-copy,
.hero-panel,
.roadmap-shell,
.cta-block {
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.eyebrow,
.panel-label,
.phase,
.insight-card p {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--teal);
}

.hero h1 {
    margin: 0.8rem 0 1rem;
    font-size: clamp(2.6rem, 5.5vw, 5rem);
    line-height: 0.96;
    max-width: 12ch;
}

.hero-text,
.section-head p,
.tab-panel p,
.feature-card p,
.timeline-card p,
.residency-checklist li,
.resource-card p,
.insight-card span,
.cta-block p,
.contact-list p,
.mini-card span {
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin: 1.8rem 0 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.3rem;
    padding: 0.9rem 1.3rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #fe4f2d, #ff775c);
    box-shadow: 0 14px 34px rgba(254, 79, 45, 0.22);
}

.button-secondary {
    border: 1px solid var(--line);
    background: #ffffff;
}

.hero-highlights,
.journey-grid,
.feature-grid,
.timeline-grid,
.study-metrics,
.resource-grid,
.insight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-highlights article,
.mini-card,
.feature-card,
.timeline-card,
.resource-card,
.insight-card,
.residency-timeline article,
.residency-checklist {
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(31, 31, 31, 0.08);
    background: var(--card);
    transition:
        transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 280ms ease,
        background 280ms ease;
}

.tab-panel {
    transition:
        transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 280ms ease,
        background 280ms ease;
}

.hero-highlights article span,
.mini-card strong,
.feature-card h3,
.timeline-card h3,
.resource-card h3,
.insight-card h3,
.residency-checklist h3,
.tab-panel h3 {
    transition: color 280ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-highlights article:hover,
.hero-highlights article:focus-within,
.mini-card:hover,
.mini-card:focus-within,
.feature-card:hover,
.feature-card:focus-within,
.timeline-card:hover,
.timeline-card:focus-within,
.resource-card:hover,
.resource-card:focus-within,
.insight-card:hover,
.insight-card:focus-within,
.residency-timeline article:hover,
.residency-timeline article:focus-within,
.residency-checklist:hover,
.residency-checklist:focus-within,
.tab-panel:hover,
.tab-panel:focus-within {
    transform: translateY(-8px);
    border-color: rgba(254, 79, 45, 0.22);
    box-shadow: 0 22px 38px rgba(254, 79, 45, 0.12);
}

.hero-highlights article:hover span,
.hero-highlights article:focus-within span,
.mini-card:hover strong,
.mini-card:focus-within strong,
.feature-card:hover h3,
.feature-card:focus-within h3,
.timeline-card:hover h3,
.timeline-card:focus-within h3,
.resource-card:hover h3,
.resource-card:focus-within h3,
.insight-card:hover h3,
.insight-card:focus-within h3,
.residency-checklist:hover h3,
.residency-checklist:focus-within h3,
.tab-panel:hover h3,
.tab-panel:focus-within h3 {
    color: #fe4f2d;
    transform: translateX(3px);
}

.hero-highlights span,
.study-metrics strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.panel-intro {
    padding: 0.35rem 0 1rem;
}

.panel-card h2 {
    margin: 0.55rem 0 0.7rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.08;
}

.panel-card p:last-child {
    color: var(--muted);
    line-height: 1.7;
}

.journey-grid {
    margin-top: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mentor-feature-section {
    padding: 0.7rem 0 2.1rem;
}

.mentor-showcase {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    gap: 1.4rem;
    align-items: center;
    padding: clamp(1.2rem, 3vw, 1.8rem);
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid rgba(31, 31, 31, 0.08);
    background:
        radial-gradient(circle at top right, rgba(254, 79, 45, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(38, 24, 24, 0.98), rgba(22, 22, 24, 0.96));
    box-shadow: 0 28px 60px rgba(31, 31, 31, 0.14);
    overflow: hidden;
}

.mentor-showcase::after {
    content: "";
    position: absolute;
    inset: auto -5rem -6rem auto;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 79, 45, 0.16), transparent 68%);
    pointer-events: none;
}

.mentor-portrait-card {
    position: relative;
}

.mentor-portrait-glow {
    position: absolute;
    inset: 10% 14% auto;
    height: 72%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 79, 45, 0.42), transparent 70%);
    filter: blur(26px);
}

.mentor-portrait-frame {
    position: relative;
    padding: 0.75rem;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mentor-portrait {
    width: 100%;
    height: auto;
    border-radius: 28px;
    display: block;
}

.mentor-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.9rem;
    color: #ffffff;
}

.mentor-kicker {
    margin: 0;
    width: fit-content;
    padding: 0.48rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(254, 79, 45, 0.96), rgba(255, 124, 87, 0.96));
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 14px 28px rgba(254, 79, 45, 0.2);
}

.mentor-copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 0.98;
}

.mentor-role {
    margin: 0;
    max-width: 35rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.7;
}

.mentor-credentials {
    display: grid;
    gap: 0.45rem;
}

.mentor-credentials p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.95rem;
    line-height: 1.6;
}

.mentor-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.2rem;
}

.mentor-points span {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mini-card p {
    margin: 0 0 0.55rem;
    color: var(--gold);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.mini-card strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.accent-card {
    background: linear-gradient(160deg, rgba(254, 79, 45, 0.12), rgba(237, 237, 237, 0.9));
}

.section-block {
    padding: 2rem 0;
}

.section-head {
    max-width: 48rem;
    margin-bottom: 1.4rem;
}

.section-head h2 {
    margin: 0.55rem 0 0.8rem;
    font-size: clamp(1.9rem, 4vw, 3.3rem);
    line-height: 1.04;
}

.feature-card span {
    display: inline-grid;
    place-items: center;
    width: 2.2rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(254, 79, 45, 0.12);
    color: var(--teal);
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.feature-card h3,
.timeline-card h3,
.resource-card h3,
.insight-card h3,
.residency-checklist h3 {
    margin: 0 0 0.7rem;
    font-size: 1.2rem;
    line-height: 1.3;
}

.roadmap-shell {
    display: grid;
    gap: 1rem;
}

.roadmap-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tab-button {
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--muted);
    border-radius: 999px;
    padding: 0.9rem 1rem;
    font: inherit;
    cursor: pointer;
    transition: 180ms ease;
}

.tab-button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #fe4f2d, #ff775c);
}

.tab-panels {
    position: relative;
}

.tab-panel {
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    gap: 1.2rem;
    align-items: start;
    padding: 1.35rem;
    border-radius: var(--radius-sm);
    background: #f9f9f9;
    border: 1px solid rgba(31, 31, 31, 0.08);
}

.tab-panel.is-active {
    display: grid;
}

.tab-panel ul,
.residency-checklist ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    line-height: 1.7;
}

.study-metrics article {
    padding: 1.2rem 1.3rem;
    border-top: 1px solid var(--line);
}

.study-metrics span {
    color: var(--muted);
    line-height: 1.7;
}

.residency-layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
}

.residency-timeline {
    display: grid;
    gap: 0.95rem;
}

.residency-timeline article {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: start;
    gap: 1rem;
}

.residency-timeline span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border-radius: 999px;
    background: rgba(254, 79, 45, 0.12);
    color: var(--gold);
    font-weight: 700;
}

.cta-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
    gap: 1.6rem;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(254, 79, 45, 0.15), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 247, 0.98));
    border: 1px solid rgba(31, 31, 31, 0.08);
    box-shadow: 0 24px 60px rgba(31, 31, 31, 0.08);
    position: relative;
    overflow: hidden;
}

.cta-block::after {
    content: "";
    position: absolute;
    inset: auto -10% -45% auto;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 79, 45, 0.12), transparent 65%);
    pointer-events: none;
}

.cta-copy {
    position: relative;
    z-index: 1;
    padding-left: 0.75rem;
}

.cta-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.45rem;
}

.cta-points span {
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(254, 79, 45, 0.08);
    border: 1px solid rgba(254, 79, 45, 0.12);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
}

.cta-panel {
    position: relative;
    z-index: 1;
    padding: 1.55rem;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.98));
    border: 1px solid rgba(31, 31, 31, 0.08);
    box-shadow: 0 20px 42px rgba(31, 31, 31, 0.08);
}

.cta-panel-head {
    display: grid;
    gap: 0.45rem;
}

.cta-panel-head h3 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.cta-button {
    width: 100%;
    margin-top: 1.15rem;
    min-height: 3.7rem;
    font-size: 1rem;
    box-shadow: 0 18px 34px rgba(254, 79, 45, 0.2);
}

.contact-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.contact-list a {
    color: var(--text);
}

.contact-card {
    display: grid;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(31, 31, 31, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    border-color: rgba(254, 79, 45, 0.16);
    box-shadow: 0 14px 28px rgba(31, 31, 31, 0.06);
}

.contact-card span {
    color: var(--teal);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-card strong {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.45;
}

.contact-card-muted {
    background: linear-gradient(180deg, #fff8f6, #ffffff);
}

.site-footer {
    grid-template-columns: 1fr auto;
    padding: 1.8rem 0 2.4rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    margin-top: 2rem;
}

.site-footer a {
    color: var(--teal);
}

.footer-actions {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-menu {
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-menu .menu-item {
    list-style: none;
}

.footer-menu .menu-item a {
    color: var(--muted);
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(31, 31, 31, 0.08);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(31, 31, 31, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.back-to-top:hover {
    transform: translateY(-2px);
    border-color: rgba(254, 79, 45, 0.18);
    box-shadow: 0 16px 30px rgba(254, 79, 45, 0.12);
}

.back-to-top-icon {
    position: relative;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: rgba(254, 79, 45, 0.1);
}

.back-to-top-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.42rem;
    height: 0.42rem;
    border-top: 2px solid var(--teal);
    border-left: 2px solid var(--teal);
    transform: translate(-50%, -22%) rotate(45deg);
}

.floating-rail {
    position: fixed;
    top: 59%;
    right: 0.7rem;
    z-index: 24;
    display: grid;
    gap: 0.5rem;
    padding: 0.55rem;
    border: 1px solid rgba(31, 31, 31, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 42px rgba(31, 31, 31, 0.08);
    transform: translateY(-50%);
}

.floating-rail::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(254, 79, 45, 0.08), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.floating-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 3rem;
    min-height: 3rem;
    padding: 0.3rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 31, 31, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 248, 0.96));
    box-shadow: 0 12px 26px rgba(31, 31, 31, 0.05);
    color: var(--text);
    overflow: hidden;
    transition:
        transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 220ms ease,
        border-color 220ms ease,
        background 220ms ease,
        min-width 240ms cubic-bezier(0.22, 1, 0.36, 1),
        min-height 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.floating-link:hover,
.floating-link:focus-visible {
    min-width: 3.65rem;
    min-height: 3.65rem;
    transform: translateX(-4px) scale(1.05);
    border-color: rgba(254, 79, 45, 0.18);
    box-shadow: 0 18px 34px rgba(254, 79, 45, 0.14);
    outline: none;
}

.floating-link-icon {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: rgba(254, 79, 45, 0.1);
    color: var(--teal);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), background 220ms ease, color 220ms ease;
}

.floating-link:hover .floating-link-icon,
.floating-link:focus-visible .floating-link-icon {
    transform: scale(1.08);
}

.floating-link-icon svg {
    width: 0.95rem;
    height: 0.95rem;
    fill: currentColor;
}

.floating-link-text {
    display: none;
}

.floating-link-mail .floating-link-icon {
    background: rgba(254, 79, 45, 0.1);
}

.floating-link-whatsapp .floating-link-icon {
    background: rgba(30, 196, 96, 0.12);
    color: #18a957;
}

.floating-link-facebook .floating-link-icon {
    background: rgba(24, 119, 242, 0.12);
    color: #1877f2;
}

.floating-link-youtube .floating-link-icon {
    background: rgba(255, 0, 0, 0.1);
    color: #e62f21;
}

body.has-smooth-scroll {
    overflow-x: hidden;
}

body.has-smooth-scroll .smooth-wrapper {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

body.has-smooth-scroll .smooth-content {
    will-change: transform;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.premium-heading {
    perspective: 1000px;
}

.premium-heading .heading-word-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-block: 0.08em 0.14em;
    margin-block: -0.08em -0.14em;
}

.premium-heading .heading-word {
    display: inline-block;
    transform-origin: 50% 100%;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
}

.blog-index,
.single-post-shell {
    padding-top: 2.6rem;
}

.blog-grid {
    margin-top: 1rem;
}

.blog-pagination {
    margin-top: 1.6rem;
}

.blog-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.blog-pagination a,
.blog-pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.8rem;
    min-height: 2.8rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(31, 31, 31, 0.08);
}

.blog-pagination .current {
    color: #ffffff;
    background: linear-gradient(135deg, #fe4f2d, #ff775c);
}

.single-post-card {
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.single-post-card h1 {
    margin: 0.45rem 0 1rem;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    line-height: 1.02;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.1rem;
}

.single-post-image {
    margin: 1rem 0 1.35rem;
    overflow: hidden;
    border-radius: 24px;
}

.single-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post-content {
    color: var(--text);
    line-height: 1.85;
}

.single-post-content p,
.single-post-content ul,
.single-post-content ol,
.single-post-content blockquote {
    margin: 0 0 1rem;
}

.insight-card h3 a {
    color: inherit;
}

@media (prefers-reduced-motion: reduce) {
    .premium-heading .heading-word {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }
}

@media (max-width: 960px) {
    body {
        padding-top: 6.15rem;
    }

    .hero,
    .residency-layout,
    .cta-block,
    .tab-panel,
    .mentor-showcase,
    .topbar-inner,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .hero-highlights,
    .feature-grid,
    .timeline-grid,
    .study-metrics,
    .resource-grid,
    .insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-header {
        grid-template-columns: auto auto;
        gap: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .topbar {
        display: none;
    }

    .site-nav {
        display: grid;
        align-content: start;
        position: absolute;
        top: calc(100% + 0.55rem);
        right: 0.3rem;
        width: min(22.5rem, calc(100vw - 1rem));
        gap: 0.45rem;
        padding: 0.6rem;
        border: 1px solid rgba(31, 31, 31, 0.08);
        border-radius: 24px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 247, 0.98));
        box-shadow: 0 20px 45px rgba(31, 31, 31, 0.08);
        transform-origin: top right;
        opacity: 0;
        visibility: hidden;
        transform: translateX(34px) scale(0.98);
        pointer-events: none;
        max-height: min(75vh, 36rem);
        overflow-x: hidden;
        overflow-y: auto;
        transition:
            opacity 240ms ease,
            transform 240ms ease,
            visibility 240ms ease;
    }

    .nav-item {
        width: 100%;
    }

    .nav-parent {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0.82rem 1rem;
        border-radius: 18px;
        background: #ffffff;
        border: 1px solid rgba(31, 31, 31, 0.06);
    }

    .nav-submenu {
        position: static;
        min-width: 0;
        padding: 0;
        margin-top: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: 0;
        overflow: hidden;
        transform: none;
        transition: max-height 240ms ease, margin-top 240ms ease, padding-top 240ms ease;
    }

    .nav-submenu a {
        padding-left: 1.15rem;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.88);
    }

    .has-submenu:hover .nav-submenu,
    .has-submenu:focus-within .nav-submenu {
        max-height: 0;
        margin-top: 0;
        padding-top: 0;
    }

    .has-submenu.is-open .nav-submenu {
        max-height: 18rem;
        margin-top: 0.35rem;
        padding-top: 0.15rem;
    }

    .site-nav .desktop-nav-cta {
        display: none !important;
        visibility: hidden;
        opacity: 0;
        max-height: 0;
        padding: 0;
        margin: 0;
        border: 0;
        overflow: hidden;
    }

    .mobile-menu-actions {
        display: grid;
        order: 10;
        gap: 0.45rem;
        width: 100%;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 220ms ease, transform 220ms ease;
    }

    .mobile-menu-info {
        display: grid;
        width: 100%;
        gap: 0.65rem;
        padding: 0.45rem 0.15rem 0.15rem;
        border-top: 1px solid rgba(31, 31, 31, 0.08);
    }

    .mobile-menu-note {
        display: grid;
        gap: 0.35rem;
    }

    .mobile-menu-note p {
        margin: 0;
        color: var(--muted);
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .mobile-menu-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateX(0) scale(1);
        pointer-events: auto;
    }

    .site-nav.is-open .mobile-menu-actions,
    .site-nav.is-open .mobile-menu-info {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 70ms;
    }

    .site-nav > a,
    .nav-submenu a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0.82rem 1rem;
        border-radius: 18px;
        background: #ffffff;
        border: 1px solid rgba(31, 31, 31, 0.06);
    }

    .mobile-nav-cta {
        display: flex;
        justify-content: center;
        text-align: center;
        margin-top: 0.15rem;
        padding-top: 0.9rem;
        padding-bottom: 0.9rem;
        box-shadow: 0 14px 32px rgba(254, 79, 45, 0.16);
    }

    .header-shell {
        top: 0.45rem;
        width: min(calc(100% - 0.8rem), calc(var(--max) + 0.8rem));
        border-radius: 26px;
    }

    .floating-rail {
        top: auto;
        right: 0.75rem;
        bottom: 1rem;
        transform: none;
        grid-auto-flow: row;
        padding: 0.65rem;
        border-radius: 24px;
    }

    .floating-link:hover,
    .floating-link:focus-visible {
        min-width: 3.45rem;
        min-height: 3.45rem;
        transform: translateY(-3px) scale(1.04);
    }

    body.has-smooth-scroll .smooth-wrapper {
        position: relative;
        inset: auto;
        overflow: visible;
    }

    body.has-smooth-scroll .smooth-content {
        transform: none !important;
        will-change: auto;
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 5.9rem;
    }

    .wrap {
        width: min(calc(100% - 1.1rem), var(--max));
    }

    .hero {
        padding-top: 1.65rem;
    }

    .mentor-showcase {
        padding: 1rem;
        gap: 1rem;
    }

    .mentor-copy h2 {
        font-size: 1.85rem;
    }

    .mentor-role,
    .mentor-credentials p {
        font-size: 0.92rem;
    }

    .hero-highlights,
    .journey-grid,
    .feature-grid,
    .timeline-grid,
    .study-metrics,
    .resource-grid,
    .insight-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .roadmap-tabs,
    .topbar-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .button,
    .tab-button {
        width: 100%;
    }

    .residency-timeline article {
        grid-template-columns: 1fr;
    }

    .brand strong {
        font-size: 1rem;
    }

    .topbar-inner {
        gap: 0.5rem;
        padding: 0.6rem 0.85rem 0.5rem;
    }

    .topbar-inner p {
        font-size: 0.76rem;
        line-height: 1.45;
    }

    .topbar-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.45rem;
        font-size: 0.76rem;
    }

    .topbar-note {
        padding: 0.15rem 0.1rem 0.35rem;
        border-bottom: 1px solid rgba(31, 31, 31, 0.06);
    }

    .topbar-kicker {
        min-height: 1.5rem;
        padding-inline: 0.55rem;
        font-size: 0.63rem;
        letter-spacing: 0.16em;
    }

    .topbar-chip {
        justify-content: space-between;
        width: 100%;
        padding: 0.7rem 0.78rem;
        border-radius: 16px;
        background: linear-gradient(180deg, #ffffff, #f8f8f8);
        box-shadow: 0 10px 22px rgba(31, 31, 31, 0.05);
    }

    .chip-label {
        min-width: 3.15rem;
        font-size: 0.62rem;
    }

    .topbar-chip strong {
        font-size: 0.76rem;
        text-align: right;
    }

    .mobile-menu-info {
        padding-top: 0.8rem;
    }

    .site-nav {
        right: 0;
        width: calc(100vw - 1rem);
        max-height: min(78vh, 34rem);
    }

    .mobile-menu-note {
        padding: 0.1rem 0.1rem 0.45rem;
    }

    .mobile-menu-note p {
        font-size: 0.76rem;
        line-height: 1.45;
    }

    .site-header {
        padding: 0.78rem 0.85rem 0.88rem;
    }

    .brand {
        gap: 0.7rem;
    }

    .brand-mark {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 12px;
        padding: 0.24rem;
    }

    .header-shell {
        border-radius: 24px;
    }

    .floating-rail {
        right: 0.6rem;
        bottom: 0.75rem;
        gap: 0.55rem;
        padding: 0.55rem;
    }

    .floating-link {
        min-width: 3.15rem;
        min-height: 3.15rem;
        padding: 0.32rem;
    }

    .floating-link-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}
