@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;800&display=swap');

/* LoanCraft Brand Colors */
:root {
    --lc-blue-dark: #003366;
    --lc-blue-mid: #004a99;
    --lc-blue-light: #007bff;
    --lc-gray-bg: #f8f9fa;
    --lc-text-dark: #333333;
}

/* Global Reset */
html, body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--lc-text-dark);
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Layout Force-Stack */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: block;
    width: 100%;
}

/* Remove default Blazor padding that "pushes" content */
.content {
    padding: 0 !important;
}

/* Custom Navbar */
.navbar {
    border-bottom: 3px solid var(--lc-blue-dark);
    padding: 1rem 0;
    background-color: #fff;
}

.nav-link {
    font-weight: 600;
    color: var(--lc-blue-dark) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Buttons */
.btn-primary {
    background-color: var(--lc-blue-mid) !important;
    border-color: var(--lc-blue-mid) !important;
    padding: 10px 25px;
    border-radius: 2px;
    color: #fff !important;
}

    .btn-primary:hover {
        background-color: var(--lc-blue-dark) !important;
    }

/* Section Controls */
section {
    padding: 60px 0;
    width: 100%;
    clear: both;
}

/* Hero Section Specifics */
.hero-section {
    width: 100%;
    margin-top: 0;
}

    .hero-section h1 {
        font-weight: 800;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

/* Cards */
.card {
    transition: all 0.3s ease;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.08);
}

    .card:hover {
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
        transform: translateY(-5px);
    }

/* Blazor Error UI */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blog-content h3 {
    margin-top: 2rem;
    font-weight: 700;
    color: #0d6efd;
}

.blog-content p {
    margin-bottom: 1.5rem;
}