/* ==========================================================================
   BPI Alumni Network & Management System - Main Design System & Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --primary: #0f294a;
    --primary-dark: #0a1c33;
    --primary-light: #1e3a8a;
    --accent: #d97706;
    --accent-light: #f59e0b;
    --accent-glow: rgba(217, 119, 6, 0.2);
    
    --bg-light: #f8fafc;
    --bg-surface: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-subtle: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 20px 30px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.06);
    --shadow-gold: 0 10px 20px -5px rgba(217, 119, 6, 0.3);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

/* ---------------- Navbar & Navigation ---------------- */
.navbar-alumni {
    background: rgba(15, 41, 74, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    padding: 0.85rem 0;
}

.navbar-alumni .navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.navbar-alumni .brand-badge {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.navbar-alumni .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.navbar-alumni .nav-link:hover,
.navbar-alumni .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.navbar-alumni .btn-join {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    border: none;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
    transition: all 0.25s ease;
}

.navbar-alumni .btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
    color: #ffffff;
}

/* ---------------- Hero Section ---------------- */
.hero-wrapper {
    position: relative;
    background: linear-gradient(135deg, #0a1c33 0%, #0f294a 50%, #1e3a8a 100%);
    color: #ffffff;
    padding: 5.5rem 0 6.5rem;
    overflow: hidden;
}

.hero-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(217, 119, 6, 0.15) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.45;
    pointer-events: none;
}

.hero-wrapper .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 1.5rem;
}

.hero-wrapper h1 {
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    line-height: 1.15;
    margin-bottom: 1.35rem;
}

.hero-wrapper .hero-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* ---------------- Stats Cards ---------------- */
.stat-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: #cbd5e1;
}

.stat-box .stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-box .stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------------- Custom Cards ---------------- */
.card-alumni {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.card-alumni:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.card-alumni .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.card-alumni .card-body {
    padding: 1.5rem;
}

.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
}

/* ---------------- Multi-Step Stepper Wizard ---------------- */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
}

.stepper-wrapper::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

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

.step-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.step-item.active .step-circle {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 0 6px var(--accent-glow);
}

.step-item.completed .step-circle {
    border-color: #059669;
    background: #059669;
    color: #ffffff;
}

.step-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.step-item.active .step-title {
    color: var(--primary);
    font-weight: 700;
}

/* ---------------- Locked / Read-only Fields ---------------- */
.form-control-locked {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600;
    cursor: not-allowed;
}

.locked-badge {
    font-size: 0.75rem;
    color: #64748b;
    background: #e2e8f0;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

/* ---------------- Admin Dashboard Sidebar Layout ---------------- */
.admin-layout {
    display: flex;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Desktop Sidebar (>= 992px) */
@media (min-width: 992px) {
    .admin-sidebar {
        width: 270px;
        background: var(--primary-dark);
        color: #cbd5e1;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
        position: relative;
        z-index: 1020;
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Desktop Collapsed Sidebar */
    .admin-layout.sidebar-collapsed .admin-sidebar,
    .admin-sidebar.collapsed {
        margin-left: -270px;
        pointer-events: none;
    }
}

/* Mobile & Tablet Drawer (< 992px) */
@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        height: 100%;
        height: 100dvh;
        background: var(--primary-dark);
        color: #cbd5e1;
        display: flex;
        flex-direction: column;
        z-index: 1060;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }
}

/* Sidebar Backdrop for Mobile/Tablet Drawer */
.admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1055;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

body.sidebar-open {
    overflow: hidden;
}

/* Fixed Header in Sidebar */
.admin-sidebar .sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Independent Scrollable Sidebar Menu Container */
.admin-sidebar-menu {
    flex: 1;
    min-height: 0; /* Ensures container does not push beyond parent flex height */
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain; /* Prevents scroll chaining to parent window */
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.admin-sidebar-menu::-webkit-scrollbar {
    width: 5px;
}

.admin-sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
}

.admin-sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.admin-sidebar .nav-item-header {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 1.25rem 1.5rem 0.5rem;
    font-weight: 700;
}

.admin-sidebar .nav-link {
    color: #94a3b8;
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--accent);
}

.admin-sidebar .nav-link i {
    font-size: 1.15rem;
    width: 20px;
    text-align: center;
}

/* Sidebar Dropdown & Submenu */
.admin-sidebar .nav-item-dropdown {
    position: relative;
}

.admin-sidebar .nav-dropdown-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    font-family: inherit;
}

.admin-sidebar .nav-dropdown-toggle .nav-dropdown-arrow {
    font-size: 0.75rem;
    width: auto;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
    opacity: 0.75;
}

.admin-sidebar .nav-dropdown-toggle[aria-expanded="true"] .nav-dropdown-arrow,
.admin-sidebar .nav-item-dropdown.show .nav-dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.admin-sidebar .nav-dropdown-toggle.parent-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-left: 4px solid var(--accent);
}

