/* ==========================================================================
   Zoho ERP Design System - Clean, Enterprise SaaS Theme
   Slate Navy (#182232) + Crisp Surfaces (#F8FAFC) + Clean Muted Borders (#E2E8F0)
   ========================================================================== */

:root {
    --zoho-primary: #182232;
    --zoho-primary-hover: #29384d;
    --zoho-dark: #182232;
    --zoho-dark-hover: #223044;
    --zoho-dark-border: #29384d;
    --zoho-surface: #f8fafc;
    --zoho-card: #ffffff;
    --zoho-border: #e2e8f0;
    --zoho-border-subtle: #f1f5f9;
    --zoho-text-main: #0f172a;
    --zoho-text-muted: #64748b;
    --zoho-success: #059669;
    --zoho-warning: #d97706;
    --zoho-danger: #dc2626;
    --zoho-info: #475569;

    /* Semantic aliases */
    --erp-primary: var(--zoho-primary);
    --erp-primary-hover: var(--zoho-primary-hover);
    --erp-accent: var(--zoho-primary);
    --erp-accent-hover: var(--zoho-primary-hover);
    --erp-success: var(--zoho-success);
    --erp-warning: var(--zoho-warning);
    --erp-danger: var(--zoho-danger);
    --erp-info: var(--zoho-info);
    --erp-bg: var(--zoho-surface);
    --erp-card-bg: var(--zoho-card);
    --erp-border: var(--zoho-border);
    --erp-border-dark: var(--zoho-dark-border);
    --erp-border-subtle: var(--zoho-border-subtle);
    --erp-text-main: var(--zoho-text-main);
    --erp-text-muted: var(--zoho-text-muted);
    --erp-sidebar-bg: var(--zoho-dark);
    --erp-sidebar-active: #29384d;
    --erp-sidebar-text: #94a3b8;
    --erp-sidebar-text-active: #ffffff;
}

/* ==========================================================================
   Executive SaaS Typography (Inter & Dashboard Visual Standard)
   ========================================================================== */
html, body, button, input, optgroup, select, textarea,
.form-control, .form-select, .btn, .table, th, td,
.modal, .card, .dropdown-menu, .nav, .nav-link, .breadcrumb,
h1, h2, h3, h4, h5, h6, p, label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Public Website Typography (Standard, Prominent & Highly Readable)
   ========================================================================== */
body {
    background-color: #ffffff;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9375rem; /* Clean 15px modern web view */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body:not(.erp-body) p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #475569;
}

body:not(.erp-body) .small, 
body:not(.erp-body) small {
    font-size: 0.8125rem !important; /* 13px */
    line-height: 1.5;
}

