.content {
    flex: 1 0 auto; /* works to keep the footer at the botom of the screen with short content */
}

.footer {
    flex-shrink: 0; /* works to keep the footer at the botom of the screen with short content */
}

.footer-link {
    color: white; /* Color of the links in the footer */
    text-decoration: none;
}

.footer-link:hover {
    color: #ff0000; /* color of the links in the footer when mouse over/ hover */
}

.navbar-brand img {
    height: 40px; /* size of the logo image in the header */
}

.star-filled {
    color: green; /* stars for the review collector on the account dashboard */
}

.star-unfilled {
    color: white; /* stars for the review collector on the account dashboard */
}

.btn-outline-secondary.forms-link:hover {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-secondary.supplemental-link:hover {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Custom aspect ratio for 8.5x11 documents */
.aspect-ratio-85x11 {
    position: relative;
    width: 100%;
    /* 11 / 8.5 = 1.2941, so we use 129.41% to set the padding-top value */
    padding-top: 129.41%;
}

.aspect-ratio-85x11 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* This will ensure that the image is scaled correctly within the aspect ratio container */
}

/* General styles for tabs */
.nav-tabs {
    -webkit-overflow-scrolling: touch; /* Momentum scrolling on iOS */
}

.nav-tabs .nav-item {
    display: inline-block;
    float: none;
}

/* Horizontal scrolling tabs on mobile */
.nav-tabs {
    display: block;
    white-space: nowrap;
    overflow-x: auto; /* Allows horizontal scrolling on smaller screens */
    -webkit-overflow-scrolling: touch; /* For momentum scrolling on iOS */
}

.nav-tabs .nav-item {
    display: inline-block;
    float: none;
}

/* Additional style to prevent vertical overflow */
.nav-tabs {
    overflow-y: hidden; /* Hide vertical scrollbar */
}

/* Ensure tab content does not exceed its container */
.tab-content .tab-pane {
    overflow-y: auto; /* Allows scrolling within tab content if needed */
}

.image-container {
    display: inline-block;
    position: relative;
    max-width: 60%;
}

.blur-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 35%; /* Cover only the bottom 35% */
    backdrop-filter: blur(2px); /* Apply blur effect */
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white for better visibility */
    display: flex;
    align-items: center; /* Vertically center items within the blur */
    justify-content: center; /* Horizontally center items within the blur */
}

.watermark {
    color: red; /* Text color */
    opacity: 0.7; /* Transparency */
    font-size: large; /* Text size */
    text-align: center; /* Center the text */
    z-index: 1; /* Ensure the watermark is above the blur */
}

.custom-badge-erecording {
    padding: .6em .8em; /* Adjust the padding to increase size */
    font-size: 1rem; /* Adjust font size as needed */
    line-height: 1; /* Adjust line height for vertical alignment */
    vertical-align: middle; /* Aligns text vertically */
}

/* Prevent CLS on the main image by reserving space */
.main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Preserve the 1920x1080 aspect ratio */
}

/* Reserve space for collapsible state links to prevent CLS */
#stateLinksCollapse {
    transition: height 0.3s ease;
}

/* Placeholder for articles to prevent CLS */
.article-placeholder {
    min-height: 400px; /* Reserve space for each article card */
    margin-bottom: 1rem; /* Spacing between article cards */
    background: #f8f9fa; /* Light grey background for placeholder */
    border: 1px solid #ddd; /* Border for placeholder */
    border-radius: 5px; /* Rounded corners for placeholder */
    padding: 10px; /* Padding inside placeholder */
    text-align: center; /* Center align content */
}

/* Ensure that the container for articles has a minimum height to prevent layout shifts */
#articles {
    min-height: 1200px; /* Adjust based on the expected content height */
}

/* used in common deed type pages (/quitclaim-deed) for loading articles from wordpress */
/* Styles for the loading indicator */
.loading-indicator {
    text-align: center;
    font-size: 1.5em;
    margin: 20px 0;
}

.article-placeholder .card {
    border: none;
    box-shadow: none;
}

.article-placeholder .card-title {
    color: #666;
    font-size: 1.2em;
    font-weight: bold;
}

/* ===== Homepage Enhancement Styles (v1.25) ===== */

/* Trust Indicators - subtle enhancement */
.trust-indicators {
    transition: all 0.3s ease;
}

.trust-indicators i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.trust-indicators .col-6:hover i,
.trust-indicators .col-md-3:hover i {
    transform: scale(1.1);
    color: #0a58ca !important;
}

/* Article card enhancements */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Button enhancements */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Smooth scrolling support */
html {
    scroll-behavior: smooth;
}

/* State links hover improvement */
.forms-link {
    transition: all 0.2s ease;
}

.forms-link:hover {
    transform: translateX(5px);
}

/* Responsive image improvements */
@media (max-width: 768px) {
    .trust-indicators .col-6 {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    #articles {
        min-height: auto;
    }
}