/* 
   Faculty of Nursing, Naresuan University
   Training Management System - Stylesheet
   Theme: Orange (ส้ม), Eggshell/Cream (ไข่), White (ขาว)
   Inspired by Ramacnec.com with Modern UX
*/

@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Primary Orange Palette */
    --theme-orange: #F26522;
    --theme-orange-hover: #D9531E;
    --theme-orange-dark: #C2410C;
    --theme-cta: #B93E0A;
    --theme-cta-hover: #9A3412;
    --theme-orange-light: #FFF7ED;
    --theme-orange-focus: rgba(185, 62, 10, 0.25);
    
    /* Eggshell / Warm Cream Palette (สีไข่ / นวลไข่) */
    --theme-egg-50: #FFFDF7;
    --theme-egg-100: #FFFBEB;
    --theme-egg-200: #FEF3C7;
    --theme-egg-300: #FDE68A;
    --theme-egg-border: #FED7AA;
    
    /* White & Neutrals */
    --theme-white: #FFFFFF;
    --theme-bg: #FAF8F5;
    --theme-border: #E5E7EB;
    --theme-border-subtle: #F3F4F6;
    
    /* Text Colors (WCAG AA Verified >= 4.5:1) */
    --theme-text-dark: #1F2937;
    --theme-text-body: #4B5563;
    --theme-text-muted: #6B7280;
    --theme-text-light: #6B7280;

    /* Status Colors */
    --status-success: #047857;
    --status-success-bg: #ECFDF5;
    --status-warning: #B45309;
    --status-warning-bg: #FFFBEB;
    --status-danger: #B91C1C;
    --status-danger-bg: #FEF2F2;
    --status-info: #0369A1;
    --status-info-bg: #F0F9FF;

    /* Shadow system */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-orange: 0 4px 14px 0 rgba(185, 62, 10, 0.30);
}

/* Base Setup */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--theme-bg);
    color: var(--theme-text-body);
    font-size: 1rem;
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    letter-spacing: -0.01em;
}

main {
    flex: 1;
}

/* Keyboard Focus Accessibility */
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--theme-cta);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--theme-orange-focus);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 2000;
    background: var(--theme-cta);
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 12px;
}

/* Fluid Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    color: var(--theme-text-dark);
    font-weight: 600;
}

h1 {
    font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.125rem);
    line-height: 1.32;
}

h2 {
    font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
    line-height: 1.38;
}

h3 {
    font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
    line-height: 1.42;
}

.text-orange {
    color: var(--theme-orange-dark) !important;
}

.bg-orange {
    background-color: var(--theme-orange) !important;
}

.bg-egg {
    background-color: var(--theme-egg-100) !important;
}

.bg-egg-soft {
    background-color: var(--theme-egg-50) !important;
}

.border-egg {
    border-color: var(--theme-egg-border) !important;
}

.border-orange {
    border-color: var(--theme-orange) !important;
}

/* -------------------------------------------------------------
   TOP CONTACT BAR (Inspired by Ramacnec Image 1)
   ------------------------------------------------------------- */
.top-contact-bar {
    background-color: var(--theme-white);
    border-bottom: 1px solid #F1F5F9;
    padding: 0.65rem 0;
}

.brand-logo-img {
    height: 52px;
    width: auto;
    max-width: 65px;
    object-fit: contain;
}

.brand-faculty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    line-height: 1.25;
}

.brand-faculty-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--theme-orange-dark);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.admin-login-subtle {
    font-size: 0.78rem;
    color: #64748B !important;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    background-color: #F8FAFC;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.admin-login-subtle:hover {
    color: var(--theme-orange) !important;
    border-color: var(--theme-orange);
    background-color: #FFF7ED;
}

