:root {
    --hero-bg-start: #1e3a8a;
    --hero-bg-end: #3b82f6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 100%);
    padding: 3rem 0 6rem 0;
    /* Reduced padding significantly */
    position: relative;
    overflow: hidden;
    color: white;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    margin-bottom: 4rem;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

/* Floating Stats */
.stats-float-container {
    margin-top: -7.6rem;
    /* Moved up ~10px more */
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
}

/* Features / Steps */
.step-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem auto;
    transition: all 0.3s ease;
}

.step-card {
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: #fff;
}

.step-card:hover {
    background: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

.step-card h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step-card:hover .step-icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Cards Hover */
.card-hover-up {
    transition: all 0.3s ease;
}

.card-hover-up:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Carousel Custom */
.carousel-custom-rounded {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Utilities for BS4 lack of gap */
.gap-3>* {
    margin-right: 1rem;
}

.gap-3>*:last-child {
    margin-right: 0;
}

.gap-y-3>* {
    margin-bottom: 1rem;
}

.gap-y-3>*:last-child {
    margin-bottom: 0;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-5 {
    border-radius: 1.5rem !important;
}

.bg-opacity-10 {
    --bg-opacity: 0.1;
    background-color: rgba(var(--bs-primary-rgb), var(--bg-opacity)) !important;
}

/* Simplified fallback */

/* Simulate opacity utilities if not present */
.bg-primary-soft {
    background-color: rgba(0, 123, 255, 0.1);
}

.bg-warning-soft {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-info-soft {
    background-color: rgba(23, 162, 184, 0.1);
}

.bg-success-soft {
    background-color: rgba(40, 167, 69, 0.1);
}

.text-primary {
    color: #0d6efd !important;
}

/* Modern Blue */
/* Utilities for BS4 lack of gap */
.gap-2>* {
    margin-right: 0.5rem;
}

.gap-2>*:last-child {
    margin-right: 0;
}

.rounded-top-5 {
    border-top-left-radius: 1.5rem !important;
    border-top-right-radius: 1.5rem !important;
}

.btn-white {
    background-color: #fff;
    border-color: #dee2e6;
    color: #333;
}

.btn-white:hover {
    background-color: #f8f9fa;
    color: #000;
}

.opacity-0 {
    opacity: 0 !important;
}

/* Custom Radio Button Styles */
input[name="applicant_type"]:checked+label {
    border-color: #0d6efd !important;
    /* var(--primary-color) fallback */
    background-color: rgba(13, 110, 253, 0.05);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15) !important;
}

input[name="applicant_type"]:checked+label .check-icon {
    opacity: 1 !important;
}

/* User Dropdown Premium Styling */
.dropdown-item {
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
    padding-left: 1.75rem !important;
}

.dropdown-item:hover i {
    color: #0d6efd !important;
}

.dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.05);
    color: #dc3545;
}

.user-avatar-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Back to Top Button */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    padding: 10px 18px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Kanit', sans-serif;
    letter-spacing: 0.5px;
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-back-to-top:hover {
    background: linear-gradient(135deg, #3a0ca3 0%, #4361ee 100%);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    transform: translateY(-3px);
    color: white;
}

.btn-back-to-top:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.2);
}

/* Blink Animation for Online Status */
@keyframes blink-soft {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        opacity: 1;
    }
}

.blink-online {
    animation: blink-soft 1.5s infinite ease-in-out;
}