:root {
    --npd-primary: #0b77bd;
    --npd-primary-dark: #075f98;
    --npd-sky: #eaf7ff;
    --npd-sky-soft: #f5fbff;
    --npd-text: #1f2a37;
    --npd-muted: #5f6f82;
    --npd-border: #d7e9f7;
    --npd-green: #1b9a74;
    --npd-amber: #d99021;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    color: var(--npd-text);
    background: #ffffff;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: var(--npd-primary);
    text-decoration: none;
}

a:hover {
    color: var(--npd-primary-dark);
}

.btn {
    border-radius: 8px;
    font-weight: 700;
    padding-inline: 1.15rem;
}

.btn-primary {
    background: var(--npd-primary);
    border-color: var(--npd-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--npd-primary-dark);
    border-color: var(--npd-primary-dark);
}

.btn-outline-primary {
    color: var(--npd-primary);
    border-color: var(--npd-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--npd-primary);
    border-color: var(--npd-primary);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--npd-border);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    color: var(--npd-text);
}

.site-logo,
.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.navbar-nav .nav-link {
    color: #334155;
    font-weight: 600;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--npd-primary);
}

.dropdown-menu {
    border: 1px solid var(--npd-border);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 39, 66, 0.1);
}

.home-hero {
    position: relative;
    overflow: hidden;
    background: #eef9ff;
    color: var(--npd-text);
    padding: 5rem 0 6.5rem;
}

.home-hero::before {
    content: "";
    position: absolute;
    width: 34rem;
    height: 18rem;
    top: -8rem;
    right: -8rem;
    border: 1px solid rgba(11, 119, 189, 0.12);
    transform: rotate(-8deg);
    pointer-events: none;
}

.home-hero::after {
    content: "";
    position: absolute;
    width: 18rem;
    height: 12rem;
    left: -6rem;
    bottom: -7rem;
    border: 1px solid rgba(225, 142, 47, 0.2);
    transform: rotate(10deg);
    pointer-events: none;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
    gap: 3rem;
    align-items: center;
}

.home-hero-content {
    position: relative;
    z-index: 1;
}

.home-hero-kicker {
    width: fit-content;
    border: 1px solid #c8e7f8;
    border-radius: 8px;
    background: #ffffff;
    color: var(--npd-primary-dark);
    font-weight: 700;
    padding: 0.48rem 0.75rem;
}

.home-hero h1 {
    max-width: 680px;
    margin: 1rem 0 0.75rem;
    color: #123a5a;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    font-weight: 700;
    line-height: 1.05;
}

.home-hero-subtitle {
    margin-bottom: 1rem;
    color: #c66f1b;
    font-size: 1.3rem;
    font-weight: 700;
}

.home-hero-copy {
    max-width: 700px;
    color: #455a70;
    font-size: 1.08rem;
    line-height: 1.75;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.8rem;
}

.home-hero-student-name {
    max-width: 260px;
    color: #123a5a;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.home-hero-logout {
    display: inline-flex;
    margin: 0;
}

.home-hero-actions .btn-light {
    border-color: #c8e7f8;
    background: #ffffff;
    color: #123a5a;
}

.home-hero-actions .btn-light:hover,
.home-hero-actions .btn-light:focus {
    border-color: var(--npd-primary);
    color: var(--npd-primary);
}

.home-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

    .home-hero-visual img {
        max-width: 100%;
        height: auto;
        border: none;
        border-radius: 0;
        box-shadow: none;
        object-fit: contain;
    }

.home-hero-project-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    background: #fff7ea;
    color: #b35a00;
    border-radius: 12px;
    padding: 8px 14px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.home-featured-links {
    position: relative;
    z-index: 2;
    margin-top: -3rem;
    padding-bottom: 1rem;
}

