/* Custom Styling for Your Site */
body {
    font-family: 'Inter', sans-serif;
    /* set with JS background-image: url('../images/ii-background.jpg'); */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-blend-mode: lighten;
    background-color: rgba(255, 255, 255, 0.40) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Merriweather', serif;
}



/* banner */
.page-banner {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid var(--bs-primary);

    display: flex;
    flex-direction: column;
    /* Stack vertically */
    align-items: center;
    /* Center horizontally */
    text-align: center;
    /*gap: 10px;  Adjust spacing */
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    color: var(--bs-dark);
    font-size: 1.2rem;
}

.navbar-nav .nav-link:hover {
    background-color: var(--bs-secondary);
}

.navbar-collapse {
    justify-content: center;
}

/* Float the navbar to the top when collapsed */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    /* background-color: white; */
}

/* Add this CSS to your stylesheet or in a <style> tag */
.xlogo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    width: 100%;
}

.logo-text {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Custom question box styles */
.info-icon {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 2rem;
}

/* Show the icon when fieldset is hovered */
fieldset:hover .info-icon,
p:hover .info-icon {
    display: inline-block;
}

/* Floating info panel */
.info-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: var(--bs-light);
    opacity: 0.95;
    box-shadow: 0 0px 12px rgba(0, 0, 0, 0.5);
    padding-top: 5px;
    padding-right: 15px;
    padding-bottom: 5px;
    padding-left: 15px;
    border-radius: 5px;
    display: block;
    z-index: 1000;

    /* ✅ Ensures it doesn't go off-screen */
    max-height: 95vh;
    /* Limits to 90% of viewport height */
    overflow-y: auto;
    /* Enables vertical scrolling if needed */
}

.info-panel-header {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-panel-close {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--bs-dark);
}

.info-panel-close:hover {
    color: var(--bs-dark);
}

/* Custom question box styles */
.question-box {
    background: var(--bs-light);
    border: 1px solid var(--bs-dark);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6);
}

.question-box label {
    font-weight: bold;
}

.question-box input {
    background: white;
}

.question-box select {
    background: white;
    appearance: auto;
    /* Restores default dropdown */
    -webkit-appearance: auto;
    -moz-appearance: auto;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.7);
}

.survey-title {
    /* background: white; */
    /* border: 1px solid var(--bs-border-color); */
    border-bottom: 4px solid var(--bs-theme-dark);
    padding: 0px 20px 10px 20px;
    margin-bottom: 0px;
    /* border-top-left-radius: 10px; */
    /* border-top-right-radius: 10px; */
    /* box-shadow: 0px 0px 10px rgba(0, 0, 10, 0.6); */
}

.survey-subheader {
    border: 1px solid var(--bs-secondary);
    border-radius: 10px;
    /* border-bottom-right-radius: 10px; */
    padding: 10px 20px 10px 20px;
    margin-bottom: 15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 10, 0.6);
}

.survey-description,
.survey-description-long {
    background: none;
    /* Remove separate backgrounds */
    margin: 0;
    /* Ensure no extra spacing */
    padding-left: 0;
    padding-right: 0;
}

.survey-description {
    font-weight: bold;
    padding-bottom: 3px;
}

.survey-description-long {
    padding-top: 0;
}

.lead {
    margin-top: 10px;
    margin-bottom: 10px;
}

.footer {
    margin-top: 4rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--bs-dark);
    padding: 2rem;
}

.body-home {
    background-image: url('../images/background-perspective-alt2.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.50) !important;
    color: var(--bs-dark);
}

.hero {
    text-align: center;
    padding: 5rem 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.9);
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.25rem;
    color: var(--bs-dark);
}

.section-title {
    font-size: 1.5rem;
    margin-top: 3rem;
    font-weight: 600;
    border-bottom: 2px solid var(--bs-primary);
    display: inline-block;
}

.highlighted-heading {
    background-color: rgba(255, 255, 255, 0.8);
    /* or use var(--bs-light) */
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.link-card {
    background-color: var(--bs-light);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.link-card ul {
    text-align: left;
}

.link-card:hover {
    transform: translateY(-3px);
    background-color: var(--bs-emotional-light);
}

.convo-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.convo-card>.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.convo-card>.card-body ul {
    flex-grow: 1;
}

.convo-card>.card-body a {
    margin-top: 1rem;
    align-self: center;
}


.ad-container {
    background-color: #f9f9f9;
    padding: 10px;
}

.ad-container img {
    max-width: 100%;
    height: auto;
}

.bg-tr {
    background-color: rgba(236, 236, 236, 0.95);
    padding: 10px;
    border-radius: 8px;
    display: block;
    width: 100%;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6);
}

.card-header-custom {
    padding: 15px 20px 15px 20px;
    color: var(--bs-dark);
    border-radius: 8px 8px 0 0;
    margin: -20px -20px 15px -20px;
}

.assessment-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.assessment-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.assessment-card .card-text {
    flex-grow: 1;
}

.todo-icon {
    color: var(--loud-color);
    border: var(--loud-color) solid 4px;
    font-size: 1.7em;
    padding: 0.2em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    border-radius: 50%;
    width: 2em;
    height: 2em;
    line-height: 2em;
    text-align: center;
}





@media (max-width: 576px) {

    /* Adjust the breakpoint as needed */
    .logo-text {
        display: none;
    }

    .logo-container {
        padding-left: 4px;
        padding-bottom: 4px;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        width: auto;
        /* Prevent full-width collapse */
        background: white;
        /* Ensures visibility */
        border: 1px solid #ccc;
        /* Optional: Adds clarity */
        padding: 0.5rem;
        /* Adjusts spacing */
    }

    .navbar-toggler {
        position: absolute;
        right: 0;
    }



    .survey-title {
        border-bottom: 0px !important;
        padding: 0px 10px 0px 10px !important;
    }

    .page-banner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 8px !important;
    }

    .page-banner>.logo-container {
        order: 1;
        text-align: left;
        flex: 0 0 80px;
    }

    .page-banner>.title-container {
        order: 2;
        text-align: center;
        flex: 1 1 auto;
    }

    .page-banner>.navbar {
        order: 3;
        text-align: right;
        flex-shrink: 1;
        flex: 0 0 80px;
    }

    .title-container>.lead {
        display: none;
    }
}