:root {
    --dk-blue: #327AB8;
    --gray: #dde6e8;
    --lt-gray: #ededed;
    --cards-gray: #f0f0f0;
    --resources-gray: #E3EBE7;
    --blue: #1E7BBE;
    --title-blue: #3B67B1;
    --green: #4b800a;
    --footer_bg: #247ABC;
    --main-color: #2288cf;
    --main-color-txt: #2878C3;
    --main-dark-txt: #2260be;
    --sub-color: #568b00;
    --sub-color-bg: #4F8000;
    --white: #ffffff;
    --yellow: #ffff00;
    --mxWidth: 82%;
    --subFont: "Roboto-Slab";
    --main-bg: #2b70ac;
    --sub-bg: #5a8b00;
    --grey: #efefef;

}

a {
    color: #0056B3 !important;
}

.nj-nav .navbar-toggler {
    border-color: #fff !important;
}

.nj-nav {
    background-color: #585858 !important;
}

.navbar {
    padding: 0px;
}

strong {
    font-weight: 600 !important;
}

h3, .h3 {
    font-size: 1.375em;
    font-weight: 500;
    margin-bottom:30px;
        color: #1C335B;
}

.aps-icon {
    width: 65px;
    height: 60px;
    background-color: #394786;
    border-radius: 53px;
    padding: 10px;
    float: right;
    top: -52px;
    position: relative;
    left: -14px;
    margin-bottom: -60px;
}

.nj-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,255)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.nj-nav .navbar-toggler {
    padding: .15rem .4rem;
    font-size: 1rem;
}

.language-bar {
    float: right;
    margin-bottom: -66px;
    position: relative;
    z-index: 999;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.5);

}

.language-bar .btn {
    margin-left: 7px;
    margin-right: 7px;
    background-color: #fff !Important;
    color: #2260be;
}

.language-bar .btn:hover {
    margin-left: 7px;
    margin-right: 7px;
    background-color: #0056b3 !important;
    color: #ffffff;
}

.language-bar .btn.active {
    color: #fff;
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}

.language-bar .btn.active:hover {
    color: #fff;
    background-color: #394786 !Important;
    border-color: #0056b3 !important;
}



#site-name h1,
#site-name .department {
    color: #1C335B !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: #1C335B !important;
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link.active {
    border-bottom: 5px solid #E57325 !important;
    border-radius: 0px !Important;
    background-color: transparent !Important;
    color: #0056b3 !important;
}

.tabsq {
    display: flex;
    background: #fff;
    width: 100%;

}

.tabq.active,
.tabq2.active2,
.tabqa.active {
    font-weight: 600;
        color: #0056B3;
        border-bottom: 4px solid #0056B3;
}



.queue {
    display: none;
}

.queue.active {
    display: flex;
    border-top: 1px solid grey;
    padding: 0px;
}

.queue2 {
    display: none;
}

.queue2.active2 {
    display: flex;
    border-top: 1px solid #dadada;
    padding: 0px;
}

.banner {
    background-color: #efefef !important;
    color: #fff;
    margin-top: -1px;
}

.banner h2 {
    color: #1C335B !important;
    margin-left: 15px;
    padding-top: 26px !important;
    padding-bottom: 30px !important;
}

.border-right-custom {
    border-right: 1px solid #ccc;
    /* Customize color and style */
    min-height: 100%;
    /* Ensure the line extends the full height of the column */
}

.fontawesome-icon {
    width: 18px;
    color: #1C335B;
    position: relative;
    top: -2px;
}

.active-enrolled {
    background: green;
    margin-left: 5px;
    margin-right: 5px;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    color: #ffffff;

}

.expired {
    background: red;
    margin-left: 5px;
    margin-right: 5px;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    color: #ffffff;

}

.pending {
    background: orange;
    margin-left: 5px;
    margin-right: 5px;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    color: #000000;

}

.jump-link {
    margin-top: -300px;
}

.callout_sign {
    max-width: 56.5em;
    margin: -6.125em auto 0;
    color: #000000;
    position: relative;
    z-index: 2;
    padding: 1.25em;
    border-radius: .25em;
    padding-bottom: 30px;
    text-align: center;
    background-color: #ffffff;
    background-color: #f0f0f0;
}

