/* =========================
   DS Nursing Academy - Public Styles
   Mobile-first design
========================= */

:root {
    --brand-primary: #0098b8;
    --brand-primary-dark: #04718a;
    --brand-accent: #b88601;
    --brand-accent-dark: #8e6900;
    --brand-bg: #f6fbfd;
    --brand-surface: #ffffff;
    --brand-text: #1d2b36;
    --brand-muted: #6c7a86;
    --brand-border: #dbe7ee;
    --brand-success: #198754;
    --brand-danger: #dc3545;
    --shadow-soft: 0 10px 30px rgba(15, 38, 54, 0.08);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--brand-bg);
    color: var(--brand-text);
    font-size: 15px;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.public-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-main {
    flex: 1;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

/* =========================
   Navbar
========================= */
.site-navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    color: var(--brand-text);
    font-size: 1rem;
}

.site-brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
}

.navbar .nav-link {
    color: var(--brand-text);
    font-weight: 600;
    padding: 0.7rem 0.9rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--brand-primary);
}

/* =========================
   Buttons
========================= */
.btn-brand-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    border: none;
    color: #fff;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.btn-brand-primary:hover {
    color: #fff;
    opacity: 0.95;
}

.btn-brand-outline {
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    border-radius: 999px;
    padding: 0.8rem 1.15rem;
    font-weight: 700;
    background: #fff;
}

.btn-brand-outline:hover {
    background: var(--brand-primary);
    color: #fff;
}

.btn-brand-accent {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-dark));
    border: none;
    color: #fff;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.btn-brand-accent:hover {
    color: #fff;
    opacity: 0.95;
}

/* =========================
   Sections
========================= */
.section-block {
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: var(--brand-text);
}

.section-subtitle {
    color: var(--brand-muted);
    margin-bottom: 1rem;
}

/* =========================
   Hero / Intro
========================= */
.hero-card {
    background: linear-gradient(135deg, rgba(0, 152, 184, 0.12), rgba(184, 134, 1, 0.10));
    border: 1px solid rgba(0, 152, 184, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 152, 184, 0.12);
    color: var(--brand-primary-dark);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.hero-title {
    font-size: 1.55rem;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.hero-text {
    color: var(--brand-muted);
    margin-bottom: 1rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* =========================
   Cards
========================= */
.category-card,
.class-card,
.info-card,
.contact-card {
    background: var(--brand-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--brand-border);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
    height: 100%;
}

.category-card-icon,
.class-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.85rem;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
}

.category-card h3,
.class-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.category-card p,
.class-card p {
    color: var(--brand-muted);
    margin-bottom: 0.85rem;
}

.class-price {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 800;
    color: var(--brand-accent-dark);
    margin-bottom: 0.85rem;
}

.class-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
}

.class-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #eef7fa;
    color: var(--brand-primary-dark);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
}

/* =========================
   Lists / details
========================= */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    color: var(--brand-text);
}

.feature-list i {
    color: var(--brand-success);
    margin-top: 0.2rem;
}

/* =========================
   Forms
========================= */
.form-card {
    background: var(--brand-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--brand-border);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
}

.form-label {
    font-weight: 700;
    color: var(--brand-text);
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    border-radius: 14px;
    min-height: 48px;
    border-color: #d8e4eb;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 152, 184, 0.12);
}

.upload-helper {
    font-size: 0.85rem;
    color: var(--brand-muted);
    margin-top: 0.35rem;
}

/* =========================
   Footer
========================= */
.site-footer {
    background: #0f2531;
    color: #d9e4ea;
    padding: 1.5rem 0;
    margin-top: auto;
}

.site-footer-title {
    color: #fff;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.site-footer p,
.site-footer a {
    color: #d9e4ea;
    font-size: 0.92rem;
}

/* =========================
   Utility
========================= */
.text-muted-soft {
    color: var(--brand-muted);
}

.rounded-4xl {
    border-radius: 24px;
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--brand-muted);
}

/* =========================
   Mobile-first spacing
========================= */
.mobile-stack-gap > * + * {
    margin-top: 0.9rem;
}