.home-featured-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-featured-link {
    display: grid;
    min-height: 132px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--npd-border);
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff, #f8fcff);
    padding: 1.35rem;
    box-shadow: 0 14px 32px rgba(15, 39, 66, 0.1);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.home-featured-link--tuition {
    background: linear-gradient(135deg, #ffffff, #fff8ee);
}

.home-featured-link--calendar {
    background: linear-gradient(135deg, #ffffff, #eef8ff);
}

.home-featured-link--online {
    background: linear-gradient(135deg, #ffffff, #eefbf8);
}

.home-featured-link:hover,
.home-featured-link:focus {
    border-color: #83bde3;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 39, 66, 0.14);
}

.home-featured-icon {
    display: inline-flex;
    width: 3.6rem;
    height: 3.6rem;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.35rem;
    font-weight: 800;
}

.home-featured-link--tuition .home-featured-icon {
    background: #ffead0;
    color: #b75b11;
}

.home-featured-link--calendar .home-featured-icon {
    background: #dcefff;
    color: #126ca5;
}

.home-featured-link--online .home-featured-icon {
    background: #d9f4ed;
    color: #08765d;
}

.home-featured-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.home-featured-copy strong {
    color: #15324f;
    font-size: 1.15rem;
    font-weight: 700;
}

.home-featured-copy small {
    margin-top: 0.45rem;
    color: var(--npd-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.home-featured-arrow {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #c6e0f1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #174c70;
    font-size: 1.45rem;
    line-height: 1;
}

.hero-section {
    overflow: hidden;
    padding: 5.5rem 0 4rem;
    background:
        radial-gradient(circle at 88% 18%, rgba(27, 154, 116, 0.12), transparent 24rem),
        linear-gradient(135deg, #ffffff 0%, var(--npd-sky) 100%);
}

.hero-badge,
.section-heading span,
.article-body span,
.news-card span {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--npd-border);
    color: var(--npd-primary-dark);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.45rem 0.7rem;
}

.hero-title {
    max-width: 760px;
    margin: 1rem 0 0.75rem;
    color: #0f2742;
    font-size: clamp(2.35rem, 5vw, 4.7rem);
    font-weight: 700;
    line-height: 1.03;
}

.hero-subtitle {
    margin-bottom: 1rem;
    color: var(--npd-green);
    font-size: 1.35rem;
    font-weight: 600;
}

.hero-copy {
    max-width: 680px;
    color: var(--npd-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.7rem;
}

.hero-panel {
    border: 1px solid var(--npd-border);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 39, 66, 0.12);
}

.hero-panel-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--npd-border);
}

.hero-panel-header span {
    background: var(--npd-sky-soft);
    color: var(--npd-primary-dark);
    font-weight: 700;
    letter-spacing: 0;
    padding: 1rem;
    text-align: center;
}

.hero-panel-body {
    padding: 2rem;
}

.hero-panel-body h2 {
    margin-bottom: 0.8rem;
    font-size: 1.55rem;
    font-weight: 600;
}

.hero-panel-body p {
    color: var(--npd-muted);
    line-height: 1.65;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hero-stats div {
    min-height: 96px;
    border: 1px solid var(--npd-border);
    border-radius: 8px;
    background: var(--npd-sky-soft);
    padding: 1rem 0.7rem;
}

.hero-stats strong {
    display: block;
    color: var(--npd-primary);
    font-size: 1.55rem;
    line-height: 1;
}

.hero-stats span {
    display: block;
    margin-top: 0.45rem;
    color: var(--npd-muted);
    font-size: 0.88rem;
}

.section-block,
.student-section,
.resources-section,
.about-section {
    padding: 4.5rem 0;
}

.student-section,
.resources-section {
    background: var(--npd-sky-soft);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 2.2rem;
    text-align: center;
}

.section-heading h2 {
    margin: 0.85rem 0 0;
    color: #15324f;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
}

.section-heading p {
    margin: 1rem auto 0;
    color: var(--npd-muted);
    line-height: 1.7;
}

.course-card,
.resource-card,
.news-card,
.quick-entry-card,
.student-action,
.contact-box {
    height: 100%;
    border: 1px solid var(--npd-border);
    border-radius: 8px;
    background: #ffffff;
}

.course-card,
.resource-card,
.quick-entry-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.55rem;
    box-shadow: 0 14px 34px rgba(15, 39, 66, 0.07);
}

.course-tag {
    width: fit-content;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #edf8f4;
    color: #107658;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.42rem 0.65rem;
}

.course-card h3,
.resource-card h3,
.quick-entry-card h3,
.news-card h3,
.contact-box h3 {
    color: #15324f;
    font-size: 1.2rem;
    font-weight: 600;
}

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

.course-card h3 a:hover,
.course-card h3 a:focus {
    color: var(--npd-primary);
}

.content-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: var(--npd-sky-soft);
}

.course-card p,
.resource-card p,
.quick-entry-card p,
.article-body p,
.about-section p,
.contact-box p {
    color: var(--npd-muted);
    line-height: 1.65;
}

.course-card p,
.resource-card p,
.quick-entry-card p {
    flex: 1;
}

.course-card a,
.resource-card a,
.quick-entry-card a {
    display: inline-block;
    margin-top: 0.4rem;
}

.course-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.3rem;
}

.course-card-actions a {
    margin-top: 0;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.curriculum-heading {
    max-width: 900px;
}

.curriculum-heading h2 {
    letter-spacing: 0;
}

.curriculum-list-item {
    display: grid;
    min-height: 92px;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    min-width: 0;
    border: 1px solid #cce6f5;
    border-radius: 8px;
    background: #ffffff;
    color: #15324f;
    padding: 1rem;
    box-shadow: 0 8px 22px rgba(15, 67, 105, 0.07);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.curriculum-list-item:hover,
.curriculum-list-item:focus {
    border-color: #7ebce2;
    color: var(--npd-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(15, 67, 105, 0.12);
}

.curriculum-list-number {
    display: inline-flex;
    width: 2.65rem;
    height: 2.65rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffe7cc;
    color: #a9500c;
    font-size: 0.86rem;
    font-weight: 800;
}

.curriculum-list-icon {
    color: #4f91bb;
    font-size: 1.15rem;
}

.curriculum-list-item strong {
    min-width: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.curriculum-list-arrow {
    color: #4f91bb;
    font-size: 1.5rem;
}

.curriculum-all-action {
    margin-top: 2rem;
    text-align: center;
}

.public-news-section {
    background: #ffffff;
}

.public-news-grid,
.content-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.public-news-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--npd-border);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 39, 66, 0.06);
}

.public-news-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: var(--npd-sky-soft);
    color: var(--npd-primary-dark);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.public-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-news-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}

.public-news-date,
.content-card-meta {
    color: var(--npd-muted);
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
}

.content-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
}