.top-contact-item {
    font-size: 0.85rem;
    color: var(--theme-text-body);
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-contact-item:hover {
    color: var(--theme-orange);
}

.top-contact-item i {
    color: var(--theme-orange);
    font-size: 0.95rem;
}

/* -------------------------------------------------------------
   MAIN NAVBAR (Ramacnec Clean White / Egg Theme)
   ------------------------------------------------------------- */
.navbar-ramacnec {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid #F3F4F6;
    border-bottom: 2px solid var(--theme-egg-border);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.navbar-ramacnec.is-scrolled {
    background-color: rgba(255, 255, 255, 0.99);
    box-shadow: 0 6px 20px rgba(31, 41, 55, 0.09);
}

.navbar-ramacnec .nav-link {
    color: var(--theme-text-dark) !important;
    font-weight: 500;
    font-size: 0.94rem;
    padding: 0.9rem 1.05rem !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: all 0.2s ease-in-out;
}

.navbar-ramacnec .nav-link:hover,
.navbar-ramacnec .nav-link:focus {
    color: var(--theme-orange-dark) !important;
    background-color: var(--theme-egg-100);
}

.navbar-ramacnec .nav-link.active {
    color: var(--theme-cta) !important;
    font-weight: 600;
    background-color: var(--theme-egg-100);
    border-bottom: 3px solid var(--theme-cta);
}

.navbar-ramacnec .nav-link.btn-ecert {
    color: #9A3412 !important;
    background-color: var(--theme-egg-200);
    border-radius: 6px;
    margin: 0.4rem 0.25rem;
    padding: 0.5rem 0.85rem !important;
    font-weight: 600;
    border: 1px solid var(--theme-egg-border);
}

.navbar-ramacnec .nav-link.btn-ecert:hover {
    background-color: var(--theme-cta);
    color: #ffffff !important;
    border-color: var(--theme-cta);
}

.navbar-ramacnec .btn-admin-login {
    background-color: var(--theme-text-dark);
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    transition: all 0.2s;
}

.navbar-ramacnec .btn-admin-login:hover {
    background-color: var(--theme-cta);
    color: #ffffff !important;
}

/* -------------------------------------------------------------
   BUTTONS (Orange, Egg, White - WCAG AA >= 4.5:1)
   ------------------------------------------------------------- */
.btn-nurse {
    background-color: var(--theme-cta);
    border-color: var(--theme-cta);
    color: #ffffff;
    font-weight: 600;
    min-height: 44px;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-nurse:hover,
.btn-nurse:focus {
    background-color: var(--theme-cta-hover);
    border-color: var(--theme-cta-hover);
    color: #ffffff;
    box-shadow: var(--shadow-orange);
}

.btn-nurse-outline {
    background-color: transparent;
    border: 1.5px solid var(--theme-orange-dark);
    color: var(--theme-orange-dark);
    font-weight: 600;
    min-height: 44px;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-nurse-outline:hover,
.btn-nurse-outline:focus {
    background-color: var(--theme-cta);
    color: #ffffff;
    border-color: var(--theme-cta);
    box-shadow: var(--shadow-orange);
}

.btn-register-action {
    background-color: var(--theme-cta);
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 42px;
    padding: 0.5rem 1.15rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-register-action:hover {
    background-color: var(--theme-cta-hover);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(185, 62, 10, 0.35);
}

/* -------------------------------------------------------------
   QUICK SERVICE SHORTCUT CARDS (Inspired by Nu Nurse 2027 Image)
   Square/Rounded Boxes with Orange Border and Orange Icons
   ------------------------------------------------------------- */
.quick-services-section {
    padding: 1.5rem 0 2rem;
}

.quick-services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

@media (max-width: 991px) {
    .quick-services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .quick-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.quick-service-box {
    background: #FFFFFF;
    border: 1.5px solid var(--theme-orange);
    border-radius: 12px;
    padding: 1.25rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 125px;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease-in-out;
}

.quick-service-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(242, 101, 34, 0.2);
    border-color: var(--theme-orange-dark);
    background-color: #FFFDF9;
}

.quick-service-icon {
    font-size: 2.25rem;
    color: var(--theme-orange);
    margin-bottom: 0.65rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    transition: transform 0.2s ease;
}

.quick-service-box:hover .quick-service-icon {
    transform: scale(1.1);
}

.quick-service-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--theme-text-dark);
    line-height: 1.35;
    margin: 0;
}

/* -------------------------------------------------------------
   PEACH SECTION BANNER (Matches Nu Nurse 2027: "หลักสูตรที่เปิดสอน")
   ------------------------------------------------------------- */
.section-banner-peach {
    background: linear-gradient(180deg, #FDECE2 0%, #FDF1EA 100%);
    padding: 1.85rem 0 1.6rem;
    margin: 0 0 2.25rem 0;
    border-top: 1px solid rgba(242, 101, 34, 0.18);
    border-bottom: 1px solid rgba(242, 101, 34, 0.18);
    text-align: center;
}

.section-banner-title {
    font-size: clamp(1.45rem, 1.15rem + 1.25vw, 2.15rem);
    font-weight: 800;
    color: #9A3412;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.section-banner-subtitle {
    font-size: 0.95rem;
    color: #9A3412;
    margin-top: 0.35rem;
    margin-bottom: 0;
    font-weight: 400;
}

/* -------------------------------------------------------------
   HERO / CAROUSEL BANNER (Egg / Orange Theme)
   ------------------------------------------------------------- */
.hero-ramacnec {
    background: linear-gradient(135deg, #FFFDF5 0%, #FEF3C7 50%, #FED7AA 100%);
    border-bottom: 1px solid var(--theme-egg-border);
    padding: 2.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero-ramacnec::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(242, 101, 34, 0.12) 0%, rgba(254, 243, 199, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-ramacnec-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    line-height: 1.3;
}

.hero-ramacnec-title span {
    color: var(--theme-orange);
    position: relative;
}

.hero-ramacnec-subtitle {
    font-size: 1rem;
    color: var(--theme-text-body);
    font-weight: 400;
    line-height: 1.6;
}

/* -------------------------------------------------------------
   SECTION HEADING (Matches Ramacnec Image 2: บริการวิชาการ [ แสดงทั้งหมด -> ])
   ------------------------------------------------------------- */
.section-title-ramacnec {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--theme-orange);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-ramacnec .see-all-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--theme-text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.section-title-ramacnec .see-all-link:hover {
    color: var(--theme-orange);
}

/* -------------------------------------------------------------
   PROJECT CARDS (Inspired by Ramacnec Image 2)
   ------------------------------------------------------------- */
.project-card-ramacnec {
    background-color: var(--theme-white);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.project-card-ramacnec:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(242, 101, 34, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: var(--theme-egg-border);
}

.card-poster-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--theme-egg-200);
    overflow: hidden;
}

.card-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card-ramacnec:hover .card-poster-img {
    transform: scale(1.03);
}

.card-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFFBEB 0%, #FED7AA 100%);
    color: var(--theme-orange-dark);
    padding: 1.5rem;
    text-align: center;
}

.card-poster-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.card-poster-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: var(--theme-orange-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(254, 215, 170, 0.5);
}

.card-poster-status {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.project-card-ramacnec .card-body {
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-card-ramacnec .card-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-orange-dark);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    text-decoration: none;
    transition: color 0.15s;
}

.project-card-ramacnec .card-title:hover {
    color: var(--theme-orange);
    text-decoration: underline;
}

.project-mode-highlight {
    display: inline-flex;
    align-items: center;
    font-size: 0.78em;
    font-weight: 700;
    line-height: 1.3;
    padding: 0.2em 0.68em;
    border-radius: 999px;
    vertical-align: middle;
    margin-top: 0.25rem;
    text-decoration: none !important;
    letter-spacing: 0.01em;
}

.project-mode-highlight.mode-regular,
.card-poster-badge.mode-regular,
.project-code-badge.mode-regular {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    color: #FFFFFF;
    border-color: #0F766E;
    box-shadow: 0 2px 6px rgba(15, 118, 110, 0.28);
}

.project-mode-highlight.mode-online,
.card-poster-badge.mode-online,
.project-code-badge.mode-online {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: #FFFFFF;
    border-color: #6D28D9;
    box-shadow: 0 2px 6px rgba(109, 40, 217, 0.28);
}

.project-meta-row {
    font-size: 0.82rem;
    color: var(--theme-text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.project-card-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.seats-badge-card {
    font-size: 0.8rem;
    font-weight: 500;
    color: #92400E;
    background-color: var(--theme-egg-200);
    padding: 3px 8px;
    border-radius: 4px;
}

/* -------------------------------------------------------------
   DETAIL PAGE: REMAINING SEATS HIGHLIGHT (Image 3)
   ------------------------------------------------------------- */
.remaining-seats-box {
    border: 2px solid var(--theme-orange);
    background-color: var(--theme-egg-100);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.08);
}

.remaining-seats-label {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    margin-bottom: 0;
}

.remaining-seats-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--theme-orange);
    margin-left: 6px;
}

/* -------------------------------------------------------------
   DETAIL PAGE: INFO TABLE (Image 3)
   ------------------------------------------------------------- */
.detail-info-list {
    background-color: var(--theme-white);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.detail-info-row {
    display: flex;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.95rem;
    align-items: center;
}

.detail-info-row:last-child {
    border-bottom: none;
}

.detail-info-row:nth-child(even) {
    background-color: #FAFAF9;
}

.detail-info-label {
    width: 220px;
    min-width: 180px;
    font-weight: 600;
    color: var(--theme-text-dark);
}

.detail-info-value {
    flex: 1;
    color: var(--theme-text-body);
}

.detail-download-link {
    color: var(--theme-orange-dark);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
}

.detail-download-link:hover {
    text-decoration: underline;
    color: var(--theme-cta-hover);
}

/* -------------------------------------------------------------
   DETAIL PAGE: RATES TABLE (Image 3 & 4)
   ------------------------------------------------------------- */
.rates-table-ramacnec {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.rates-table-ramacnec th {
    background: linear-gradient(135deg, var(--theme-orange) 0%, var(--theme-orange-dark) 100%);
    color: #ffffff;
    font-weight: 600;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
}

.rates-table-ramacnec td {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    background-color: var(--theme-white);
    border-bottom: 1px solid var(--theme-border);
}

.rates-table-ramacnec tr:last-child td {
    border-bottom: none;
}

.btn-click-to-register {
    border: 1.5px solid var(--theme-cta);
    color: var(--theme-cta);
    background-color: var(--theme-white);
    padding: 0.65rem 1.5rem;
    min-height: 48px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-click-to-register:hover {
    background-color: var(--theme-cta);
    color: #ffffff;
    box-shadow: var(--shadow-orange);
}

.btn-click-to-slip {
    border: 1.5px solid #B91C1C;
    color: #B91C1C;
    background-color: var(--theme-white);
    padding: 0.65rem 1.4rem;
    min-height: 48px;
    font-weight: 600;
    font-size: 0.96rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-click-to-slip:hover {
    background-color: #B91C1C;
    color: #ffffff;
}

/* -------------------------------------------------------------
   DETAIL PAGE: BANK PAYMENT BOX (Image 4)
   ------------------------------------------------------------- */
.bank-payment-box {
    background-color: var(--theme-white);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.bank-header-banner {
    background: linear-gradient(135deg, #00A3E0 0%, #0077B6 100%);
    color: #ffffff;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bank-header-banner.theme-orange-bank {
    background: linear-gradient(135deg, var(--theme-orange) 0%, #C2410C 100%);
}

.bank-header-banner-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0;
}

.bank-details-table {
    width: 100%;
}

.bank-details-table td {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid #F1F5F9;
}

.bank-details-table tr:last-child td {
    border-bottom: none;
}

.bank-details-label {
    width: 200px;
    font-weight: 600;
    color: var(--theme-text-dark);
}

.bank-details-value {
    color: var(--theme-text-dark);
    font-weight: 600;
}

/* -------------------------------------------------------------
   DETAIL PAGE: DOCUMENTS BOX (Image 4)
   ------------------------------------------------------------- */
.document-item-box {
    background-color: var(--theme-white);
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.document-item-box:hover {
    border-color: var(--theme-egg-border);
    box-shadow: var(--shadow-sm);
}

.document-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.document-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--theme-egg-200);
    color: var(--theme-orange-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.btn-download-outline {
    border: 1.5px solid var(--theme-orange-dark);
    color: var(--theme-orange-dark);
    background-color: transparent;
    padding: 0.55rem 1.25rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-download-outline:hover {
    background-color: var(--theme-cta);
    border-color: var(--theme-cta);
    color: #ffffff;
}

/* -------------------------------------------------------------
   PDPA & CONSENT POLICY SECTION (Inspired by Image 5)
   ------------------------------------------------------------- */
.pdpa-card-ramacnec {
    background-color: var(--theme-white);
    border: 1px solid var(--theme-egg-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: hidden;
}

.pdpa-card-header {
    background: linear-gradient(135deg, var(--theme-egg-100) 0%, var(--theme-egg-200) 100%);
    padding: 1.75rem 2rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--theme-egg-border);
}

.pdpa-card-body {
    padding: 2rem;
    background-color: var(--theme-white);
}

.pdpa-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    margin-bottom: 0.85rem;
}

.pdpa-text-content,
.course-readable-prose {
    font-size: 1rem;
    line-height: 1.72;
    color: var(--theme-text-body);
    max-width: 65ch;
    text-align: left;
}

.pdpa-text-content {
    margin-bottom: 1.25rem;
}

.pdpa-accordion summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--theme-orange-dark);
    font-weight: 600;
    min-height: 44px;
    padding: 0.4rem 0;
}

.pdpa-accordion summary::-webkit-details-marker {
    display: none;
}

.pdpa-accordion[open] summary .pdpa-chevron {
    transform: rotate(180deg);
}

.pdpa-checkbox-box {
    background-color: var(--theme-egg-50);
    border: 1px solid var(--theme-egg-border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
}

.pdpa-consent-radios {
    background-color: #FAFAFA;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1.25rem;
}

/* -------------------------------------------------------------
   FORM STYLES & CONTROLS
   ------------------------------------------------------------- */
.form-card-nurse {
    background-color: var(--theme-white);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.75rem;
    overflow: hidden;
}

.form-card-header {
    background-color: var(--theme-egg-100);
    border-bottom: 1px solid var(--theme-egg-border);
    padding: 1rem 1.5rem;
}

.form-card-header h5 {
    color: var(--theme-text-dark);
    font-weight: 700;
    margin-bottom: 0;
}

.form-card-body {
    padding: 1.75rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--theme-text-dark);
    margin-bottom: 0.45rem;
    display: block;
}

.form-label .required {
    color: #B91C1C;
    font-weight: 700;
}

.form-control, .form-select {
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    min-height: 48px;
    padding: 0.65rem 0.9rem;
    font-size: 1rem;
    color: var(--theme-text-dark);
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--theme-cta);
    box-shadow: 0 0 0 3px var(--theme-orange-focus);
    outline: none;
}

.touch-check-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.65rem 1rem;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    background-color: #FFFFFF;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.touch-check-box:hover {
    border-color: var(--theme-egg-border);
    background-color: var(--theme-egg-50);
}

.touch-check-box:has(input:checked) {
    border-color: var(--theme-cta);
    background-color: var(--theme-orange-light);
}

.touch-check-box .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    flex-shrink: 0;
}

.form-check-input:checked {
    background-color: var(--theme-cta);
    border-color: var(--theme-cta);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px var(--theme-orange-focus);
}

/* Stepper Progress Bar */
.step-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
}

.step-container::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 40px;
    right: 40px;
    height: 3px;
    background-color: var(--theme-border);
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--theme-white);
    border: 3px solid var(--theme-border);
    color: var(--theme-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.2s;
}

.step-item.active .step-circle {
    border-color: var(--theme-orange);
    background-color: var(--theme-orange);
    color: #ffffff;
    box-shadow: var(--shadow-orange);
}

.step-item.completed .step-circle {
    border-color: var(--status-success);
    background-color: var(--status-success);
    color: #ffffff;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--theme-text-muted);
}

.step-item.active .step-label {
    color: var(--theme-orange);
    font-weight: 700;
}

/* -------------------------------------------------------------
   FOOTER (Clean Egg / White Theme)
   ------------------------------------------------------------- */
.footer-ramacnec {
    background-color: var(--theme-white);
    border-top: 2px solid var(--theme-egg-border);
    padding: 3rem 0 1.5rem;
    color: var(--theme-text-body);
}

.footer-ramacnec h5 {
    color: var(--theme-text-dark);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.4rem;
}

.footer-ramacnec h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--theme-orange);
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 0.5rem;
}

.footer-links-list a {
    color: var(--theme-text-body);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links-list a:hover {
    color: var(--theme-orange);
}

.footer-bottom-bar {
    border-top: 1px solid #F1F5F9;
    padding-top: 1.25rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--theme-text-muted);
}

/* -------------------------------------------------------------
   ADMIN PORTAL UX/UI - THEME: ORANGE, EGG, WHITE
   Minimalist, High Efficiency, Zero Clutter
   ------------------------------------------------------------- */
body.admin-body {
    background-color: #FAF8F5 !important;
    color: #1F2937;
}

/* Admin Sidebar */
.admin-sidebar {
    background-color: #FFFFFF !important;
    border-right: 1px solid #E5E7EB !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: none !important;
}

.admin-sidebar-brand {
    padding: 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #F1F5F9;
}

.admin-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: #FFF7ED;
    color: var(--theme-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border: 1px solid var(--theme-egg-border);
}

.admin-brand-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.2;
}