.callout_sign::before {
    content: '';
    height: 10px;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ed8034+0,ed8034+33,feb123+33,feb123+66,2184cd+66,2184cd+100 */
    background: rgb(237, 128, 52);
    /* Old browsers */
    background: -moz-linear-gradient(left, rgba(36, 152, 229, 1) 25%, rgba(152, 182, 50, 1) 25%, rgba(54, 75, 118, 1) 25%,
            rgba(237,
                128,
                52, 1) 25%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(left, rgba(237, 128, 52, 1) 0%, rgba(237, 128, 52, 1) 33%, rgba(254, 177, 35, 1) 33%, rgba(254, 177, 35, 1) 66%, rgba(36,
                152,
                229, 1) 66%, rgba(36,
                152,
                229, 1) 100%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right, rgba(36,
                152,
                229,
                1) 0%, rgba(36,
                152,
                229,
                1) 25%, rgba(152,
                182,
                50,
                1) 25%, rgba(152,
                182,
                50,
                1) 50%, rgba(54,
                75,
                118,
                1) 50%,
            rgba(54,
                75,
                118,
                1) 75%,
            rgba(237,
                128,
                52,
                1) 75%, rgba(237,
                128,
                52,
                1) 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ed8034', endColorstr='#2184cd', GradientType=1);
    /* IE6-9 */
}

.aps-h3 {
    color: #ce2939;
    font-size: 22px;
}

.aps-ex {
    top: -23px;
    position: relative;
    left: -31px;
    width: 84px;
}

.hero_sign {
    background: #5e94ae;
    max-width: 56.5em;
    margin: -3.125em auto 0;
    color: #fff;
    position: relative;
    z-index: 2;
    padding: 1.25em;
    border-radius: .25em;
    padding-bottom: 30px;
}

.hero_sign div img {
    width: 231px;
    position: relative;
    top: -62px;
    border: 5px solid #5e94ae;
    background-color: #fff;
    padding: 15px;
}

.hero_sign_caregiver {
    max-width: 55em;
    position: relative;
    z-index: 2;
    padding-bottom: 30px;
    margin-top: 15px;
    color: #1C335B
}


.aps-line::before {
    content: '';
    height: 10px;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background: rgb(237, 128, 52);
    background: -moz-linear-gradient(left, rgba(31, 161, 183, 1) 25%, rgba(152, 182, 50, 1) 25%, rgba(54, 75, 118, 1) 25%, rgba(206, 41, 57, 1) 25%);
    background: -webkit-linear-gradient(left, rgba(237, 128, 52, 1) 0%, rgba(237, 128, 52, 1) 33%, rgba(254, 177, 35, 1) 33%, rgba(254, 177, 35, 1) 66%, rgba(33, 132, 205, 1) 66%, rgba(33, 132, 205, 1) 100%);
    background: linear-gradient(to right, rgba(31, 161, 183, 1) 0%, rgba(31, 161, 183, 1) 25%, rgba(152, 182, 50, 1) 25%, rgba(152, 182, 50, 1) 50%, rgba(54, 75, 118, 1) 50%, rgba(54, 75, 118, 1) 75%, rgba(206, 41, 57, 1) 75%, rgba(206, 41, 57, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ed8034', endColorstr='#2184cd', GradientType=1);
}

.aps-h3-blue {
    color: #1C335B;
    font-size: 1.375em;
    font-weight: 500;
    font-family: 'Roboto', 'Open Sans', 'Public Sans', sans-serif;
}

.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.hero_sign h4 {
    font-size: 1.5rem;
}




.check-list,
.check-list-x {
    list-style: none;
    /* remove default bullets */
    margin: 0;
    padding: 0;
}

.num_1 {
    background-color: #96b33f;
    color: #fff;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 25px;
}

.check-list li,
.check-list-x li {
    position: relative;
    padding-left: 35px;
    /* 25px icon + 10px spacing */
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Force the bullet to 25px square */
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 25px;
    height: 25px;
    transform: translateY(-50%);
    background: url("../img/check.svg") no-repeat center center;
    background-size: 25px 25px;
    /* scales it exactly */
}

/* Force the bullet to 25px square */
.check-list-x li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 25px;
    height: 25px;
    transform: translateY(-50%);
    background: url("../img/x.svg") no-repeat center center;
    background-size: 25px 25px;
    /* scales it exactly */
}






/* Chat bot */

#chat-box {
    position: fixed;
    bottom: 97px;
    right: 20px;
    width: 400px;
    height: 400px;
    background: #fff;
    border: 2px solid #1c335b;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    flex-direction: column;
    font-family: Arial, sans-serif;

    /* Start hidden */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* When open */
#chat-box.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chat-header {
    background: #1c335b;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    border-radius: 10px 10px 0 0;
}

.chat-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
}

.message.bot {
    background: #e6e9f2;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    max-width: 80%;
}

.message.user {
    background: #e57325;
    color: #fff;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    max-width: 80%;
    margin-left: auto;
}

.chat-input {
    display: flex;
    border-top: 1px solid #ccc;
}

.chat-input input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
}

