/**
 * Program detail page — USL academic programs
 */

.pd-page {
    --pd-navy: #002147;
    --pd-blue: #1e3a8a;
    --pd-blue-light: #3b82f6;
    --pd-gold: #c9a227;
    --pd-gold-light: #f0d78c;
    --pd-surface: #f1f5f9;
    --pd-card: #ffffff;
    --pd-text: #0f172a;
    --pd-muted: #64748b;
    --pd-border: #e2e8f0;
    --pd-radius: 1rem;
    --pd-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --pd-shadow-lg: 0 20px 48px rgba(0, 33, 71, 0.14);
    background: var(--pd-surface);
}

.pd-page a {
    text-decoration: none;
}

/* Hero */
.pd-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--pd-navy) 0%, var(--pd-blue) 60%, #1e40af 100%);
}

.pd-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.pd-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 33, 71, 0.55) 0%,
        rgba(0, 33, 71, 0.82) 55%,
        rgba(15, 23, 42, 0.95) 100%
    );
}

.pd-hero__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
    background-size: 24px 24px;
}

.pd-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1rem 2.5rem;
}

@media (min-width: 640px) {
    .pd-hero__inner {
        padding: 2.5rem 1.5rem 3rem;
    }
}

.pd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
}

.pd-breadcrumb a {
    color: #bfdbfe;
    transition: color 0.15s;
}

.pd-breadcrumb a:hover {
    color: #fff;
}

.pd-breadcrumb__sep {
    opacity: 0.45;
    font-size: 0.65rem;
}

.pd-breadcrumb__current {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.pd-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 0.85rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(201, 162, 39, 0.22);
    border: 1px solid rgba(201, 162, 39, 0.45);
    color: var(--pd-gold-light);
}

.pd-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 52rem;
}

.pd-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.35rem;
}

.pd-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
}

.pd-hero__chip i {
    opacity: 0.85;
    font-size: 0.75rem;
}

.pd-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1.25rem;
    border-radius: 0.6rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.pd-btn:hover {
    transform: translateY(-1px);
}

.pd-btn--primary {
    background: var(--pd-gold);
    color: var(--pd-navy);
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.pd-btn--primary:hover {
    background: #d4ad2e;
}

.pd-btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.pd-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pd-btn--outline {
    background: #fff;
    color: var(--pd-blue);
    border: 1px solid var(--pd-border);
}

.pd-btn--outline:hover {
    border-color: var(--pd-blue-light);
    color: var(--pd-blue);
}

.pd-btn--block {
    width: 100%;
}

/* Layout */
.pd-layout {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .pd-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        padding: 2.5rem 1.5rem 4rem;
        gap: 2.5rem;
    }
}

.pd-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.pd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .pd-sidebar {
        position: sticky;
        top: 6.5rem;
    }
}

/* Section cards */
.pd-section {
    background: var(--pd-card);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    overflow: hidden;
}

.pd-section__head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.pd-section__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, var(--pd-blue), var(--pd-blue-light));
    color: #fff;
    font-size: 1rem;
}

.pd-section__icon--gold {
    background: linear-gradient(135deg, #92680f, var(--pd-gold));
}

.pd-section__icon--teal {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.pd-section__icon--amber {
    background: linear-gradient(135deg, #b45309, #f59e0b);
}

.pd-section__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pd-text);
}

.pd-section__sub {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: var(--pd-muted);
}

.pd-section__body {
    padding: 1.35rem;
    color: #334155;
    font-size: 0.9375rem;
    line-height: 1.75;
}

.pd-section__body p {
    margin: 0 0 1rem;
}

.pd-section__body p:last-child {
    margin-bottom: 0;
}

.pd-section__body ul,
.pd-section__body ol {
    margin: 0.75rem 0 1rem;
    padding-left: 1.35rem;
}

.pd-section__body li {
    margin-bottom: 0.4rem;
}

/* Requirements groups */
.pd-req-group {
    margin-bottom: 1.25rem;
}

.pd-req-group:last-child {
    margin-bottom: 0;
}

.pd-req-group__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pd-blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pd-req-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pd-req-item {
    display: flex;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 0.6rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.pd-req-item i {
    color: var(--pd-gold);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.pd-req-item strong {
    display: block;
    color: var(--pd-text);
    margin-bottom: 0.15rem;
}

/* Sidebar cards */
.pd-card {
    background: var(--pd-card);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    overflow: hidden;
}

.pd-card__head {
    padding: 1rem 1.15rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pd-muted);
    background: #f8fafc;
    border-bottom: 1px solid var(--pd-border);
}

.pd-card__body {
    padding: 1.15rem;
}

.pd-facts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pd-facts li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.pd-facts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pd-facts__label {
    color: var(--pd-muted);
}

.pd-facts__value {
    font-weight: 600;
    color: var(--pd-text);
    text-align: right;
}

.pd-status {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pd-status--active {
    background: #dcfce7;
    color: #166534;
}

.pd-status--inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* Tuition breakdown */
.pd-fees {
    width: 100%;
    margin-top: 0.25rem;
}

.pd-fees__title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pd-blue);
    margin-bottom: 0.5rem;
}

.pd-fees__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.8125rem;
}