.admin-brand-sub {
    font-size: 0.74rem;
    color: var(--theme-orange);
    font-weight: 500;
}

/* Admin User Box */
.admin-user-box {
    margin: 1rem 1rem 0.5rem;
    padding: 0.6rem 0.8rem;
    background-color: #FFFDF7;
    border: 1px solid var(--theme-egg-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.admin-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #FFF7ED;
    color: var(--theme-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.admin-user-info {
    min-width: 0;
    flex: 1;
}

.admin-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.2;
}

.admin-user-role {
    font-size: 0.72rem;
    color: #64748B;
    line-height: 1.2;
}

/* Admin Nav Links */
.admin-nav {
    padding: 0.5rem 0.75rem !important;
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #4B5563 !important;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.admin-nav .nav-link i {
    width: 18px;
    text-align: center;
    font-size: 0.92rem;
    color: #94A3B8;
    transition: color 0.15s ease;
}

.admin-nav .nav-link:hover {
    background-color: #FFFBEB;
    color: var(--theme-orange) !important;
}

.admin-nav .nav-link:hover i {
    color: var(--theme-orange);
}

.admin-nav .nav-link.active {
    background-color: #FEF3C7 !important;
    color: var(--theme-orange-dark) !important;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--theme-orange);
}

.admin-nav .nav-link.active i {
    color: var(--theme-orange) !important;
}

/* Admin Sidebar Footer */
.admin-sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid #F1F5F9;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
    color: #64748B;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.admin-footer-link:hover {
    background-color: #FFF7ED;
    color: var(--theme-orange);
}