/* Standard Public Website Typography Scale (Modern, Balanced & Flat) */
body:not(.erp-body) h1, body:not(.erp-body) .h1 { font-size: 1.75rem; font-weight: 700; color: #0f172a; line-height: 1.3; }
body:not(.erp-body) h2, body:not(.erp-body) .h2 { font-size: 1.45rem; font-weight: 700; color: #0f172a; line-height: 1.35; }
body:not(.erp-body) h3, body:not(.erp-body) .h3 { font-size: 1.25rem; font-weight: 600; color: #0f172a; }
body:not(.erp-body) h4, body:not(.erp-body) .h4 { font-size: 1.1rem; font-weight: 600; color: #0f172a; }
body:not(.erp-body) h5, body:not(.erp-body) .h5 { font-size: 0.95rem; font-weight: 600; color: #0f172a; }
body:not(.erp-body) h6, body:not(.erp-body) .h6 { font-size: 0.85rem; font-weight: 600; color: #0f172a; }
body:not(.erp-body) .lead { font-size: 0.975rem; font-weight: 400; line-height: 1.6; color: #475569; }
body:not(.erp-body) .display-4 { font-size: 1.85rem !important; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
body:not(.erp-body) .display-5 { font-size: 1.5rem !important; font-weight: 700; line-height: 1.25; }
body:not(.erp-body) .feature-card h5 { font-size: 0.95rem; font-weight: 600; margin-top: 0.5rem; margin-bottom: 0.35rem; }
body:not(.erp-body) .feature-card p { font-size: 0.8125rem; line-height: 1.5; color: #64748b; }
body:not(.erp-body) .section-title { font-size: 1.35rem; font-weight: 700; }

/* ==========================================================================
   Executive ERP / Dashboard Typography (Compact SaaS Scale for erp-body)
   ========================================================================== */
body.erp-body {
    background-color: var(--erp-bg);
    color: var(--erp-text-main);
    font-size: 0.8125rem !important; /* 13px base SaaS standard */
    line-height: 1.5;
}

.erp-body h1 { font-size: 1.5rem !important; font-weight: 700 !important; color: #0f172a !important; letter-spacing: -0.015em; }
.erp-body h2 { font-size: 1.35rem !important; font-weight: 700 !important; color: #0f172a !important; letter-spacing: -0.01em; }
.erp-body h3 { font-size: 1.2rem !important; font-weight: 600 !important; color: #0f172a !important; }
.erp-body h4 { font-size: 1.05rem !important; font-weight: 700 !important; color: #0f172a !important; }
.erp-body h5 { font-size: 0.95rem !important; font-weight: 600 !important; color: #0f172a !important; }
.erp-body h6 { font-size: 0.875rem !important; font-weight: 600 !important; color: #0f172a !important; }

.erp-body .small, .erp-body small {
    font-size: 0.75rem !important; /* 12px */
}

.erp-body .btn {
    font-size: 0.8125rem !important;
}

.erp-body .btn-sm {
    font-size: 0.75rem !important;
}

.erp-body .form-control, .erp-body .form-select {
    font-size: 0.8125rem !important;
}

.erp-body table, .erp-body .table, .erp-table {
    font-size: 0.8125rem !important;
}

.erp-body table th, .erp-body .table th, .erp-table th {
    font-size: 0.725rem !important;
}

.erp-body table td, .erp-body .table td, .erp-table td {
    font-size: 0.8125rem !important;
}

/* Preserved Monospace Numerals & Code Blocks */
.font-monospace-num, .font-monospace, code, kbd, pre {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

/* ==========================================================================
   Font Awesome Icon Protection (Ensure Icons Display 100% Perfectly)
   ========================================================================== */
i.fa, i.fas, i.far, i.fal, i.fab, i.fad, i.fak,
.fa, .fas, .far, .fal, .fab, .fad, .fak,
[class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-style: normal !important;
}

i.fas, .fas, i.fa-solid, .fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

i.fab, .fab, i.fa-brands, .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

i.far, .far, i.fa-regular, .fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

/* Zoho Top Header Navbar */
.erp-header {
    background-color: #182232 !important;
    border-bottom: 1px solid #29384d;
    height: 56px;
    z-index: 1040;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

.erp-search-input {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid #334155 !important;
    color: #ffffff !important;
    font-size: 0.8125rem;
    border-radius: 4px;
    transition: all 0.15s ease;
    box-shadow: none !important;
}

.erp-search-input:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #475569 !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15) !important;
}

.erp-search-input::placeholder {
    color: #94a3b8;
}

/* Left Sidebar Layout (Zoho Clean Slate Style) */
.erp-sidebar {
    background-color: var(--erp-sidebar-bg);
    min-height: calc(100vh - 56px);
    border-right: 1px solid #29384d;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out;
}

main {
    transition: all 0.2s ease-in-out;
}

@media (min-width: 768px) {
    body.sidebar-collapsed #sidebarMenu {
        display: none !important;
    }
    body.sidebar-collapsed main {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

#sidebarToggleBtn {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

#sidebarToggleBtn:hover {
    background-color: #223044 !important;
    color: #f8fafc !important;
}

.hover-text-white:hover {
    color: #ffffff !important;
}

.erp-sidebar-section-title {
    color: #64748b;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.65rem 0.85rem 0.25rem 0.85rem;
}

.erp-accordion-btn {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--erp-sidebar-text) !important;
    border-radius: 4px;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.15s ease;
}

.erp-accordion-btn:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
}

.erp-accordion-btn::after {
    filter: invert(0.8);
    transform: scale(0.7);
}

.erp-sidebar .nav-link {
    color: var(--erp-sidebar-text);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.45rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.125rem;
    display: flex;
    align-items: center;
    transition: all 0.15s ease;
}

.erp-sidebar .nav-link i {
    width: 1.25rem;
    text-align: center;
    font-size: 0.8125rem;
    margin-right: 0.5rem;
    color: #64748b;
}

.erp-sidebar .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
}

.erp-sidebar .nav-link:hover i {
    color: #e2e8f0;
}

.erp-sidebar .nav-link.active {
    color: #ffffff;
    background-color: #29384d;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.erp-sidebar .nav-link.active i {
    color: #ffffff;
}

/* Zoho Clean Cards (Matching Dashboard Standard) */
.erp-card, .card, .dashboard-card {
    background-color: var(--erp-card-bg);
    border: 1px solid var(--erp-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04) !important;
}

.erp-card-hover {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.erp-card-hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04) !important;
}

.erp-card-header, .card-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--erp-border);
    padding: 0.75rem 1rem;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.erp-card-title, .card-title {
    font-size: 0.875rem !important; /* 14px */
    font-weight: 700 !important;
    margin: 0;
    color: #0f172a !important;
}

.erp-card-body {
    padding: 1rem;
}

/* Zoho Clean Form Controls */
.form-control, .form-select {
    border: 1px solid #cbd5e1;
    border-radius: 4px !important;
    font-size: 0.84rem;
    padding: 0.4rem 0.65rem;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #182232;
    box-shadow: 0 0 0 3px rgba(24, 34, 50, 0.12);
    outline: none;
}

/* Zoho Buttons */
.btn {
    border-radius: 5px !important;
    box-shadow: none !important;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    transition: all 0.15s ease;
}

.btn-primary, .bg-primary {
    background-color: #182232 !important;
    border-color: #182232 !important;
    color: #ffffff !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #29384d !important;
    border-color: #29384d !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(24, 34, 50, 0.18) !important;
}

.btn-outline-primary {
    color: #182232 !important;
    border-color: #94a3b8 !important;
    background-color: #ffffff !important;
}

.btn-outline-primary:hover {
    background-color: #182232 !important;
    border-color: #182232 !important;
    color: #ffffff !important;
}

.btn-success, .bg-success {
    background-color: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}

.btn-success:hover {
    background-color: #047857 !important;
    border-color: #047857 !important;
}

.btn-danger, .bg-danger {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

.btn-danger:hover {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
}

.btn-warning, .bg-warning {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
}

.btn-warning:hover {
    background-color: #b45309 !important;
    border-color: #b45309 !important;
}

/* Metric KPI Icon Box */
.metric-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.bg-soft-primary { background-color: #f1f5f9; color: #182232; border: 1px solid #e2e8f0; }
.bg-soft-success { background-color: #ecfdf5; color: #059669; }
.bg-soft-warning { background-color: #fffbeb; color: #d97706; }
.bg-soft-danger  { background-color: #fef2f2; color: #dc2626; }
.bg-soft-info    { background-color: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }
.bg-soft-secondary { background-color: #f1f5f9; color: #475569; }

/* Status Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3em 0.55em;
    border-radius: 4px;
}

.badge-soft-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-soft-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-soft-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.badge-soft-info {
    background-color: #f0f9ff;
    color: #075985;
    border: 1px solid #bae6fd;
}

.badge-soft-secondary {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

/* Zoho & Bootstrap Clean Table Style (Universal ERP Standard - Compact, Clean, Low Row Height) */
.erp-table, table, .table {
    width: 100%;
    margin-bottom: 0;
    color: var(--erp-text-main);
    vertical-align: middle;
    font-size: 0.8125rem !important; /* 13px */
}

.erp-table th, table th, .table th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 0.735rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    padding: 0.42rem 0.65rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
    vertical-align: middle;
}

.erp-table td, table td, .table td {
    padding: 0.38rem 0.65rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 0.8125rem !important; /* 13px */
    color: #1e293b !important;
    vertical-align: middle;
}

.erp-table tbody tr:hover, table tbody tr:hover, .table tbody tr:hover {
    background-color: #f8fafc !important;
}

.erp-table-compact td, 
.erp-table-compact th {
    padding: 0.28rem 0.5rem !important;
    font-size: 0.785rem !important;
}

/* ==========================================================================
   Global Modal & Popup Styling (Crisp White Headers & High Contrast)
   ========================================================================== */
.modal-header {
    background-color: #182232 !important;
    border-bottom: 1px solid #29384d !important;
    padding: 0.85rem 1.25rem !important;
}

.modal-header .modal-title,
.modal-header h1,
.modal-header h2,
.modal-header h3,
.modal-header h4,
.modal-header h5,
.modal-header h6 {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
    letter-spacing: 0.01em;
}

.modal-header .modal-title i,
.modal-header h5 i,
.modal-header h6 i {
    color: #94a3b8 !important;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
    opacity: 0.85 !important;
}

.modal-header .btn-close:hover {
    opacity: 1 !important;
}

.modal-content {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

.modal-footer {
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 0.75rem 1.25rem !important;
}

/* Compact Table Utility */
.erp-table-compact td, 
.erp-table-compact th {
    padding: 0.38rem 0.65rem !important;
    font-size: 0.8125rem !important;
}

/* Modal & Drawer Styling */
.drawer-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1055;
    transition: right 0.25s ease-in-out;
    display: flex;
    flex-direction: column;
}

.drawer-panel.show {
    right: 0;
}

.drawer-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--erp-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex-grow: 1;
}

/* POS Screen Utilities */
.pos-product-card {
    border: 1px solid var(--erp-border);
    border-radius: 6px;
    padding: 0.75rem;
    cursor: pointer;
    background-color: #ffffff;
    transition: all 0.15s ease;
}

.pos-product-card:hover {
    border-color: var(--zoho-primary);
    box-shadow: 0 2px 8px rgba(24, 34, 50, 0.12);
}

.pos-cart-table th, .pos-cart-table td {
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
}

/* Printable Document Rules (@media print) */
@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
    }

    .erp-header, .erp-sidebar, .btn-print-hide, .no-print, nav, footer, .alert {
        display: none !important;
    }

    main {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .print-only {
        display: block !important;
    }

    .print-card {
        border: none !important;
        box-shadow: none !important;
    }

    .print-letterhead {
        border-bottom: 2px solid #000000;
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
    }
}


/* ==========================================================================
   Front Website Professional Red, White & Yellow Theme Design System
   ========================================================================== */

:root {
    --nips-red-dark: #881337;
    --nips-red-primary: #be123c;
    --nips-red-bright: #e11d48;
    --nips-red-light: #fff1f2;
    --nips-red-border: #fecdd3;
    --nips-yellow-gold: #eab308;
    --nips-yellow-soft: #fef9c3;
    --nips-yellow-badge: #fef3c7;
    --nips-yellow-text: #854d0e;
    --nips-white: #ffffff;
    --nips-offwhite: #f8fafc;
    --nips-text-dark: #0f172a;
    --nips-text-muted: #475569;
}

/* 1. Light Top Bar */
.top-bar {
    background-color: #f8fafc;
    color: var(--nips-text-muted);
    font-size: 0.95rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--nips-red-border);
}

.top-bar a {
    color: var(--nips-text-dark);
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--nips-red-bright);
}

.top-bar .text-warning {
    color: var(--nips-red-primary) !important;
}

/* 2. School Branding Header (Light & Clean) */
.school-brand-header {
    background-color: #ffffff;
    padding: 1.35rem 0;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.school-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    border: 1.5px solid var(--nips-red-border) !important;
    border-radius: 0.5rem;
    padding: 4px;
    background-color: #ffffff;
}

.school-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--nips-red-primary) !important;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.school-subtitle {
    font-size: 0.875rem;
    color: var(--nips-text-muted);
    font-weight: 500;
}

/* 3. Main Header Navbar (Clean Soft Burgundy-Red Header) */
.main-navbar {
    background-color: var(--nips-red-primary) !important;
    box-shadow: 0 4px 12px rgba(190, 18, 60, 0.15);
    padding: 0.4rem 0;
    border-bottom: 3px solid var(--nips-yellow-gold);
}

.main-navbar .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.05rem !important;
    padding: 0.6rem 0.95rem !important;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.main-navbar .nav-link:hover {
    color: var(--nips-yellow-text) !important;
    background-color: var(--nips-yellow-soft) !important;
}

.main-navbar .nav-link.active {
    color: var(--nips-yellow-text) !important;
    background-color: var(--nips-yellow-badge) !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(234, 179, 8, 0.3);
}

/* Navbar Buttons */
.btn-warning {
    background-color: var(--nips-yellow-badge) !important;
    border-color: #fde68a !important;
    color: var(--nips-yellow-text) !important;
    font-weight: 700 !important;
}

.btn-warning:hover {
    background-color: var(--nips-yellow-soft) !important;
    color: #000000 !important;
    box-shadow: 0 4px 10px rgba(234, 179, 8, 0.25);
}

.main-navbar .btn-danger, .main-navbar .btn-primary {
    background-color: var(--nips-red-bright) !important;
    border-color: var(--nips-red-bright) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.main-navbar .btn-danger:hover, .main-navbar .btn-primary:hover {
    background-color: var(--nips-red-primary) !important;
    border-color: var(--nips-red-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
}

/* 4. Ticker Container (Soft & Clean) */
.notice-ticker-container {
    background-color: #fff1f2;
    height: 42px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--nips-red-border);
}

.notice-ticker-badge {
    background-color: var(--nips-red-primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0 1.25rem;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.notice-marquee {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.notice-marquee span {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-scroll 30s linear infinite;
    color: var(--nips-text-dark);
    font-weight: 600;
    font-size: 0.875rem;
}

.notice-marquee:hover span {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* 5. Light Hero Section Banner (Soft Rose & Cream Gradient) */
.hero-banner {
    background: linear-gradient(135deg, #fff1f2 0%, #ffffff 50%, #fefce8 100%);
    padding: 4.5rem 0;
    color: var(--nips-text-dark);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--nips-red-border);
}

.hero-badge-open {
    background: var(--nips-yellow-badge);
    color: var(--nips-yellow-text);
    border: 1px solid #fde68a;
    border-radius: 50px;
    padding: 0.45rem 1.25rem;
    display: inline-block;
    font-weight: 800;
    font-size: 0.825rem;
    letter-spacing: 0.04em;
}

.hero-img-box img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid #ffffff;
    box-shadow: 0 10px 30px rgba(190, 18, 60, 0.12) !important;
}

.hero-img-box img:hover {
    transform: scale(1.02);
}

/* 6. Utility & Section Typography */
.text-navy, .text-primary {
    color: var(--nips-red-primary) !important;
}

.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--nips-text-dark);
    position: relative;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--nips-red-bright) 0%, var(--nips-yellow-gold) 100%);
    margin: 8px auto 0;
    border-radius: 2px;
}

.text-start .section-title::after {
    margin-left: 0;
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 0.75rem;
    background-color: var(--nips-red-light);
    color: var(--nips-red-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    border: 1px solid var(--nips-red-border);
}

.leadership-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.leadership-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.feature-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    height: 100%;
}

.feature-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* 7. YouTube Short Video 9:16 Aspect Ratio */
.ratio-9x16 {
    --bs-aspect-ratio: 177.77777778%;
}

/* 8. WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background-color: #25d366;
    color: #ffffff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
    z-index: 1050;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #ffffff;
    transform: scale(1.1) translateY(-3px);
}

/* 9. Solid Black Footer & High-Contrast White Text */
footer {
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 3.5rem 0 2.5rem;
    border-top: 4px solid var(--nips-yellow-gold);
}

footer h5 {
    color: #fde047 !important;
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--nips-yellow-gold);
    padding-bottom: 0.4rem;
    display: inline-block;
}

footer p, footer li, footer span {
    color: #ffffff !important;
}

footer a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #fde047 !important;
    text-decoration: underline;
}

.sub-footer {
    background-color: #111111 !important;
    color: #ffffff !important;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.825rem;
}

/* 10. Comprehensive Mobile Responsiveness Fixes */
@media (max-width: 991.98px) {
    .school-title {
        font-size: 1.35rem;
        text-align: center;
    }
    
    .school-subtitle {
        text-align: center;
    }
    
    .school-logo-img {
        height: 55px;
        margin: 0 auto 0.5rem auto;
        display: block;
    }
    
    .hero-banner {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-badge-open {
        margin-bottom: 1rem;
    }
    
    .main-navbar .navbar-collapse {
        background-color: var(--nips-red-dark);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        border: 1px solid var(--nips-yellow-gold);
    }
    
    .main-navbar .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .top-bar {
        font-size: 0.75rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
}

/* ==========================================================================
   Vertical Scrolling Notice Marquee (Header Right Side Ticker)
   ========================================================================== */

.vertical-notice-scroll {
    animation: vertical-marquee 10s linear infinite;
}

.vertical-notice-scroll:hover {
    animation-play-state: paused;
}

@keyframes vertical-marquee {
    0% { transform: translateY(0); }
    33% { transform: translateY(-33.33%); }
    66% { transform: translateY(-66.66%); }
    100% { transform: translateY(0); }
}

/* ==========================================================================
   Admin Panel Flat Design & Standard ERP Typography
   ========================================================================== */

.erp-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

.erp-card-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 0.85rem 1.15rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

.erp-table {
    font-size: 0.875rem !important;
}

.erp-table th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 0.65rem 0.85rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.erp-table td {
    padding: 0.65rem 0.85rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.erp-body .form-control, .erp-body .form-select {
    font-size: 0.8125rem !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
}

.erp-body .form-control:focus, .erp-body .form-select:focus {
    border-color: #182232 !important;
    box-shadow: 0 0 0 3px rgba(24, 34, 50, 0.12) !important;
}

/* Zoho Enterprise Primary Button for ERP (Scoped) */
.erp-body .btn-primary {
    background-color: #182232 !important;
    border-color: #182232 !important;
    color: #ffffff !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    transition: all 0.15s ease-in-out !important;
}

.erp-body .btn-primary:hover {
    background-color: #29384d !important;
    border-color: #29384d !important;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(24, 34, 50, 0.25) !important;
}

.erp-body .btn-primary:active {
    background-color: #0f172a !important;
    border-color: #0f172a !important;
}

.erp-body .btn-outline-primary {
    color: #182232 !important;
    border-color: #94a3b8 !important;
    background-color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
}

.erp-body .btn-outline-primary:hover {
    background-color: #182232 !important;
    border-color: #182232 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(24, 34, 50, 0.2) !important;
}