/**
 * TraderCage Custom CSS
 */

/* Toastify/Toastr custom styles */
html, body {
    overflow-x: clip !important;
    min-height: 100%;
    scrollbar-gutter: stable;
    width: 100% !important;
    position: relative;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Inter', 'Source Sans Pro', sans-serif !important;
}
.toastify {
    font-family: 'Source Sans Pro', sans-serif;
    padding: 12px 20px;
}

#toast-container > div {
    opacity: 1 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    font-family: 'Inter', 'Source Sans Pro', sans-serif !important;
    border-radius: 8px !important;
}

#toast-container > .toast-success {
    background-color: var(--primary-color) !important;
    background-image: none !important;
    color: #ffffff !important;
}

#toast-container > .toast-error {
    background-color: #dc3545 !important;
    background-image: none !important;
    color: #ffffff !important;
}

.toast-message {
    font-weight: 500 !important;
    font-size: 0.95rem !important;
}

:root {
    --primary: var(--primary-color) !important;
    --blue: var(--primary-color) !important;
    --indigo: var(--primary-color) !important;
    --info: #333333 !important;
}

::selection {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Modal animation */
@keyframes hp-modal-in {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alert fallback */
#hp-success-msg, #hp-error-msg { display: none; }

/* Phase-Trade Pill Badge - Brand Orange */
.phase-pill-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.phase-pill-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.3);
}

/* Custom Dark Mode Branding - Orange & Black */
.dark-mode .content-wrapper,
.dark-mode .main-footer,
.dark-mode .main-header {
    background-color: #000000 !important;
    border-color: #1a1a1a !important;
}

.dark-mode .card,
.dark-mode .modal-content,
.dark-mode .info-box {
    background-color: #0a0a0a !important;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.dark-mode .bg-light {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.dark-mode .text-muted {
    color: #888888 !important;
}

.dark-mode h1, .dark-mode h2, .dark-mode h3, 
.dark-mode h4, .dark-mode h5, .dark-mode h6,
.dark-mode label, .dark-mode p {
    color: #ffffff !important;
}

/* Fix dark mode inputs and autofill - Orange Focus */
.dark-mode .form-control {
    background-color: #1a1a1a !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

.dark-mode .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2) !important;
}

.dark-mode .form-control::placeholder {
    color: #888888 !important;
    opacity: 0.7;
}

.dark-mode .input-group-text {
    background-color: #333333 !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}

/* browser Autofill override for Dark Theme */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
    background-color: transparent !important;
}

/* Global Primary Color Overrides - Orange Branding */
.btn-primary, .bg-primary, .badge-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

a {
    color: var(--primary-color);
}

a:hover {
    color: #ffa726;
}

/* Specific background colors for different dark contexts */
.login-body input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
}

.dark-mode input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
}

/* Force Dark Mode consistency for all containers */
.content-wrapper, .main-footer, .main-header, .login-page {
    background-color: #000000 !important;
    color: #e0e0e0 !important;
}

/* Card and Modal Refinement */
.dark-mode .card,
.dark-mode .modal-content,
.dark-mode .info-box,
.dark-mode .card-header,
.dark-mode .card-footer {
    background-color: #0d0d0d !important; /* Slightly lighter than pure black for depth */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.dark-mode .text-muted {
    color: #888888 !important;
}

.dark-mode .bg-light {
    background-color: #1a1a1a !important;
    color: var(--primary-color) !important; /* Orange text on dark surface */
}

