/* =========================================================================
   DIGITAL NEXUS - Dynamic Event & Course Registration Management System
   Premium Dark-Blue Glassmorphic Corporate UI/UX Stylesheet
   All colors, fonts, and border-radii bind to dynamic CSS custom properties
   injected from the `website_settings` table.
   ========================================================================= */

:root {
    --dn-primary: #0B1D3A;
    --dn-secondary: #1E3A8A;
    --dn-accent: #38BDF8;
    --dn-bg: #060E1F;
    --dn-surface: #0F2242;
    --dn-text: #F8FAFC;
    --dn-muted: #94A3B8;
    --dn-radius: 14px;
    --dn-font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --dn-font-heading: 'Poppins', 'Manrope', sans-serif;
}

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

html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    background-color: var(--dn-bg);
    color: var(--dn-text);
    font-family: var(--dn-font-body);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .dn-heading {
    font-family: var(--dn-font-heading);
    letter-spacing: -0.02em;
}

/* Top Contact Bar (Hidden on mobile per user preference, visible on desktop) */
.dn-topbar {
    background: rgba(4, 9, 20, 0.95);
    border-bottom: 1px solid rgba(56, 189, 248, 0.16);
    font-size: 0.82rem;
    padding: 0.45rem 0;
}
@media (max-width: 768px) {
    .dn-topbar {
        display: none !important;
    }
}

/* Glassmorphic Sticky Navbar */
.dn-navbar {
    background: rgba(11, 29, 58, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    padding: 0.8rem 0;
    z-index: 1030;
}

.dn-nav-link {
    color: #E2E8F0 !important;
    font-weight: 500;
    font-size: 0.94rem;
    padding: 0.5rem 0.9rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dn-nav-link:hover, .dn-nav-link.active {
    color: var(--dn-accent) !important;
    background: rgba(56, 189, 248, 0.1);
}

/* Hero Section */
.dn-hero {
    position: relative;
    padding: 5rem 0 4.5rem;
    background:
        radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.20), transparent 40%),
        radial-gradient(circle at 12% 80%, rgba(37, 99, 235, 0.25), transparent 45%),
        linear-gradient(145deg, var(--dn-bg) 0%, var(--dn-primary) 55%, #091933 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.18);
    overflow: hidden;
}

.dn-page-hero {
    padding: 3.5rem 0 3rem;
    background: linear-gradient(135deg, #060E1F 0%, #0B1D3A 60%, #1E3A8A 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.22);
}

.dn-page-hero h1 {
    color: #FFFFFF !important;
}

/* Glassmorphic Cards */
.dn-card {
    background: linear-gradient(165deg, rgba(15, 34, 66, 0.86) 0%, rgba(11, 29, 58, 0.92) 100%);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: var(--dn-radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.dn-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 22px 48px rgba(3, 105, 161, 0.28);
}

/* Buttons */
.btn-dn-primary {
    background: linear-gradient(135deg, var(--dn-accent) 0%, #2563EB 100%);
    color: #060E1F;
    font-weight: 700;
    border: none;
    border-radius: calc(var(--dn-radius) - 4px);
    padding: 0.72rem 1.5rem;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
    transition: all 0.22s ease;
}

.btn-dn-primary:hover {
    background: linear-gradient(135deg, #7DD3FC 0%, #3B82F6 100%);
    color: #060E1F;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.45);
}

.btn-dn-outline {
    background: rgba(56, 189, 248, 0.08);
    color: var(--dn-accent);
    border: 1px solid rgba(56, 189, 248, 0.45);
    font-weight: 600;
    border-radius: calc(var(--dn-radius) - 4px);
    padding: 0.7rem 1.4rem;
    transition: all 0.2s ease;
}

.btn-dn-outline:hover {
    background: var(--dn-accent);
    color: #060E1F;
}

/* Form Controls */
.dn-input, .form-control, .form-select {
    background-color: rgba(6, 14, 31, 0.85) !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    color: #F8FAFC !important;
    border-radius: 10px;
    padding: 0.68rem 0.95rem;
}

.dn-input:focus, .form-control:focus, .form-select:focus {
    border-color: var(--dn-accent) !important;
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.22) !important;
}

/* Mobile 2-Column Responsive Product/Event Grid */
@media (max-width: 576px) {
    .dn-mobile-2col > [class*="col-"] {
        width: 50% !important;
        padding-left: 6px;
        padding-right: 6px;
    }
    .dn-mobile-2col .dn-card {
        padding: 0.75rem !important;
    }
    .dn-mobile-2col h5, .dn-mobile-2col h4 {
        font-size: 0.92rem !important;
    }
    .dn-hero {
        padding: 2.8rem 0 2.5rem;
    }
}

/* Floating WhatsApp Assistance Widget */
.dn-whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dn-whatsapp-float:hover {
    color: #FFFFFF;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 34px rgba(37, 211, 102, 0.55);
}

/* Payment Method Selector Cards */
.dn-pay-option {
    cursor: pointer;
    border: 2px solid rgba(148, 163, 184, 0.22);
    background: rgba(6, 14, 31, 0.7);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.dn-pay-option.active {
    border-color: var(--dn-accent);
    background: rgba(56, 189, 248, 0.12);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}
