/* Hamghurger Icon */
.navbar-toggler:focus,
.navbar-toggler-icon:focus {
    outline: none !important;
    box-shadow: none !important;
}
/* Jump to options/links */
.jump-to-nav {
    background-color: #f8f9fa; /* Light grey to distinguish it */
    padding: 10px 0;
    border-bottom: 1px solid #ddd; /* Soft separation */
}

.jump-to-nav span {
    font-weight: bold;
    margin-right: 10px;
}

.jump-link {
    margin: 0 10px;
    text-decoration: none;
    color: #212529;
    font-weight: 500;
}

.jump-link:hover {
    /* text-decoration: underline; */
    color: #0056b3; /* Darker blue for hover */
    font-weight: bold;
}

/* HERO */
.hero-top {
    margin-top: 5rem;
}
.hero-section {
    /* background-color: #F8F9FA ; */
    background: #fff; /* Keep clean contrast */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Interactive demo */
/* General Styling */
.selection-box,
.data-box {
    background: #f8f9fa; /* Light gray background */
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.data-box {
    display: flex;
    flex-direction: column;
    height: 100%;
 
}
.card {
    flex-grow: 1; /* Expands to fill remaining space */
    /* min-height: 60vh; */
    display: flex;
    flex-direction: column;
}

.card-body {
    flex-grow: 1; /* Makes sure content expands properly */
    overflow-y: auto; /* Enables scrolling if content overflows */
    background-color: #0d1117;
    /* #212529; */
    border-radius: 0 0 5px 5px;
}

.btn-select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-city {
    background: #007bff;
    color: white;
    border: none;
}

.btn-topic {
    background: #28a745;
    color: white;
    border: none;
}

.btn-select:hover {
    filter: brightness(90%);
}

/* === Census Demo Section === */

/* Selection Box Headers */
.selection-box h5,
.data-box h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0d6efd; /* Primary Blue */
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 15px;
}

/* Selection Output */
.selection-output {
    margin-top: 10px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 5px;
    font-size: 14px;
}

/* API Response Section JSON display */
.card-header span {
    font-size: 1.2rem;
    font-weight: 600;
    color: #084298; /* Dark Blue */
}

/* Improve JSON display */
.json {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    max-height: 400px;
    overflow-y: auto;
}

/* Active button styling */
.btn-select.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.sticky-top {
    z-index: 100;
}

.card pre {
    margin-bottom: 0;
    white-space: pre-wrap;
}

pre code {
    text-align: left;
}

.json-display {
    height: 400px;
}

.api-request {
    max-width: 500px;
}

/* census-demo-grid */
.response-container {
    display: grid;
    grid-template-columns: 1fr 1fr;

}
/* container rendering json response */
.json-display-container {
    width: 100%;
}

/* Ensure the JSON display is scrollable if content is too long */

.card pre {
    margin-bottom: 0;
    white-space: pre-wrap;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sticky-top {
        position: relative !important;
        top: 0 !important;
    }

    .card {
        max-height: 400px;
    }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sticky-top {
        position: relative !important;
        top: 0 !important;
    }

    .card {
        max-height: 400px;
    }
}

@media (max-width: 800px) {
    .btn-census {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
@media (max-width: 800px) {
    .btn-census {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
