/* Override Messy Styles - Clean up any conflicting styles */

/* ===== FORCE CLEAN LAYOUT ===== */
* {
    box-sizing: border-box !important;
}

/* ===== TYPOGRAPHY OVERRIDES ===== */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    line-height: 1.6 !important;
    color: #333 !important;
    background-color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== REMOVE ANY UNWANTED ANIMATIONS ===== */
*,
*::before,
*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* ===== NAVIGATION CLEANUP ===== */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e9ecef !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand {
    color: #0056b3 !important;
    font-weight: 700 !important;
}

.nav-link {
    color: #6c757d !important;
    font-weight: 500 !important;
}

.nav-link:hover,
.nav-link:focus {
    color: #0056b3 !important;
}

/* ===== BUTTON CLEANUP ===== */
.btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0.75rem 2rem !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-primary {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #003d82 !important;
    border-color: #003d82 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3) !important;
}

.btn-outline-primary {
    background-color: transparent !important;
    border-color: #0056b3 !important;
    color: #0056b3 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3) !important;
}

/* ===== CARD CLEANUP ===== */
.document-card {
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
    transition: all 0.3s ease !important;
}

.document-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    border-color: #0056b3 !important;
    color: inherit !important;
    text-decoration: none !important;
}

.feature-card {
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    text-align: center !important;
    transition: transform 0.3s ease !important;
}

.feature-card:hover {
    transform: translateY(-4px) !important;
}

/* ===== HERO SECTION CLEANUP ===== */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    padding: 5rem 0 !important;
    min-height: 80vh !important;
    display: flex !important;
    align-items: center !important;
}

.hero-title {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    color: #212529 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
}

.hero-subtitle {
    font-size: 1.25rem !important;
    color: #6c757d !important;
    margin-bottom: 2.5rem !important;
    line-height: 1.6 !important;
}

/* ===== SECTION CLEANUP ===== */
.section-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #212529 !important;
    margin-bottom: 1rem !important;
}

.quick-links-section {
    padding: 4rem 0 !important;
    background-color: #ffffff !important;
}

.features-section {
    padding: 4rem 0 !important;
    background-color: #f8f9fa !important;
}

/* ===== GRID CLEANUP ===== */
.document-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 3rem !important;
}

.features-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 3rem !important;
}

/* ===== FOOTER CLEANUP ===== */
.footer {
    background-color: #212529 !important;
    color: white !important;
    padding: 3rem 0 1rem !important;
}

.footer a {
    color: #adb5bd !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.footer a:hover {
    color: white !important;
}

/* ===== RESPONSIVE OVERRIDES ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .document-grid {
        grid-template-columns: 1fr !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    
    .btn {
        width: 100% !important;
        max-width: 300px !important;
    }
}

/* ===== UTILITY OVERRIDES ===== */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

.text-center {
    text-align: center !important;
}

.text-muted {
    color: #6c757d !important;
}

/* ===== REMOVE ANY DARK MODE STYLES ===== */
html,
body,
.container,
.container-fluid,
.row,
.col,
div,
section,
nav,
header,
footer,
main,
article,
aside {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #333 !important;
}

/* ===== FORCE LIGHT MODE ===== */
* {
    background-color: inherit !important;
    color: inherit !important;
}

/* ===== CLEAN UP ANY MESSY ANIMATIONS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== ENSURE PROPER SPACING ===== */
.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

/* ===== FINAL CLEANUP ===== */
body * {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}