.public-news-content h3,
.public-news-content h2 {
    color: #15324f;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.65rem;
}

.public-news-content h2 {
    font-size: 1.2rem;
}

.public-news-content h3 a,
.public-news-content h2 a {
    color: inherit;
    text-decoration: none;
}

.public-news-content h3 a:hover,
.public-news-content h2 a:hover {
    color: var(--npd-primary);
}

.public-news-content p {
    flex: 1;
    color: var(--npd-muted);
    line-height: 1.6;
    margin-bottom: 0.9rem;
}

.public-news-more {
    color: var(--npd-primary);
    font-weight: 700;
    text-decoration: none;
}

.content-list-hero {
    padding: 3.75rem 0 2.75rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--npd-sky) 100%);
    border-bottom: 1px solid var(--npd-border);
}

.content-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--npd-muted);
    font-size: 0.95rem;
}

.content-breadcrumb a {
    color: var(--npd-primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.content-list-heading {
    max-width: 820px;
}

.content-list-heading h1 {
    color: #0f2742;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.content-list-heading p {
    color: var(--npd-muted);
    font-size: 1.08rem;
    line-height: 1.7;
    margin: 0;
}

.content-list-section {
    padding: 3rem 0;
    background: #ffffff;
}

.content-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.content-filter-bar input {
    flex: 1;
    min-width: min(100%, 280px);
    border: 1px solid var(--npd-border);
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
}

.content-list-card {
    box-shadow: none;
}

.content-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 991.98px) {
    .public-news-grid,
    .content-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .public-news-grid,
    .content-list-grid {
        grid-template-columns: 1fr;
    }
}

.course-detail-hero {
    padding: 4.75rem 0 3.25rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--npd-sky) 100%);
    border-bottom: 1px solid var(--npd-border);
}

.course-detail-heading {
    max-width: 880px;
}

.course-detail-heading h1 {
    margin: 0.8rem 0 1rem;
    color: #0f2742;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
}