.admin-logout-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
    color: #94A3B8;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.admin-logout-link:hover {
    background-color: #FEF2F2;
    color: #DC2626;
}

/* Stat Cards (Strictly Orange / Egg / White) */
.admin-stat-card {
    background: #FFFFFF;
    border: 1px solid var(--theme-egg-border);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    height: 100%;
}

.admin-stat-card:hover {
    border-color: var(--theme-orange);
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.08);
}

.admin-stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748B;
    margin-bottom: 0.25rem;
}

.admin-stat-number {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.15;
    margin-bottom: 0.25rem;
}

.admin-stat-sub {
    font-size: 0.75rem;
    color: #94A3B8;
}

.admin-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: #FFF7ED;
    color: var(--theme-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid rgba(254, 215, 170, 0.5);
}

/* Admin Card Container */
.admin-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.admin-card-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #F1F5F9;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Admin Table Clean */
.admin-table {
    margin-bottom: 0;
    font-size: 0.86rem;
}

.admin-table thead th {
    background-color: #FFFDF7 !important;
    color: #475569 !important;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #E5E7EB !important;
    border-top: none !important;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 0.8rem 1rem !important;
    vertical-align: middle;
    border-bottom: 1px solid #F8FAFC !important;
    color: #334155;
}

.admin-table tbody tr:hover {
    background-color: #FFFDF7;
}