.admin-sidebar .nav-submenu {
    background: rgba(0, 0, 0, 0.18);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-left: 1.5rem;
    margin-right: 0.5rem;
    margin-top: 2px;
    margin-bottom: 4px;
    border-radius: 0 6px 6px 0;
}

.admin-sidebar .nav-submenu .nav-sub-link {
    padding: 0.5rem 1rem 0.5rem 0.85rem;
    font-size: 0.86rem;
    color: #94a3b8;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-sidebar .nav-submenu .nav-sub-link i {
    font-size: 0.95rem;
    width: 16px;
    text-align: center;
}

.admin-sidebar .nav-submenu .nav-sub-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.admin-sidebar .nav-submenu .nav-sub-link.active {
    color: #ffffff;
    background: rgba(13, 110, 253, 0.18);
    border-left: 3px solid #0d6efd;
    font-weight: 600;
}

/* Main Content Area */
.admin-content {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Allows flex child to shrink below intrinsic content width */
    background: #f8fafc;
    overflow: hidden;
}

/* Fixed Topbar */
.admin-topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    flex-shrink: 0;
    z-index: 1010;
}

@media (min-width: 768px) {
    .admin-topbar {
        height: 70px;
        padding: 0 1.75rem;
    }
}

/* Modern Minimal Sidebar Toggle Button */
.sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius-md);
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 1.15rem;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.sidebar-toggle-btn:hover {
    background-color: #e2e8f0;
    color: var(--primary-color);
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.sidebar-toggle-btn:active {
    transform: translateY(0) scale(0.96);
    background-color: #cbd5e1;
}

.sidebar-toggle-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.sidebar-toggle-btn i {
    display: inline-block;
    transition: transform 0.25s ease;
    pointer-events: none;
}

/* Subtle icon indicator flip when collapsed on desktop */
.admin-layout.sidebar-collapsed .sidebar-toggle-btn i,
.sidebar-toggle-btn.collapsed i {
    transform: scaleX(-1);
}

.admin-topbar .page-title-heading {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

@media (min-width: 576px) {
    .admin-topbar .page-title-heading {
        font-size: 1.25rem;
        max-width: 400px;
    }
}

@media (min-width: 992px) {
    .admin-topbar .page-title-heading {
        max-width: 600px;
    }
}

/* Independent Scrollable Main Content Container */
.admin-main-scroll {
    flex: 1;
    min-height: 0; /* Critical flex property to enable child scrolling within 100% height */
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain; /* Strict isolation: scrolling inside content never moves window or sidebar */
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.admin-main-scroll::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.admin-main-scroll::-webkit-scrollbar-track {
    background: #f8fafc;
}

.admin-main-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

.admin-main-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.admin-body {
    padding: 1rem;
    flex: 1;
}

@media (min-width: 768px) {
    .admin-body {
        padding: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .admin-body {
        padding: 2rem;
    }
}

/* ---------------- Payment Gateway Buttons & Modal ---------------- */
.gateway-card {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 0.75rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.gateway-card:hover,
.gateway-card.selected {
    border-color: #d97706;
    background: #fffbeb;
    transform: translateY(-2px);
}

.gateway-card img {
    height: 38px;
    object-fit: contain;
    margin-bottom: 0.35rem;
}

/* ---------------- Printable Ticket & Receipt ---------------- */
.ticket-container, .receipt-container {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: var(--shadow-card);
}

@media (max-width: 575.98px) {
    .ticket-container, .receipt-container {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .ticket-container, .receipt-container {
        padding: 1.75rem;
    }
}

@media print {
    body * {
        visibility: hidden;
    }
    .ticket-container, .ticket-container *,
    .receipt-container, .receipt-container * {
        visibility: visible;
    }
    .ticket-container, .receipt-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: 1px solid #000;
        box-shadow: none;
    }
    .no-print {
        display: none !important;
    }
}

/* ---------------- Global Responsive Rules & Component Enhancements ---------------- */

/* Strictly prevent horizontal document overflow */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Media responsiveness */
img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

/* Responsive Table Styling */
.table-responsive {
    border-radius: var(--radius-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

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

.table th {
    white-space: nowrap;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.table td.text-nowrap, 
.table .badge,
.table .btn-sm {
    white-space: nowrap;
}

/* Responsive Pagination Controls */
.pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0;
}

.page-item .page-link {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
}

/* Responsive Stepper Wizard on Mobile */
@media (max-width: 575.98px) {
    .stepper-wrapper {
        margin-bottom: 1.5rem;
    }

    .stepper-wrapper::before {
        top: 17px;
        left: 20px;
        right: 20px;
        height: 2px;
    }

    .step-circle {
        width: 34px;
        height: 34px;
        font-size: 0.82rem;
        border-width: 2px;
        margin-bottom: 0.35rem;
    }

    .step-item.active .step-circle {
        box-shadow: 0 0 0 4px var(--accent-glow);
    }

    .step-title {
        font-size: 0.68rem;
        line-height: 1.15;
    }
}

/* Navbar Desktop Optimization (992px to 1280px) */
@media (min-width: 992px) and (max-width: 1280px) {
    .navbar-alumni .nav-link {
        font-size: 0.84rem;
        padding: 0.4rem 0.5rem !important;
    }

    .navbar-alumni .navbar-brand {
        font-size: 1.15rem;
        gap: 0.4rem;
    }
}

/* Navbar Mobile Collapse Overlay & Responsive Height */
@media (max-width: 991.98px) {
    .navbar-alumni {
        position: sticky;
        top: 0;
        z-index: 1040;
    }

    .navbar-alumni > .container {
        position: relative;
    }

    .navbar-alumni .navbar-collapse {
        position: absolute;
        top: calc(100% + 0.35rem);
        left: 0.75rem;
        right: 0.75rem;
        z-index: 1050;
        background: rgba(10, 28, 51, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: var(--radius-md);
        padding: 1.25rem;
        margin-top: 0;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
        max-height: calc(100dvh - 100% - 1.5rem);
        max-height: calc(100vh - 100% - 1.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-alumni .navbar-collapse.collapsing {
        position: absolute;
        top: calc(100% + 0.35rem);
        left: 0.75rem;
        right: 0.75rem;
        z-index: 1050;
        background: rgba(10, 28, 51, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.65);
        max-height: calc(100dvh - 100% - 1.5rem);
        max-height: calc(100vh - 100% - 1.5rem);
        overflow: hidden;
        transition: height 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
    }

    .navbar-alumni .navbar-collapse.collapse:not(.show) {
        display: none;
    }

    .navbar-alumni .navbar-collapse.collapse.show {
        display: block;
        animation: mobileNavFadeSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .navbar-alumni .navbar-collapse::-webkit-scrollbar {
        width: 5px;
    }

    .navbar-alumni .navbar-collapse::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-full);
    }

    .navbar-alumni .navbar-collapse::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.25);
        border-radius: var(--radius-full);
    }

    .navbar-alumni .navbar-collapse::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.4);
    }

    .navbar-alumni .navbar-nav {
        margin-bottom: 1rem !important;
        text-align: right;
    }

    .navbar-alumni .navbar-nav .nav-item {
        width: 100%;
        text-align: right;
    }

    .navbar-alumni .nav-link {
        padding: 0.6rem 1rem !important;
        border-radius: var(--radius-sm);
        text-align: right;
    }

    .navbar-alumni .mobile-auth-wrapper {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1rem;
        margin-top: 0.5rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        align-items: center;
        justify-content: flex-end;
    }
}

@keyframes mobileNavFadeSlide {
    0% {
        opacity: 0.85;
        transform: translateY(-4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Modals */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-content {
        border-radius: var(--radius-md);
    }

    .modal-header, .modal-body, .modal-footer {
        padding: 1rem;
    }
}

/* Dropdown menus responsive bounding */
.dropdown-menu {
    max-width: calc(100vw - 2rem);
}

/* ==========================================================================
   Standardized System Pagination (#0d6efd)
   ========================================================================== */
.bpi-pagination-container {
    border-radius: var(--radius-sm, 8px);
}

.bpi-pagination-container .pagination {
    gap: 4px;
    margin: 0;
}

.bpi-pagination-container .page-item .page-link {
    color: #0d6efd;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px !important;
    padding: 0.35rem 0.65rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.bpi-pagination-container .page-item .page-link:hover {
    color: #0b5ed7;
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    z-index: 2;
}

.bpi-pagination-container .page-item.active .page-link {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.35);
    font-weight: 600;
    z-index: 3;
}

.bpi-pagination-container .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.bpi-pagination-container .per-page-dropdown {
    font-size: 0.85rem;
    font-weight: 500;
    border-color: #cbd5e1;
    border-radius: 6px;
    padding-top: 0.28rem;
    padding-bottom: 0.28rem;
    background-color: #ffffff;
}

.bpi-pagination-container .per-page-dropdown:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.18);
}

@media (max-width: 767.98px) {
    .bpi-pagination-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 0.85rem !important;
    }
    .bpi-pagination-container .pagination-records-info {
        width: 100%;
        text-align: center;
    }
    .bpi-pagination-container .pagination-nav-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 4px;
    }
}

/* Circular Icon Buttons */
.btn-circle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.btn-circle.btn-sm {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    min-height: 34px;
}

.btn-circle.btn-lg {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
}

/* Top Notice Banner Styles */
.top-notice-banner {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    z-index: 1030;
    transition: all 0.3s ease;
}

.top-notice-banner .carousel-control-prev,
.top-notice-banner .carousel-control-next {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.top-notice-banner .carousel-control-prev:hover,
.top-notice-banner .carousel-control-next:hover {
    opacity: 1;
}

@media (max-width: 575.98px) {
    .top-notice-banner {
        font-size: 0.8125rem;
        padding-top: 0.45rem !important;
        padding-bottom: 0.45rem !important;
    }
}