.course-detail-heading p {
    margin: 0;
    color: var(--npd-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.course-back-link {
    display: inline-flex;
    border: 1px solid var(--npd-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--npd-primary-dark);
    font-weight: 700;
    padding: 0.45rem 0.7rem;
}

.course-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.course-detail-meta span {
    border: 1px solid var(--npd-border);
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.38rem 0.65rem;
}

.course-detail-section {
    padding: 3.5rem 0 4.5rem;
    background: #ffffff;
}

.course-detail-shell {
    max-width: 980px;
    margin: 0 auto;
}

.course-detail-body {
    color: #26364a;
    font-size: 1.03rem;
    line-height: 1.75;
}

.course-detail-body h2,
.course-detail-body h3,
.course-detail-body h4 {
    margin-top: 1.6rem;
    color: #15324f;
    font-weight: 700;
}

.course-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.content-detail-thumb {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.75rem;
    background: var(--npd-sky-soft);
}

.course-empty-message {
    border: 1px solid var(--npd-border);
    border-radius: 8px;
    background: var(--npd-sky-soft);
    color: #26364a;
    padding: 1.5rem;
}

.course-empty-message h2 {
    color: #15324f;
    font-size: 1.35rem;
}

.course-detail-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2.5rem;
    border: 1px solid var(--npd-border);
    border-radius: 8px;
    background: #f8fcff;
    padding: 1.5rem;
}

.course-detail-cta h2 {
    color: #15324f;
    font-size: 1.35rem;
    font-weight: 700;
}

.course-detail-cta p {
    margin-bottom: 0;
    color: var(--npd-muted);
    line-height: 1.65;
}

.course-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.student-action {
    display: flex;
    min-height: 86px;
    align-items: center;
    padding: 1.2rem;
    color: #15324f;
    font-weight: 600;
}

.student-action-link {
    justify-content: center;
    min-height: 96px;
    color: #15324f;
    text-align: center;
    font-size: 1.05rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.student-action-link:hover,
.student-action-link:focus {
    border-color: var(--npd-primary);
    color: var(--npd-primary-dark);
    transform: translateY(-2px);
}

.student-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.student-action.muted {
    color: var(--npd-amber);
    background: #fff8ed;
}

.featured-article {
    height: 100%;
    border: 1px solid var(--npd-border);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 39, 66, 0.08);
}

.article-image {
    display: flex;
    min-height: 240px;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(11, 119, 189, 0.88), rgba(27, 154, 116, 0.82)),
        var(--npd-primary);
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
}

.article-body {
    padding: 1.5rem;
}

.article-body h3 {
    margin: 1rem 0 0.7rem;
    color: #15324f;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.25;
}

.news-card {
    min-height: 172px;
    padding: 1.2rem;
}

.news-card h3 {
    margin-top: 0.9rem;
    line-height: 1.35;
}

.resource-card {
    min-height: 210px;
}

.about-section {
    background: #ffffff;
}

.npd-highlight-panel {
    height: 100%;
    border: 1px solid var(--npd-border);
    border-radius: 8px;
    background: #f8fcff;
    padding: 1.5rem;
}

.npd-highlight-panel ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #26364a;
    line-height: 1.75;
}

.npd-highlight-panel li + li {
    margin-top: 0.45rem;
}

.contact-section {
    padding: 4.5rem 0;
    background: #ffffff;
}

.contact-box {
    padding: 1.5rem;
    background: linear-gradient(180deg, #ffffff, var(--npd-sky-soft));
}

.contact-list {
    display: grid;
    gap: 0.55rem;
    color: #26364a;
    line-height: 1.55;
}

.contact-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.25rem;
}

.site-footer {
    border-top: 1px solid var(--npd-border);
    background: #f8fcff;
    color: #334155;
}

.site-footer h2,
.footer-title {
    color: #15324f;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.footer-links a {
    font-weight: 700;
}

.auth-section {
    min-height: calc(100vh - 180px);
    padding: 4.5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--npd-sky) 100%);
}

.auth-card {
    max-width: 460px;
    margin: 0 auto;
    border: 1px solid var(--npd-border);
    border-radius: 8px;
    background: #ffffff;
    padding: 2rem;
    box-shadow: 0 18px 44px rgba(15, 39, 66, 0.1);
}

.auth-heading {
    margin-bottom: 1.5rem;
}