/* Soft Badges Override for Admin */
.admin-table .badge,
.badge-clean {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

.admin-table .badge.bg-warning {
    background-color: #FFFBEB !important;
    color: #92400E !important;
    border: 1px solid #FDE68A;
}

.admin-table .badge.bg-info {
    background-color: #FFF7ED !important;
    color: #C2410C !important;
    border: 1px solid #FED7AA;
}

.admin-table .badge.bg-success {
    background-color: #ECFDF5 !important;
    color: #065F46 !important;
    border: 1px solid #A7F3D0;
}

.admin-table .badge.bg-danger {
    background-color: #FEF2F2 !important;
    color: #991B1B !important;
    border: 1px solid #FECACA;
}

.admin-table .badge.bg-secondary {
    background-color: #F8FAFC !important;
    color: #64748B !important;
    border: 1px solid #E2E8F0;
}

body.admin-body .btn-nurse-outline {
    border: 1px solid var(--theme-orange-dark);
    color: var(--theme-orange-dark);
    background: transparent;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.82rem;
    min-height: 34px;
    padding: 0.3rem 0.75rem;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body.admin-body .btn-nurse-outline:hover {
    background-color: #FFF7ED;
    color: var(--theme-cta-hover);
    border-color: var(--theme-cta-hover);
}

.hover-orange:hover {
    color: var(--theme-orange-dark) !important;
}

/* -------------------------------------------------------------
   FLUID COURSE GRID, NAV, COPY & INTERACTION COMPONENTS
   ------------------------------------------------------------- */
.course-grid-fluid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 24px;
}

.filter-tabs-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill-btn {
    min-height: 44px;
    min-width: 48px;
    padding: 0.5rem 1.05rem;
    border-radius: 999px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-copy-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1.5px solid var(--theme-orange-dark);
    background-color: #FFF7ED;
    color: var(--theme-orange-dark);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-copy-inline:hover {
    background-color: var(--theme-cta);
    border-color: var(--theme-cta);
    color: #FFFFFF;
}

.sticky-sidebar-desktop {
    position: sticky;
    top: 84px;
}

/* Desktop vs Mobile/Tablet Visibility (Strict 1024px / 768px breakpoints) */
.nav-desktop-only {
    display: none;
}

.nav-mobile-tablet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
}

.btn-hamburger-touch {
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: var(--theme-text-dark);
    font-weight: 600;
    padding: 0 0.75rem;
}

.mobile-bottom-nav,
.mobile-sticky-course-cta {
    display: none;
}

/* Lightbox Native Dialog */
dialog.media-lightbox {
    border: none;
    border-radius: 12px;
    padding: 0.5rem;
    background: #111827;
    color: #FFFFFF;
    max-width: min(94vw, 960px);
    max-height: 92vh;
    margin: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

dialog.media-lightbox::backdrop {
    background: rgba(17, 24, 39, 0.78);
    backdrop-filter: blur(4px);
}

.media-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(17, 24, 39, 0.85);
    color: #FFFFFF;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.media-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 1rem);
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}

/* Toast Feedback */
.app-toast {
    position: fixed;
    left: 50%;
    bottom: 84px;
    transform: translateX(-50%) translateY(16px);
    background-color: #1F2937;
    color: #FFFFFF;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2100;
}

.app-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* -------------------------------------------------------------
   RESPONSIVE BREAKPOINTS:
   Mobile (<768px) | Tablet (768-1023px) | Desktop (>=1024px)
   ------------------------------------------------------------- */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding-inline: 32px;
    }
    .nav-desktop-only {
        display: flex !important;
        width: 100%;
        align-items: center;
    }
    .nav-mobile-tablet-bar {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    .container {
        max-width: 100%;
        padding-inline: 24px;
    }
    .course-grid-fluid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .sticky-sidebar-desktop {
        position: static;
    }
    .filter-pill-btn,
    .btn-nurse,
    .btn-nurse-outline,
    .btn-register-action,
    .btn-copy-inline,
    .btn-download-outline {
        min-height: 48px;
    }
}