/* Active elements and highlights */
.dark-mode .nav-pills .nav-link.active,
.dark-mode .page-item.active .page-link {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Custom Toggle Switch */
.hp-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.hp-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.hp-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.hp-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .hp-slider {
    background-color: #28a745;
}

input:focus + .hp-slider {
    box-shadow: 0 0 1px #28a745;
}

input:checked + .hp-slider:before {
    transform: translateX(22px);
}

.dark-mode .hp-slider {
    background-color: #475569;
}

/* Sidebar & Navbar Branding - Orange & Black */
.main-sidebar, .main-sidebar::before {
    background-color: #000000 !important;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3) !important;
}

.nav-sidebar .nav-link:hover {
    color: var(--primary-color) !important;
}

.brand-link {
    background-color: #000000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.main-header {
    background-color: #000000 !important;
    border-bottom: 1px solid #1a1a1a !important;
}

.dark-mode .navbar-nav .nav-link {
    color: #e0e0e0 !important;
}

.dark-mode .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Dropdown Menu Theme - Permanent Dark */
.dropdown-menu {
    border-radius: 8px !important;
    padding: 0.5rem 0 !important;
}

.dropdown-item {
    color: #e0e0e0 !important;
    transition: all 0.2s ease !important;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Responsiveness Fixes */
.content-wrapper {
    overflow-x: hidden;
    background-color: #000000;
}

@media (max-width: 576px) {
    .card-body {
        padding: 1rem !important;
    }
    
    .direction-btn {
        padding: 1rem !important;
    }
    
    .direction-btn .small {
        font-size: 0.65rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }
}

.flex-gap-2 {
    gap: 0.5rem;
}

/* Ensure images and canvases don't overflow */
img, canvas, svg {
    max-width: 100%;
    height: auto;
}

.d-contents {
    display: contents;
}

/* Navbar Profile Dropdown Mobile Refinement */
.dark-mode .nav-link.bg-light.rounded-pill {
    background-color: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.dark-mode .nav-link.bg-light.rounded-pill span {
    color: #ffffff !important;
}

.dark-mode .nav-link.bg-light.rounded-pill i {
    color: var(--primary-color) !important; /* Orange accent */
}

/* Page Header & Breadcrumbs Cleanup */
.content-header {
    background-color: #000000 !important;
}

.breadcrumb-item a {
    color: var(--primary-color) !important;
}

.breadcrumb-item.active {
    color: #888888 !important;
}

/* New Login Design */
.login-body {
    background-color: #050505 !important;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: visible;
    font-family: 'Inter', 'Source Sans Pro', sans-serif;
    color: #e5e5e5;
}

.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.login-image-side {
    flex: 1;
    background: url('../img/login_bg.png') no-repeat center center;
    background-size: cover;
    display: block;
    position: relative;
}

.login-image-side::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(5, 5, 5, 0.4) 100%);
}

.login-form-side {
    width: 450px;
    background-color: #0a0a0a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
    position: relative;
    z-index: 2;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.login-header {
    margin-bottom: 40px;
}

.login-header .workspace-tag {
    color: #666;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.login-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
}

.login-header p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.login-card-v2 {
    background: #111;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.login-card-v2 .text-muted {
    color: #94a3b8 !important;
}

.login-card-v2 .text-muted, 
.login-header p,
.login-footer-links p,
.login-footer-links a {
    color: #94a3b8 !important;
}

.login-card-v2 a.text-muted:hover,
.login-footer-links a:hover {
    color: var(--primary-color) !important;
}

.login-card-v2 h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #eee;
}

.form-group-v2 {
    margin-bottom: 20px;
}

.form-group-v2 label {
    display: block;
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 8px;
}

.form-control-v2 {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px 15px;
    color: #fff;
    transition: all 0.2s;
}

.form-control-v2:focus {
    border-color: var(--primary-color);
    outline: none;
    background-color: #222;
}

.btn-orange-v2 {
    width: 100%;
    background-color: var(--primary-color);
    border: none;
    border-radius: 6px;
    padding: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.btn-orange-v2:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

.login-footer-links {
    margin-top: 30px;
    text-align: center;
}

.login-footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.login-footer-links a:hover {
    color: var(--primary-color) !important;
    opacity: 1;
    text-decoration: none;
}

/* Responsive adjustment */
@media (max-width: 992px) {
    .login-image-side {
        display: none;
    }
    .login-form-side {
        width: 100%;
        padding: 60px 30px;
        align-items: center;
        justify-content: flex-start;
        min-height: 100vh;
    }
    .login-header, .login-card-v2 {
        width: 100%;
        max-width: 400px;
    }
}

/* Custom Card Header styling for matching the theme */
.hp-card-header {
    background: rgba(0,0,0,0.03) !important;
    border-color: rgba(0,0,0,0.1) !important;
}

.hp-card-header .card-title {
    color: #333 !important; /* Default dark for light mode */
}

.dark-mode .hp-card-header {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
}

.dark-mode .hp-card-header .card-title {
    color: #fff !important; /* White for dark mode */
}

/* Custom Table Header styling for better visibility */
.hp-table-header {
    background: rgba(0,0,0,0.02) !important;
    border-bottom: 2px solid rgba(0,0,0,0.05) !important;
}

.hp-table-header th {
    color: #495057 !important; /* Darker gray for light mode */
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.dark-mode .hp-table-header {
    background: var(--primary-color) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .hp-table-header th {
    color: #000000 !important; /* Pure black text on orange background for maximum contrast */
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
}

@media (max-width: 768px) {
    .table-responsive .table {
        min-width: 600px; /* Ensure enough room for table columns, scroll becomes active */
    }
}

/* Global Dark Mode Container Overrides */
.dark-mode .card,
.dark-mode .modal-content {
    background-color: #0c0c0c !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #e5e5e5;
}

.dark-mode .card-body,
.dark-mode .modal-body {
    background-color: transparent !important;
}

.dark-mode .table {
    color: #f1f5f9 !important; /* Extremely high contrast light gray */
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
    --bs-table-striped-color: #f1f5f9;
    --bs-table-active-color: #ffffff;
    --bs-table-hover-color: #ffffff;
}

.dark-mode .text-muted, 
.dark-mode .small.text-muted {
    color: #94a3b8 !important; /* Brighter muted text for readability */
}

.dark-mode td, .dark-mode th {
    color: #f1f5f9 !important;
}

.dark-mode .table-hover tbody tr:hover {
    background-color: rgba(var(--primary-rgb), 0.03) !important;
    color: #fff !important;
}

/* Outcome Modal Theme Adaptation */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

/* Light Mode (Default) */
.outcome-card-v2 .card {
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

.outcome-card-v2 h6 { color: #2d3748 !important; }
.outcome-card-v2 p { color: #718096 !important; }

/* Dark Mode Overrides */
.dark-mode .outcome-card-v2 .card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.outcome-card-v2.active .card {
    border-color: var(--primary-color) !important;
    background: rgba(var(--primary-rgb), 0.05) !important;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.1);
}

.outcome-card-v2.active .card h6 {
    color: var(--primary-color) !important;
}

/* Dashboard Direction Buttons - Branded Orange & Black */
.direction-btn {
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    background-color: #0c0c0c !important;
    color: #888 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.direction-btn .dir-text {
    color: #fff !important;
}

.direction-btn.btn-success {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3) !important;
}

.direction-btn.btn-success .dir-text {
    color: #fff !important;
}

.direction-btn.btn-outline-secondary:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background-color: rgba(var(--primary-rgb), 0.05) !important;
}

/* Next Stage Preview Label */
#queuedStageLabel {
    color: #4a5568 !important;
}
.dark-mode #queuedStageLabel {
    color: #f1f5f9 !important;
}

/* Modal Inner Sections */
.modal-info-panel {
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.dark-mode .modal-info-panel {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Journal Entry Info Area */
.journal-entry-info {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .journal-entry-info {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Confirmation Toggle Fixes - Orange Scheme */
.confirm-toggle.btn-outline-secondary {
    border-color: #333333 !important;
    color: #aaaaaa !important;
    background: #111111 !important;
}

.confirm-toggle.btn-outline-secondary.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.dark-mode .confirm-toggle.btn-outline-secondary {
    background: #111111 !important;
    border-color: #333333 !important;
    color: #eeeeee !important;
}

/* AdminLTE Mobile UI Polish */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8) !important;
    z-index: 1045; /* Just below the sidebar (1050) */
    display: none;
}

#mainNavbar [data-widget="pushmenu"] i {
    color: var(--primary-color) !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
}

/* --- MOBILE RESPONSIVENESS OVERRIDES --- */
@media (max-width: 991px) {
    .hero-lp {
        text-align: center;
        padding: 40px 0;
    }

    .hero-lp .d-flex {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    .hero-lp .lead {
        font-size: 1.1rem !important;
        margin: 0 auto;
        max-width: 500px;
    }

    .hero-visual {
        margin-top: 50px;
        max-width: 100% !important;
    }

    .section-title {
        font-size: 2rem !important;
    }
}

@media (max-width: 767px) {
    .header .logo h1 {
        font-size: 1.4rem !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    .hero-visual img {
        max-height: 350px !important;
    }

    /* Floating badges adjustment for small screens */
    .floating-badge {
        padding: 8px 12px !important;
        max-width: 160px;
    }

    .badge-top-left {
        top: -10px !important;
        left: -5px !important;
        transform: scale(0.85);
    }

    .badge-bottom-right {
        bottom: -10px !important;
        right: -5px !important;
        transform: scale(0.85);
    }

    .icon-circle {
        width: 35px !important;
        height: 35px !important;
    }

    .icon-circle i {
        font-size: 1rem !important;
    }

    .landing-section {
        padding: 60px 0 !important;
    }

    /* Glass card padding normalization */
    .glass-card {
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
    }

    .btn-premium {
        width: 100%;
        text-align: center;
    }

    .hero-lp .btn-outline-light {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   Forex Academy Landing Page Redesign (Modern Design System)
   ========================================================================== */

:root {
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(25px);
    --shadow-premium: 0 25px 50px rgba(0, 0, 0, 0.5);
    --glow-primary: 0 0 30px rgba(var(--primary-rgb), 0.15);
}

/* Force override any global blue shadows */
body, .main, .landing-section, .glass-card {
    box-shadow: none !important;
}

.glass-card {
    box-shadow: var(--shadow-premium) !important;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
}

/* Dynamic Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color), #000 30%) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #fff 40%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Section Header Redesign */
.header-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.header-accent {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}
/* Removed the dual-line after element */

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-align: inherit; /* Allow parent alignment (like text-start) to take effect */
}

.text-start .section-title {
    text-align: left;
}

@media (max-width: 767px) {
    .section-title {
        font-size: 2.2rem;
    }
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-soft {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

.pulse-bg {
    position: absolute;
    width: 400px;
    height: 400px; /* Force square for perfect circle */
    aspect-ratio: 1/1;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    animation: pulse-soft 8s infinite;
    border-radius: 50%;
}

/* Landing Specific Layouts */
.landing-section {
    position: relative;
    padding: 40px 0; /* Further reduced to satisfy 'still too many gaps' feedback */
    overflow: hidden;
}

.hero-lp {
    min-height: 80vh; /* Reduced from 90vh to tighten space */
    display: flex;
    align-items: center;
    padding-top: 40px;
    background: radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), 0.05) 0%, transparent 50%);
}

.hero-lp .hero-visual {
    position: relative;
}

.hero-lp .floating-badge {
    position: absolute;
    padding: 15px 25px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.badge-top-left { top: 10%; left: -10%; }
.badge-bottom-right { bottom: 10%; right: -5%; }

.hero-lp .hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
}

@media (max-width: 992px) {
    .landing-section {
        padding: 60px 0;
    }
    .hero-lp {
        padding-top: 100px;
        text-align: center;
    }
    .hero-lp .hero-visual {
        margin-top: 50px;
    }
    .hero-lp .hero-content .d-flex {
        justify-content: center;
    }
}

.hero-lp .hero-visual {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
}

.hero-lp .hero-visual img {
    max-height: 420px; /* Slightly reduced height for a more compact feel */
    object-fit: cover;
    width: 100%;
}

/* Course Cards */
.course-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    cursor: pointer;
}

/* Course Cards */
.course-card .course-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.course-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary-color) !important;
    background: rgba(var(--primary-rgb), 0.04);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.25) !important;
}

.course-card:hover .course-icon {
    transform: scale(1.1);
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

.course-card:hover .bi-check-circle-fill {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.course-card:hover a {
    color: #fff !important;
    letter-spacing: 0.5px;
}

/* Features Grid */
.feature-item {
    padding: 30px;
}

.journey-path {
    position: relative;
}

.journey-step {
    position: relative;
    padding-left: 50px;
    margin-bottom: 50px;
}

.journey-step::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 30px;
    bottom: -50px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.journey-step:last-child::before {
    display: none;
}

.journey-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    font-size: 0.9rem;
    z-index: 2;
}

/* Hover effects for buttons */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    padding: 14px 35px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: none;
    position: relative;
    overflow: hidden;
    line-height: 1;
}

/* Standardized Icon Circle Geometry */
.icon-circle {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon-circle i {
    font-size: 1.2rem;
    line-height: 1;
}

/* Testimonial Swiper Adjustments */
.testimonial-slider .swiper-slide {
    height: auto;
    display: flex;
}

.testimonial-item {
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--primary-rgb), 0.3) !important;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    left: -100%;
}