.pd-fees__tag {
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 600;
    background: #eff6ff;
    color: var(--pd-blue);
}

.pd-fees__tag--pre {
    background: #f3e8ff;
    color: #6d28d9;
}

.pd-fees__tag--final {
    background: #fef3c7;
    color: #b45309;
}

.pd-fees__amount {
    font-weight: 700;
    color: var(--pd-text);
}

.pd-fees__single {
    font-size: 1rem;
    font-weight: 800;
    color: var(--pd-blue);
}

.pd-fees__note {
    font-size: 0.72rem;
    color: var(--pd-muted);
}

/* Contact person cards */
.pd-person {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pd-person__name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--pd-text);
}

.pd-person__role {
    margin: 0;
    font-size: 0.8rem;
    color: var(--pd-muted);
}

.pd-person__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--pd-blue);
    transition: color 0.15s;
}

.pd-person__link:hover {
    color: var(--pd-blue-light);
}

.pd-person__link i {
    width: 1rem;
    text-align: center;
    opacity: 0.8;
}

/* CTA band */
.pd-cta {
    background: linear-gradient(135deg, var(--pd-navy) 0%, var(--pd-blue) 100%);
    color: #fff;
    padding: 3.5rem 1rem;
    text-align: center;
}

.pd-cta__inner {
    max-width: 40rem;
    margin: 0 auto;
}

.pd-cta h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
}

.pd-cta p {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.pd-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* Related programs */
.pd-related {
    padding: 3rem 1rem 4rem;
    background: #fff;
}

.pd-related__inner {
    max-width: 80rem;
    margin: 0 auto;
}

.pd-related__head {
    text-align: center;
    margin-bottom: 2rem;
}

.pd-related__head h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--pd-text);
}

.pd-related__head h2::after {
    content: '';
    display: block;
    width: 3.5rem;
    height: 4px;
    margin: 0.65rem auto 0;
    background: linear-gradient(90deg, var(--pd-blue), var(--pd-gold));
    border-radius: 2px;
}

.pd-related__head p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--pd-muted);
}

.pd-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.pd-related-card {
    background: var(--pd-card);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    overflow: hidden;
    box-shadow: var(--pd-shadow);
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.pd-related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pd-shadow-lg);
    border-color: #bfdbfe;
}

.pd-related-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.pd-related-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pd-blue), var(--pd-blue-light));
}

.pd-related-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.pd-related-card:hover .pd-related-card__media img {
    transform: scale(1.05);
}

.pd-related-card__level {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.95);
    color: var(--pd-blue);
}

.pd-related-card__body {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pd-related-card__title {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--pd-text);
    line-height: 1.35;
    transition: color 0.15s;
}

.pd-related-card:hover .pd-related-card__title {
    color: var(--pd-blue);
}

.pd-related-card__excerpt {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    color: var(--pd-muted);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pd-related-card__cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pd-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Error states */
.pd-error {
    max-width: 36rem;
    margin: 4rem auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: #fff;
    border-radius: var(--pd-radius);
    border: 1px solid var(--pd-border);
    box-shadow: var(--pd-shadow);
}

.pd-error h1 {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--pd-text);
}

.pd-error p {
    margin: 0 0 1.5rem;
    color: var(--pd-muted);
}

.pd-featured {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #fef3c7;
    color: #92400e;
    margin-top: 0.5rem;
}