@media (max-width: 1023.98px) {
    .navbar-ramacnec .nav-link {
        padding: 0.75rem 1rem !important;
        min-height: 48px;
        border-bottom: 1px solid #F3F4F6;
    }
    .detail-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .detail-info-label {
        width: 100%;
    }
    .sticky-sidebar-desktop {
        position: static;
    }
}

@media (max-width: 767.98px) {
    body {
        line-height: 1.7;
    }
    body:not(.admin-body) {
        padding-bottom: calc(84px + env(safe-area-inset-bottom));
    }
    body.has-course-sticky-cta:not(.admin-body) {
        padding-bottom: calc(148px + env(safe-area-inset-bottom));
    }
    .container {
        padding-inline: 16px;
    }
    .section-banner-peach {
        padding: 1.15rem 0 1rem;
        margin-bottom: 1.25rem;
    }
    .course-grid-fluid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .card-poster-wrapper {
        aspect-ratio: 4 / 3;
    }
    .filter-tabs-scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .filter-tabs-scroll::-webkit-scrollbar {
        display: none;
    }
    .filter-pill-btn {
        min-height: 48px;
        min-width: 48px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    .project-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .project-card-footer > div:first-child {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
    }
    .project-card-ramacnec .btn-register-action {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }
    .btn-nurse,
    .btn-nurse-outline,
    .btn-click-to-register,
    .btn-click-to-slip,
    .btn-download-outline,
    .btn-copy-inline {
        min-height: 48px;
    }
    .document-item-box {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .document-item-box .btn-download-outline {
        width: 100%;
    }
    .remaining-seats-label {
        font-size: 1.25rem;
    }
    .remaining-seats-number {
        font-size: 1.75rem;
    }
    .step-label {
        font-size: 0.75rem;
    }
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1035;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        border-top: 1px solid var(--theme-egg-border);
        box-shadow: 0 -4px 16px rgba(31, 41, 55, 0.08);
        height: calc(64px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
    }
    .mobile-bottom-nav-item {
        flex: 1;
        min-width: 48px;
        min-height: 48px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        color: #4B5563;
        font-size: 0.74rem;
        font-weight: 500;
        border: none;
        background: transparent;
        padding: 4px 2px;
    }
    .mobile-bottom-nav-item i {
        font-size: 1.1rem;
    }
    .mobile-bottom-nav-item.active {
        color: var(--theme-cta);
        font-weight: 700;
    }
    .mobile-sticky-course-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        position: fixed;
        bottom: calc(64px + env(safe-area-inset-bottom));
        left: 0;
        right: 0;
        z-index: 1030;
        background-color: #FFFDF7;
        border-top: 1px solid var(--theme-egg-border);
        padding: 8px 16px;
        box-shadow: 0 -4px 12px rgba(31, 41, 55, 0.08);
    }
    .app-toast {
        bottom: calc(82px + env(safe-area-inset-bottom));
    }
}