.btn-premium:hover::after {
    left: 100%;
}

/* Custom Bootstrap 5 Admin Layout (Orange & Black) */
:root {
    --hp-sidebar-width: 260px;
    --hp-sidebar-bg: #000000;
    --hp-content-bg: #050505;
    --hp-orange: var(--primary-color);
    --hp-card-bg: #0a0a0a;
    --hp-border: rgba(255, 255, 255, 0.08);
}

.wrapper-v5 {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Sidebar V5 */
.sidebar-v5 {
    width: var(--hp-sidebar-width);
    background-color: var(--hp-sidebar-bg);
    border-right: 1px solid var(--hp-border);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    transition: all 0.3s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.sidebar-v5 .brand-link-v5 {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--hp-border);
    text-decoration: none;
}

/* Main Content V5 */
.main-content-v5 {
    flex: 1;
    margin-left: var(--hp-sidebar-width);
    background-color: var(--hp-content-bg);
    min-height: 100vh;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: calc(100% - var(--hp-sidebar-width));
    padding-top: 60px !important; /* Space for fixed navbar */
}

/* Navbar V5 */
.navbar-v5 {
    height: 60px;
    background-color: rgba(0, 0, 0, 0.8) !important;
    border-bottom: 1px solid var(--hp-border);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: var(--hp-sidebar-width) !important;
    z-index: 1040 !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
    .navbar-v5 {
        left: 0 !important;
    }
}

/* Responsive Sidebar */
@media (max-width: 991.98px) {
    .sidebar-v5 {
        left: calc(-1 * var(--hp-sidebar-width));
    }
    .main-content-v5 {
        margin-left: 0;
        width: 100%;
    }
    .sidebar-v5.show {
        left: 0;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
}

/* Menu items for BS5 sidebar */
.nav-v5 {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-link-v5 {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #888;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.nav-link-v5 i {
    width: 25px;
    margin-right: 10px;
    font-size: 1.1rem;
}

.nav-link-v5:hover, .nav-link-v5.active {
    color: #fff;
    background: rgba(var(--primary-rgb), 0.1);
    border-right: 3px solid var(--hp-orange);
}

.nav-link-v5.text-danger:hover {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #ff4d4d !important;
    border-right-color: #dc3545;
}

.nav-link-v5.active i {
    color: var(--hp-orange);
}

.nav-header-v5 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Global Checkbox and Radio Button Orange Theme Override */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--hp-orange) !important;
}

.form-check-input:checked {
    background-color: var(--hp-orange) !important;
    border-color: var(--hp-orange) !important;
}

.form-check-input:focus {
    border-color: rgba(var(--primary-rgb), 0.5) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25) !important;
}

/* Standardized Action Buttons */
.btn-action-sm {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
}
/* Sticky Header & Premium Scrolled State */
.header.sticky-top {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

/* Enhances the header appearance when the user scrolls */
body.scrolled .header {
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 10px 0 !important;
}

body.scrolled .header .sitename span {
    text-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.3);
}

/* Adjust scroll margin for smooth navigation */
section {
    scroll-margin-top: 80px;
}