.auth-heading span {
    display: inline-flex;
    border: 1px solid var(--npd-border);
    border-radius: 8px;
    color: var(--npd-primary-dark);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.4rem 0.65rem;
}

.auth-heading h1 {
    margin: 0.9rem 0 0.5rem;
    color: #15324f;
    font-size: 1.8rem;
    font-weight: 600;
}

.auth-heading p {
    margin-bottom: 0;
    color: var(--npd-muted);
}

.registration-page {
    padding: 3rem 0 4.5rem;
    background: #f5fbff;
}

.registration-shell {
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid var(--npd-border);
    border-radius: 8px;
    background: #ffffff;
    padding: 2rem;
    box-shadow: 0 16px 40px rgba(15, 39, 66, 0.08);
}

.registration-heading {
    margin-bottom: 1.5rem;
}

.registration-heading div {
    width: fit-content;
    border: 1px solid var(--npd-border);
    border-radius: 8px;
    color: var(--npd-primary-dark);
    font-weight: 700;
    padding: 0.4rem 0.65rem;
}

.registration-heading h1 {
    margin: 0.9rem 0 0.55rem;
    color: #15324f;
    font-size: 1.95rem;
    font-weight: 700;
}

.registration-heading p {
    margin-bottom: 0;
    color: var(--npd-muted);
}

.registration-form {
    display: grid;
    gap: 0.85rem;
}

.registration-row {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.registration-row > label {
    margin-top: 0.45rem;
    color: #15324f;
    font-weight: 700;
}

.registration-row .text-danger {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

.course-checkbox-panel {
    height: 420px;
    overflow-y: auto;
    border: 1px solid var(--npd-border);
    border-radius: 8px;
    background: #fbfdff;
    padding: 0.75rem;
}

.course-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
    margin-bottom: 0.58rem;
    color: #26364a;
    line-height: 1.4;
}

.course-option input {
    margin-top: 0.22rem;
}

.registration-check {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    min-height: 38px;
}

.registration-actions {
    padding-left: 246px;
    margin-top: 0.8rem;
}

.registration-thanks {
    text-align: center;
}

.registration-thanks .registration-heading div {
    margin: 0 auto;
}

.student-avatar-sm {
    width: 48px;
    height: 48px;
    border: 1px solid var(--npd-border);
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
}

.student-avatar-lg {
    width: 120px;
    height: 120px;
    border: 1px solid var(--npd-border);
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
}

.admin-students-table th,
.admin-students-table td {
    vertical-align: middle;
}

.student-courses-cell {
    min-width: 220px;
    max-width: 360px;
    white-space: normal;
}

@media (max-width: 991.98px) {
    .home-hero {
        padding: 4rem 0 6rem;
    }

    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .home-featured-links-grid,
    .curriculum-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-section {
        padding-top: 4rem;
    }

    .navbar .btn {
        width: fit-content;
        margin-top: 0.75rem;
    }

    .student-actions-grid {
        grid-template-columns: 1fr;
    }

    .course-detail-cta {
        grid-template-columns: 1fr;
    }

    .course-detail-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .home-hero {
        padding: 3rem 0 5rem;
    }

    .home-hero-actions .btn {
        width: 100%;
    }

    .home-featured-links {
        margin-top: -2rem;
    }

    .home-featured-links-grid,
    .curriculum-grid {
        grid-template-columns: 1fr;
    }

    .home-featured-link {
        min-height: 0;
    }

    .home-hero-project-badge {
        left: 1rem;
        bottom: 1rem;
        max-width: calc(100% - 2rem);
        font-size: 0.82rem;
    }

    .course-card-actions,
    .course-card-actions .btn,
    .course-detail-actions,
    .course-detail-actions .btn {
        width: 100%;
    }

    .hero-section,
    .section-block,
    .student-section,
    .resources-section,
    .about-section,
    .contact-section {
        padding: 3rem 0;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-panel-body,
    .course-card,
    .resource-card,
    .article-body,
    .contact-box,
    .registration-shell {
        padding: 1.25rem;
    }

    .registration-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .registration-row > label {
        margin-top: 0;
    }

    .registration-actions {
        padding-left: 0;
    }

    .registration-actions .btn {
        width: 100%;
    }
}