/* =========================
   Responsive enhancement
========================= */
@media (min-width: 768px) {
    body {
        font-size: 16px;
    }

    .public-main {
        padding-top: 1.5rem;
        padding-bottom: 3rem;
    }

    .hero-card {
        padding: 2rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .category-card,
    .class-card,
    .info-card,
    .contact-card,
    .form-card {
        padding: 1.25rem;
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
}
/* =========================
   Detail / Contact polish
========================= */
.class-detail-card {
    padding: 1.2rem;
}

.class-detail-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-direction: column;
}

.detail-category-label {
    display: inline-flex;
    align-items: center;
    background: #eef7fa;
    color: var(--brand-primary-dark);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.contact-card .feature-list li span strong {
    color: var(--brand-text);
}

@media (min-width: 768px) {
    .class-detail-card {
        padding: 1.5rem;
    }

    .class-detail-header {
        flex-direction: row;
        align-items: center;
    }
}

/* =========================
   Registration success polish
========================= */
.form-card .fw-bold {
    word-break: break-word;
}
/* =========================
   Student Tracking
========================= */

.student-ref-box {
    background: #f7fcfc;
    border: 1px solid var(--brand-border);
    border-radius: 22px;
    padding: 1.2rem;
}

.student-security-note {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    background: #eef7fa;
    color: var(--brand-primary-dark);
    border: 1px solid #d2edf4;
    border-radius: 16px;
    padding: 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.student-security-note i {
    margin-top: 0.2rem;
}

.student-status-hero {
    background: linear-gradient(135deg, #10272e, #1f4a4d);
    color: #fff;
    border-radius: 24px;
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-direction: column;
}

.student-status-hero h1 {
    font-size: 1.55rem;
    font-weight: 900;
    margin: 0.75rem 0 0.35rem;
}

.student-status-hero p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
}

.student-status-ref {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 0.95rem;
}

.student-status-ref span,
.student-payment-item span {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-muted);
    margin-bottom: 0.2rem;
}

.student-status-ref span {
    color: rgba(255, 255, 255, 0.65);
}

.student-status-ref strong {
    display: block;
    color: #fff4cf;
    font-weight: 900;
}

.student-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 800;
}

.student-status-badge.status-pending_review {
    background: #fff3cf;
    color: #936b00;
}

.student-status-badge.status-approved,
.student-status-badge.status-active {
    background: #ddf8f9;
    color: #087d91;
}

.student-status-badge.status-completed {
    background: #e2f7ea;
    color: #167346;
}

.student-status-badge.status-rejected,
.student-status-badge.status-cancelled {
    background: #ffe6e9;
    color: #ac2435;
}

.student-status-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.student-status-list li {
    border-bottom: 1px solid var(--brand-border);
    padding: 0.85rem 0;
}

.student-status-list li:last-child {
    border-bottom: none;
}

.student-status-list span {
    display: block;
    color: var(--brand-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.student-status-list strong {
    display: block;
    color: var(--brand-text);
    font-weight: 850;
}

.student-progress-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #e5f1f1;
}

.student-progress-track div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
}

.student-progress-text {
    margin-top: 0.75rem;
    margin-bottom: 0;
    color: var(--brand-muted);
    font-weight: 700;
}

.student-payment-history {
    display: grid;
    gap: 0.75rem;
}

.student-payment-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: #f7fcfc;
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    padding: 0.9rem;
}

.student-payment-item strong {
    display: block;
    color: var(--brand-text);
    font-weight: 850;
}

@media (min-width: 768px) {
    .student-status-hero {
        flex-direction: row;
        align-items: center;
        padding: 1.5rem;
    }

    .student-status-hero h1 {
        font-size: 2rem;
    }

    .student-status-ref {
        min-width: 240px;
    }
}
/* =========================
   Student Status Page Fix
========================= */

.student-status-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.5rem 0 2.5rem;
}

.student-status-hero.clean {
    margin-bottom: 1.25rem;
}

.student-status-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 1rem;
}

.student-status-card {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: 22px;
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    min-height: auto !important;
}

.student-card-header {
    margin-bottom: 1rem;
}

.student-card-header h2 {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
    color: var(--brand-text);
}

.student-card-header p {
    color: var(--brand-muted);
    margin-bottom: 0;
}

.student-detail-list {
    display: grid;
    gap: 0.75rem;
}