.chat-input button {
    background: #1c335b;
    color: #fff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
}


.button {
    display: inline-block;
    padding: .5rem 1rem;
    font-size: 1.125em;
    font-weight: 600;
    border: none;
        line-height: normal;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease;
                line-height: 1.6;
}

.btn-primary {
    color: #fff !important;
    background-color: #0056B3; 
             text-decoration: none !important;
             margin-bottom:15px;
  
}

.btn-secondary {
    background-color: white;
    color: #0056B3;
    border: 2px solid #0056B3;
    text-decoration:none!important;
        margin-bottom: 15px;
        text-shadow:none;
}

.btn-secondary:hover {
    color: #ffffff !important;
        background-color: #0056B3;
            border: 2px solid #0056B3;
                    text-shadow: none;
}

.btn-small {
font-weight:normal;
font-size:1rem;
line-height:normal;

}

a.button.btn-secondary {
    text-decoration: none !important
    }

a.button.btn-primary {
color:#fff;
}


/* tabs */

.tabsq {
    display: flex;
    background: #fff;
    width: 100%;
}


.tabq,
.tabq2 {
    cursor: pointer;
    color: #333333;
}

.tabq:hover {
    cursor: pointer;
    color: #0056B3;
    font-weight:600;
        border-bottom: 4px solid #0056B3;
}
.queue {
    display: none;
}

.collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    /* Example transition */
}

.collapse.show {
    max-height: 500px;
    /* Adjust as needed for your content */
}

.faq-container {
    max-width: 850px;
    width:100%;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
        margin-bottom: 10px;
        cursor: pointer;
        transition: background 0.3s;
        padding: 1rem 1.25rem;
        background-color: #f6f6f2;
        align-items: center;
        border-radius:5px
}

.red_sign {
    border: 5px solid red;
    padding-top: 30px;
    padding-bottom: 30px;
    font-weight: 700;
    background-color: #ffffff;
}

.ex-sign {
    border: 5px solid red;
    border-radius: 30px;
    background-color: #fff;
    font-size: 45px;
    font-weight: 700;
    padding-left: 21px;
    padding-right: 20px;
    left: -64px;
    top: 3px;
    position: relative;
}


.faq-question {
    margin: 0;
    flex: 1;
    font-weight:550
}

.faq-answer {
    display: none;
    margin-top: 10px;
    color: #444;
    flex-basis: 100%;
        background-color: #fff;
    padding: 15px;
}


.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .arrow {
    transform: rotate(180deg);
}

.arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
    margin-left: 10px;
    float: right;
    top: -23px;
    position: relative;
}


/* Styles for screens smaller than 768px (e.g., tablets) */


@media (max-width: 991px) {
    .aps-ex {
        top: -74px;
        margin-top: 40px;
    }

    .aps-icon {
        display: none;
    }

    .tabq {
        padding: 0px
    }
}

.county-chat-box {
    width: 400px;
    height: 500px;
    background: #fff;
    border: 2px solid #1c335b;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.financial-section {
    margin-top: 50px;
    margin-bottom: 50px;
}

.financial-intro {
    margin: auto;
    margin-bottom: 30px;
}

.financial-small {
    color: #8b8a8a;
}

.financial-accent {
    color: #5e94ae;
}

.financial-description {
    margin-bottom: 30px;
}

.financial-card {
    background-color: #fdf4e7;
    border-radius: 5px;
    margin-bottom: 30px;
}

.financial-card-alt {
    margin-bottom: 50px;
}

.financial-content {
    display: grid;
    place-items: center;
    min-height: 400px;
    padding: 3%;
}

.financial-content h3 {
    margin-bottom: 15px;
}

.county-chat-input input {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    outline: none;
    width: 60%;
    max-width: 650px;
    min-width: 250px;
}

.county-chat-input {
    background: #1c335b;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 30px;
}

.county-chat-input:hover {
    background: #1c335b;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 30px;
}

