/* Static Pages Fix - Specific fixes for static pages */

/* Fix card behavior on static pages */
.static-page .card {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

/* Ensure proper card spacing */
.static-page .card.mb-4 {
    margin-bottom: 1.5rem !important;
}

.static-page .card.mb-5 {
    margin-bottom: 3rem !important;
}

/* Fix card body padding */
.static-page .card-body {
    padding: 1.5rem !important;
}

/* Ensure cards don't expand unnecessarily */
.static-page .row .card {
    height: auto !important;
}

/* Fix for specific card types */
.static-page .card.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Ensure proper text wrapping */
.static-page .card-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fix for card titles */
.static-page .card-title {
    margin-bottom: 0.75rem !important;
}

/* Fix for card headers */
.static-page .card-header {
    padding: 0.75rem 1.5rem !important;
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
}

/* Ensure proper container behavior */
.static-page .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Fix for row spacing */
.static-page .row {
    margin-left: -15px !important;
    margin-right: -15px !important;
}

.static-page .row > * {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Fix for column spacing */
.static-page .col-lg-8 {
    flex: 0 0 auto !important;
    width: 66.66666667% !important;
}

.static-page .col-lg-8.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ensure proper text alignment */
.static-page .text-center {
    text-align: center !important;
}

/* Fix for lead text */
.static-page .lead {
    font-size: 1.25rem !important;
    font-weight: 300 !important;
}

/* Fix for display classes */
.static-page .display-4 {
    font-size: 2.5rem !important;
    font-weight: 300 !important;
    line-height: 1.2 !important;
}

/* Ensure proper spacing for headings */
.static-page .h4 {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

/* Fix for margin bottom classes */
.static-page .mb-3 {
    margin-bottom: 1rem !important;
}

.static-page .mb-4 {
    margin-bottom: 1.5rem !important;
}

.static-page .mb-5 {
    margin-bottom: 3rem !important;
}

/* Fix for padding classes */
.static-page .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Ensure proper border radius */
.static-page .card {
    border-radius: 0.375rem !important;
}

/* Fix for shadow */
.static-page .shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Ensure proper table behavior */
.static-page .table-responsive {
    overflow-x: auto !important;
}

.static-page .table {
    width: 100% !important;
    margin-bottom: 1rem !important;
}

/* Fix for alert boxes */
.static-page .alert {
    padding: 0.75rem 1.25rem !important;
    margin-bottom: 1rem !important;
    border: 1px solid transparent !important;
    border-radius: 0.375rem !important;
}

/* Ensure proper list styling */
.static-page ul {
    padding-left: 1.5rem !important;
}

.static-page li {
    margin-bottom: 0.25rem !important;
}

/* Fix for icons */
.static-page .fas, .static-page .far, .static-page .fab {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Ensure proper button styling */
.static-page .btn {
    display: inline-block !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-decoration: none !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    border-radius: 0.375rem !important;
}

/* Fix for form elements */
.static-page .form-control {
    display: block !important;
    width: 100% !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #212529 !important;
    background-color: #fff !important;
    background-clip: padding-box !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
}

/* Ensure proper spacing for accordion */
.static-page .accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.125) !important;
}

.static-page .accordion-button {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 1rem 1.25rem !important;
    font-size: 1rem !important;
    color: #212529 !important;
    text-align: left !important;
    background-color: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow-anchor: none !important;
}

/* Fix for badge */
.static-page .badge {
    display: inline-block !important;
    padding: 0.35em 0.65em !important;
    font-size: 0.75em !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #fff !important;
    text-align: center !important;
    white-space: nowrap !important;
    vertical-align: baseline !important;
    border-radius: 0.375rem !important;
}