.student-detail-list div {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--brand-border);
}

.student-detail-list div:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.student-detail-list span {
    display: block;
    color: var(--brand-muted);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.18rem;
}

.student-detail-list strong {
    display: block;
    color: var(--brand-text);
    font-weight: 850;
}

.student-progress-panel {
    background: #f7fcfc;
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    padding: 1rem;
}

.student-progress-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.student-progress-top span {
    color: var(--brand-muted);
    font-weight: 800;
}

.student-progress-top strong {
    color: var(--brand-primary-dark);
    font-weight: 900;
}

.student-progress-note {
    margin-top: 0.85rem;
    margin-bottom: 0;
    font-weight: 750;
    font-size: 0.9rem;
}

.student-progress-note.warning {
    color: #936b00;
}

.student-progress-note.success {
    color: #167346;
}

.student-empty-payment {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f7fcfc;
    border: 1px dashed var(--brand-border);
    border-radius: 18px;
    padding: 1rem;
    min-height: auto !important;
}

.student-empty-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.student-empty-payment h3 {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.student-empty-payment p {
    color: var(--brand-muted);
    margin-bottom: 0;
}

.student-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.student-payment-item {
    display: grid;
    grid-template-columns: 0.6fr 1fr 0.8fr 1.2fr;
    gap: 1rem;
    align-items: center;
}

footer,
.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

@media (max-width: 991.98px) {
    .student-status-grid {
        grid-template-columns: 1fr;
    }

    .student-payment-item {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575.98px) {
    .student-status-page {
        padding: 1rem 0 2rem;
    }

    .student-status-card {
        padding: 1rem;
        border-radius: 18px;
    }

    .student-empty-payment {
        align-items: flex-start;
    }

    .student-payment-item {
        grid-template-columns: 1fr;
    }

    .student-status-actions {
        flex-direction: column;
    }

    .student-status-actions .btn {
        width: 100%;
    }
}
.student-payment-submit-form {
    background: #f7fcfc;
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    padding: 1rem;
}

.student-next-payment-box {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: #eef7fa;
    border: 1px solid #d2edf4;
    color: var(--brand-primary-dark);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.student-next-payment-box span {
    font-weight: 700;
}

.student-next-payment-box strong {
    font-weight: 900;
}
.class-description-rich {
    color: var(--brand-muted);
    line-height: 1.75;
}

.class-description-rich h3,
.class-description-rich h4 {
    color: var(--brand-text);
    font-weight: 900;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.class-description-rich ul,
.class-description-rich ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.class-description-rich li {
    margin-bottom: 0.35rem;
}

.class-description-rich p {
    margin-bottom: 0.85rem;
}

/* =========================
   Contact Page Support Layout
========================= */

.contact-hero {
    background:
        radial-gradient(circle at top right, rgba(0, 152, 184, 0.18), transparent 280px),
        radial-gradient(circle at bottom left, rgba(184, 134, 1, 0.16), transparent 260px),
        linear-gradient(135deg, #effbfc, #fffdf4);
    border: 1px solid var(--brand-border);
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.contact-hero h1 {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--brand-text);
    margin: 0.8rem 0 0.5rem;
}

.contact-hero p {
    color: var(--brand-muted);
    margin-bottom: 0;
    max-width: 900px;
}

.contact-info-list,
.payment-info-list {
    display: grid;
    gap: 0.85rem;
}

.contact-info-item,
.payment-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: #f7fcfc;
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    padding: 0.9rem;
}

.contact-info-icon,
.payment-info-item i {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item span,
.payment-info-item span {
    display: block;
    color: var(--brand-muted);
    font-size: 0.82rem;
    font-weight: 750;
    margin-bottom: 0.18rem;
}

.contact-info-item strong,
.payment-info-item strong,
.contact-info-item a {
    color: var(--brand-text);
    font-weight: 850;
    text-decoration: none;
    word-break: break-word;
}

.contact-info-item a:hover {
    color: var(--brand-primary);
}

@media (max-width: 575.98px) {
    .contact-hero {
        padding: 1.15rem;
        border-radius: 20px;
    }

    .contact-hero h1 {
        font-size: 1.5rem;
    }

    .contact-info-item,
    .payment-info-item {
        border-radius: 16px;
    }
}