.info-box {
    position: relative;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    height: 200px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.info-box:hover {
    transform: scale(1.02);
}

.info-content {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px;
    transition: bottom 0.4s ease;
    height: 100%;
    font-size: 0.9rem;
}

.info-box:hover .info-content {
    bottom: 0;
}

.info-title {
    padding: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}



/* ------------------------Timeline END---------------------------------------- */

/* ------------------------Directory START---------------------------------------- */

.nav-tabs {
    max-width: 40em;
    margin: .7em auto 1.3em;
}

.nav-tabs .nav-link {
    color: var(--green);
    font-size: 1.25em;
    font-family: var(--subFont);
    font-weight: bold;
    text-decoration: none;
    box-shadow: inset 0 -2px 0 var(--main-bg);
    border: 0;
    background: #fff;
}

.nav-tabs .nav-link.active {
    background: var(--main-bg);
    color: #fff;
}

.nav-tabs .nav-link:hover {
    text-shadow: none;
    text-decoration: none;
}

.modal-btns {
    background: var(--grey);
    text-align: center;
}

.modal-btns .btn {
    width: auto;
    display: inline-flex;
    align-items: center;
}

.modal-btns .btn>svg {
    margin-right: .5em;
}

.modal-btns .fab {
    font-size: 1.2em;
    margin-right: .4em;
}

.find-icon {
    width: 44px;
margin-bottom:15px;
}

@media (max-width: 992px) {

    .find-icon {
        width: 109px;
        position: relative;
        top: 0px;
        left: 0px;
        display: block;
        margin: auto;
        margin-bottom: 15px;
    }

    .mobile-updates-line {
        border-right: none !Important;
    }

    header.sonj ul.statewide li {
        border-right: none !important;
    }

    header.sonj ul.statewide {
        line-height: 2.2;
    }

}

.card-img-top {
    height: auto;
    border-bottom: 1px solid #dadada;
}

.card .btn-default {
    width: auto;
    display: flex;
    align-items: center;
    border: 2px solid var(--grey);
}

.card .btn-default svg {
    margin-right: .3em;
}

.card .btn-default path,
.btn-outline-primary path {
    fill: var(--sub-color);
}

.card-title {
    text-align: center;
}
.btn-outline-primary {
    color: #0056B3 !important
}

.btn-outline-primary:hover {
    background-color:transparent !Important;
    border-color:transparent !Important;
        text-shadow: rgb(0, 86, 179) 0px 0px 0.65px, rgb(0, 86, 179) 0px 0px 0.65px;
}

.modal-body .card-text {
    display: none;
}

.columns {
    column-width: 30em;
    column-gap: 2.4em;
    display: block;
}

main .tab-content .agencies-list {
    margin: 0;
}

.accordian>.card.spot:only-child {
    border: 0;
}

.modal-card .card-title {
    font-weight: 500;
    color: inherit;
}

ul.dvs {
    list-style: none;
}

main ul.dvs {
    margin: 0;
}

ul.dvs>li {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    padding: .1em .7em;
    min-height: 2.5em;
    border: 1px solid rgba(0, 0, 0, .125);
    border-left: 0;
    border-right: 0;
}

ul.dvs>li:first-child {
    border-top: 0;
}

ul.dvs>li:last-child {
    border-bottom: 0;
}

ul.dvs>li:nth-of-type(even) {
    background: #fafafa;
}

.dvs_link>a {
    color: var(--main-dark-txt);
    max-width: 38em;
}

.dvs_social {
    font-size: .875em;
    display: flex;
    flex-direction: row-reverse;
    column-gap: .5em;
}

.dvs_social a {
    display: flex;
    align-items: center;
}

.tab-pane .c_icon {
    font-size: 1.6em;
}

.card-pad-bot-70 {
    padding-bottom: 70px;
}

.border-top {
    border-top: 1px solid #dee2e6 !important;
    text-align: center;
    padding-top: 10px;
    width: 100%;
    background-color: transparent;
    padding-bottom: 10px;
    bottom: 0px;
    position: absolute;
}

.rounded-box {
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #dadada;
    border-radius: 5px;
    padding: 25px;
    background-color: #ffffff;
}

header a {
    font-weight:normal!Important;
    color:#ffffff !Important;
}



.resource-desc {
    font-size: 0.82rem;
    color: #555;
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.4;
    font-weight: 500;
    margin-bottom:15px;
    text-decoration:none !Important;
}



.rounded-box:hover p.resource-desc{
text-decoration:none !Important;
}


.fr-photo2 {
    background-image: url(../img/aps-pic.JPG);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.fr-photo1 {
    background-image: url(../img/aps-pic3.JPG);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* ------------------------Local Modal---------------------------------------- */

#local-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

#local-modal.open {
    display: block;
}

.local-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* ------------------------Local Modal---------------------------------------- */
#result {
    display: none;
    border: 5px solid green
}

/* ------------------------Responsive Code---------------------------------------- */
.header-text {
    margin-bottom: -571px;
    padding-top: 64px;
    width: 50%;
    text-align: center;
}

.quiz-list label {
    display: block
}

.roboto-slab-h1 {
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 3.35em;
}

.roboto-slab-h2 {
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
        font-size: 1.8em;
            font-weight: 600;
            margin-bottom:30px;
                color: #1C335B;
                text-align:center
}

.caregiver-h3 {
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 1.17em;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center
}

.caregiver-banner {
    width: 100%;
    height: 500px;
    background-image: url("../img/caregiver-banner.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.caregiver-banner2 {
    width: 100%;
    height: 561px;
    background-image: url("../img/caregiver-banner2.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right;
}

@media (max-width: 1583px) {
    .caregiver-banner {
        height: 470px;
        opacity: 0.4;
    }
}

@media (max-width: 1706px) {

    .caregiver-logo {
        width: 350px !important;
        z-index: 9999999;
        position: relative;
    }

}


@media (max-width: 1583px) {
    .header-text {
        width: 100%;
    }

    .header-h1 span {
        font-size: 21px !important;
    }

    .header-h12 {
        font-size: 21px !important;
    }



    .hero_sign_caregiver {
        max-width: 100%;
    }


    .caregiver-banner {
        text-align: center;
        width: 100%;
        height: 540px;
        background-image: url(../img/caregiver-banner.png);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        opacity: .4;


    }
}


@media (max-width: 500px) {

    .caregiver-banner {
        height: 656px;
        top: -42px;
        position: relative;
    }

    .header-text {
        padding-top: 129px;
    }

    .rowb-f {
        display: block;
    }

    .caregiver-logo {
        width: 100% !important;
    }
}


main.subpage-template a.county-chat-input {
    text-decoration: none !important;
}

a.county-chat-input:active, a.county-chat-input:focus {
    color:#fff;
}

/* Popup */

.openPopup,
.openPopup1 {
    border: none;
    background-color: transparent;
}

.popupOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999999999;
}

.popupContent {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 70%;
    max-width: 550px;
}

/* Popup box */
.popup {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
}

/* Close button */
.close-pop-up {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}

.close-pop-up:hover {
    color: #333;
}

.closePopup {
    border: none;
    background-color: transparent;
    width: 15px;
    margin-bottom: 20px;
    cursor: pointer;
}


/* Resource page */

.search-container {
    display: flex;
    max-width: 400px;
    margin: 20px auto;
}

.search-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.search-container button {
    padding: 10px 15px;
    border: 1px solid #007BFF;
    background: #007BFF;
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}


.filter-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.filter-btn {
margin-bottom: 15px;
margin-right: 10px;
}

.filter-btn.active {
background-color: #0056B3 !important;
    color: #fff;
    border-color: #0056B3 !important;
    padding-right: 32px;
    /* space for the X */
}

.filter-btn.active::after {
    content: "×";
        position: absolute;
        margin-left: 7px;
        font-size: 21px;
        margin-top: -3px;

}

.resource-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.resource-card {
    border: 1px solid #ddd;
        border-radius: 5px;
        text-align: center;
        transition: 0.3s;
        padding:0px;
}

.resource-card img {
    width:100%;
}

.resource-card a div.video-icon {
background-color: #1C335B;
    width: 50px;
    margin-top: -38px;
    position: relative;
    padding: 5px;
}

.resource-content {
padding:30px;
text-align:left
}

.resource-content {
    padding: 30px 30px 15px 30px;
    color:#000 !important;

}

.resource-card a:hover {
text-decoration:none !important;
}

.resource-author {
display:flex;
font-weight:normal;
color:#585858;
    margin-bottom: -20px;

}
.resource-author-img {
        width: 19px;
        border-radius: 30px;

        background-position: center;
        background-size: cover;
        height: 19px;
        margin-right:10px;
        top: 1px;
            position: relative;
        }

                .resource-cat {
                    font-size:12px;
                    text-transform:uppercase;
                    color:#585858;
                    margin-bottom:10px
                }


                .resource-popupContent {
    width: 90%;
        height: 90%;
        max-width:none;
                }
                
                .resource-popupContent iframe {
width: 100%;
    height: 95%;
                }

                .relative {
                    display:none;
                }



        /* Navigation Styles */
        nav {
            background-color: white;
            padding: 1rem 2rem;
            position: sticky;
            top: 0;
            z-index: 99999999;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
    
        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
    
        .logo {
            color: white;
            font-size: 1.5rem;
            font-weight: bold;
        }
    
        .nav-menu {
            display: flex;
            list-style: none;
            gap: 1.5rem;
            align-items: center;
        }

        ul.nav-menu {
            margin-bottom: 0px;
        }

        /* Nav Chat Button */
        .nav-search-item {
            margin-left: auto;
        }

        .nav-chat-btn {
            display: inline-flex;
            align-items: center;
            background: #E37A35;
            color: white;
            border: none;
            padding: 8px 18px;
            border-radius: 24px;
            font-size: 0.875rem;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.3s ease, transform 0.2s ease;
            white-space: nowrap;
        }

        .nav-chat-btn:hover {
            background: #1C335B;
            transform: scale(1.03);
        }
    
        .nav-menu li a {
            color: #1C335B !important;
            text-decoration: none;
            font-size: 1rem;
            padding: 0.5rem 1rem;
            transition: background-color 0.3s ease;
            border-radius: 4px;
        }
    
        .nav-menu li a:hover {
            color:#0056B3;
            text-decoration:none !important;
        }
    
        /* Hamburger Menu */
        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            gap: 5px;
            background: none;
            border: none;
            padding: 5px;
        }
    
        .hamburger span {
            width: 25px;
            height: 3px;
            background-color: #1C335B;
            transition: all 0.3s ease;
            border-radius: 2px;
            display: block;
        }
    
        /* Hamburger Animation */
        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(5.5px, 5.5px);
        }
    
        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }
    
        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5.5px, -5.5px);
        }


        

         @media screen and (max-width: 1583px) {
           .caregiver-banner2 {
                            opacity: .3;
                        }
                    }
        /* Mobile Styles */
        @media screen and (max-width: 1299px) {
            .hamburger {
                display: flex;
            }
    
            .nav-menu {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: #2c3e50;
                flex-direction: column;
                gap: 0;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease;
            }
    
            .nav-menu.active {
                max-height: 500px;
                z-index: 999999999;
                padding-left:0px
            }
    
            .nav-menu li {
                width: 100%;
                text-align: center;
                border-top: 1px solid #34495e;
            }
    
            .nav-menu li a {
                display: block;
                padding: 1rem;
                border-radius: 0;
                color:#fff;
            }

            .nav-menu li a:hover,
            .nav-menu li a:focus {
                color: #fff !important;
                text-decoration: underline !important;
            }

            .nav-search-item {
                margin-left: 0;
                width: 100%;
                text-align: center;
                padding: 0.5rem 1rem;
            }

            .nav-chat-btn {
                width: 100%;
                justify-content: center;
            }

                        .caregiver-banner2 {
                            opacity: .3;
                        }
        }
    
        /* Content area to show the menu is working */
        .content {
            padding: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }


        .community-banner {
  display: flex;
  align-items: center;
  background: url('../img/banner-mobile-caregivers.gif') right center / cover no-repeat;
     padding: 60px 80px;
    position: relative;
    background-size: 65%;
    background-position: 100% 25%;
    background-attachment: scroll;
    background-repeat: no-repeat;
    min-height: 444px;
}

.community-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
    background: linear-gradient(270deg, rgba(135, 183, 127, 0.5) 5%, rgba(15, 83, 129, 0.7) 50%, rgb(15, 83, 129) 100%);
  z-index: 1;
}

.community-banner__content {
  max-width: 480px;
  color: #fff;
  z-index: 2;
  position: relative;
}

.community-banner__content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  color: #fff;
}

.community-banner__content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.community-banner__btn {
  display: inline-block;
  padding: 12px 48px;
  background-color: #fff;
  border-radius: 30px;
  color: #2c6c21;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}

.community-banner__btn:hover {
  background: #fff;
  color: #2c6c21;
}

.community-banner__note {
  font-size: 0.85rem;
  margin-top: 12px;
  color: #ccc;
}

@media (max-width: 768px) {
  .community-banner {
    padding: 40px 24px;
    height: 320px;
  }

  .community-banner::before {
    width: 100%;
    background: rgba(20, 60, 90, 0.8);
  }

  .community-banner__content {
    max-width: 100%;
    text-align: center;
  }
}
