/*
Theme Name: Catholic Charities
Theme URI: https://catholiccharitiesjoliet.org/
Template: charityfoundation
Author: SV
Author URI: http://www.stevevorass.com
Description: A nice theme for https://catholiccharitiesjoliet.org/.
Tags: one-column,two-columns,right-sidebar,custom-header,custom-menu,editor-style,featured-images,microformats,post-formats,rtl-language-support,sticky-post,translation-ready,accessibility-ready
Version: 2.7.1752948892
Updated: 2025-07-19 18:14:52

*/ :root {
    --purple: #662D91;
    --purplehalf: #662D917F;
    --purplelight: #B299C6;
    --teal: #02A7B9;
    --tan: #F9F9F9;
    --green: #83C55B;
    --orange: #E67E22;
    --coral: #FF6B6B;
    --gray: #989898;
    --darkgray: #444444;
    --lightgray: #efefef;
}
#nd_options_eventscalendar_header_img,
.tribe-common--breakpoint-medium.tribe-events .tribe-events-header__events-bar,
#nd_options_navigation_2_container .nd_options_section.nd_options_height_10 {
    display: none;
}

/* ===== NAVIGATION CLICK-THROUGH FIX (Events pages) ===== */
/*
 * The Nicdark framework plugin renders #nd_options_eventscalendar_header_img
 * as a full-width absolutely-positioned header image. Even when hidden with
 * display:none, its parent wrapper can create a stacking context that sits
 * above the navigation. These rules ensure the nav always stays clickable.
 */

/* Ensure the main navigation container sits above any page content */
#nd_options_navigation_2_container,
#nd_options_navigation_1_container {
    position: relative;
    z-index: 100;
}

/* Collapse the events header image wrapper so it can't block anything */
#nd_options_eventscalendar_header_img {
    position: static !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Prevent the tribe-events wrapper from overlapping the header */
.tribe-events {
    position: relative;
    z-index: 1;
}

/* Ensure the sticky nav (if used) always stays on top */
.stickit {
    z-index: 100;
}

/* ===== MOBILE SLIDE-IN MENU FIX ===== */
/*
 * The sidebar menu has nicdark_z_index_999 (z-index: 999) from the parent.
 * It must sit ABOVE the nav containers (z-index: 100) so it isn't hidden
 * behind the header when it slides in.
 */
.nicdark_navigation_1_sidebar_content {
    z-index: 1100 !important;
}

/* Compact mobile menu — reduce padding/font sizes for tighter layout */
.nicdark_navigation_1_sidebar div > ul > li {
    padding: 0;
}
.nicdark_navigation_1_sidebar div li > a {
    padding: 6px 0;
    font-size: 16px;
    line-height: 1.3;
}
.nicdark_navigation_1_sidebar div > ul li > ul.sub-menu > li,
.nicdark_navigation_1_sidebar div > ul li > ul.children > li {
    padding: 0 15px;
}
.nicdark_navigation_1_sidebar div > ul li > ul.sub-menu li a,
.nicdark_navigation_1_sidebar div > ul li > ul.children li a {
    font-size: 13px;
    padding: 4px 0;
    display: inline-block;
    line-height: 1.3;
}
p, h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
}
a {
    color: var(--teal);
}
a:hover {
    color: var(--gray);
}
img {
    max-width: 100%;
    height: auto;
}
.wp-block-button.no-decoration a {
    text-decoration: none !important;
}
.maxwidth .vc_column-inner {
    max-width: 1180px;
    margin: auto;
}
.maxwidth {
    max-width: 920px;
    margin: auto;
}
.maxwidth-small {
    max-width: 600px;
    margin: auto;
}
.nd_options_position_relative {
    position: relative;
    /*    z-index: 999;*/
}
.center * {
    text-align: center;
    margin: auto;
}
.center .nd_options_float_left {
    float: none;
}
img.featured, img.tribe-events-calendar-latest-past__event-featured-image {
    border-radius: 20px;
}
.tribe-events .tribe-events-header {
    display: block;
}
.tribe-events-back a, .tribe-events-back a:visited {
    background: var(--lightgray);
    padding: 5px 15px;
    border-radius: 0 0 8px;
    color: var(--gray);
}
.tribe-events-event-image img {
    display: block;
    max-width: 100%;
    height: auto;
}
.vc_tta-container h2 {
    text-align: center;
    margin-bottom: 30px;
}
.category-community .nicdark_bg_orange {
    background: var(--purple);
}
.category-aging-disability .nicdark_bg_orange {
    background: var(--teal);
}
.category-early-childhood .nicdark_bg_orange {
    background: var(--coral);
}
.nicdark_container_page_php p, .nicdark_container_page_php h1, .nicdark_container_page_php h2, .nicdark_container_page_php h3, .nicdark_container_page_php h4, .nicdark_container_page_php h5, .nicdark_container_page_php h6, .nicdark_container_single_php p, .nicdark_container_single_php h1, .nicdark_container_single_php h2, .nicdark_container_single_php h3, .nicdark_container_single_php h4, .nicdark_container_single_php h5, .nicdark_container_single_php h6, .nicdark_comments_php p, .nicdark_comments_php h1, .nicdark_comments_php h2, .nicdark_comments_php h3, .nicdark_comments_php h4, .nicdark_comments_php h5, .nicdark_comments_php h6 {
    margin-bottom: 20px;
}
#start_nicdark_framework, p {
    color: inherit;
    font-size: 17px;
    line-height: 30px;
}
h2 {
    font-size: 30px;
    line-height: 40px;
}
h3 {
    font-size: 25px;
    line-height: 35px;
    margin-bottom: 30px;
}
h4 {
    font-size: 20px;
    line-height: 35px;
}
.home .home-pad {
    padding-top: 0;
}
#manual-selection p {
    display: inline-block;
    margin: 10px;
}
.stickit {
    position: sticky;
    top: 160px; /* Distance from the top of the viewport when stuck */
}
.contactinfo {
    background: var(--purple);
    color: white;
    display: block;
    padding: 5%;
}
.contactinfo a {
    transition: all 0.5s ease;
    color: white !important;
}
.contactinfo a:hover {
    color: var(--purplelight) !important;
}
.contactinfo svg {
    fill: var(--purplelight);
    display: inline-block;
    width: 25px;
    position: relative;
    top: 7px;
}
.contactinfo h4 {
    margin-bottom: 15px;
    background: var(--teal);
    padding: 10px 15px;
    border-radius: 5px;
    color: white;
}
.servicescontent {
    display: block;
    padding: 0 5%;
}
.servicescontent p:first-of-type {
    color: var(--gray);
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 40px;
}
.servicebar {
    background: var(--tan);
    padding: 5%;
    font-weight: bold;
    display: inline-block;
}
.servicebar h4 {
    margin-bottom: 15px;
    background: var(--lightgray);
    padding: 10px 15px;
}
.servicebar a {
    transition: all 0.5s ease;
    padding: 14px;
    border: 1px solid #f1f1f1;
    font-size: 13px;
    line-height: 13px;
    display: block;
    margin: 5px 10px;
    margin-left: 0px;
    border-radius: 0px;
}
.servicebar a:hover {
    background: white;
}
/*Get Help*/
.gethelp {
    background: var(--purple);
}
.gethelp div {
    padding-top: 0 !important;
}
.gethelp .vc_column_container > .vc_column-inner {
    padding-top: 0 !important;
}
.black-bg {
    height: 100%;
    background: rgba(0, 0, 0, .5);
}
.purple-bg {
    height: 100%;
    background: linear-gradient(to top, var(--purplehalf), var(--purple));
}
/*Programs*/
.programs {
    background: var(--purple);
}
.programs div {
    padding-top: 0 !important;
}
.programs .vc_column_container > .vc_column-inner {
    padding-top: 0 !important;
}
.topboxes ul {
    list-style: none;
    padding-left: 0;
}
.topboxes ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 5px;
    transition: all 0.5s ease;
    opacity: .75;
}
.topboxes ul li:hover {
    opacity: 1;
}
.topboxes ul li a {
    color: white;
    text-decoration: none;
}
.topboxes ul li::before {
    content: '';
    width: 10px;
    height: 10px;
    border: 3px solid white;
    border-radius: 50%;
    position: absolute;
    left: 0;
    margin-top: 5px;
}
.gform_button.button {
    background: var(--purple) !important;
}
.white, .nd_options_customizer_forms button[type="submit"] {
    color: white !important;
}
.nd_options_navigation_top_header_2 img {
    max-height: 30px;
    max-width: 30px;
}
#nd_options_navigation_2_top_header .nd_options_text_align_right {
    padding: 0;
}
h3.nd_options_color_grey {
    line-height: 1.3;
    font-weight: bold;
}
h3.wp-block-heading {
    line-height: 1.5;
    background: #F9F9F9;
    padding: 30px;
}
.sticky .nicdark_bg_btn_archive {
    background-color: var(--coral);
    color: white;
}
.nicdark_bg_orange {
    background-color: var(--orange);
    color: white !important;
}
#geolocation-services-widget {
    margin: 20px 0;
    padding: 40px;
}
#county-filter-bar {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--tan);
    border-radius: 5px;
}
#county-filter-bar label {
    margin-right: 10px;
    font-size: 17px;
}
#county-filter-bar .county-select {
    font-size: 17px;
    padding: 10px 15px;
    min-width: 220px;
    border: 2px solid var(--purplelight);
    border-radius: 5px;
    background: white;
}
#county-filter-bar .county-select:focus {
    border-color: var(--purple);
    outline: none;
}
#services-list {
    transition: opacity 0.3s ease;
}
#services-list.loading {
    opacity: 0.4;
}
.service-image {
    background-size: cover;
    padding: 10%;
    color: white;
    border-radius: 5px;
    height: 400px;
}
.service-image:before {
    background-color: #000;
    background: linear-gradient(180deg, #000 .03%, hsla(0, 0%, 100%, 0));
    content: "";
    display: block;
    height: 100%;
    left: 15px;
    opacity: .6;
    position: absolute;
    top: 0;
    width: calc(100% - 30px);
    z-index: 0;
    border-radius: 5px;
}
.service-item {
    border-radius: 5px;
    margin-bottom: 25px;
}
.service-content {
    position: relative;
    z-index: 1;
}
.service-content h4 {
    margin: 0 0 10px 0;
    color: #fff !important;
    font-size: 1.4rem;
}
.service-content p {
    margin-top: 20px;
    color: #fff !important;
    font-size: .9rem;
    line-height: 1.6;
}
.service-content .btn {
    display: inline-block;
    margin-top: 30px;
    z-index: 1;
    color: white;
}
#error-message {
    margin-top: 30px;
    text-align: center;
}
.btn {
    padding: 10px 20px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1.2rem;
}
.county-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    min-width: 200px;
}
.btn-secondary {
    background: #666;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 17px;
}
.btn-secondary:hover {
    background: #555;
}
#manual-selection {
    padding: 15px;
    text-align: center;
    margin-bottom: 30px;
    background: #f5f5f5;
    border-radius: 3px;
}
.service-content .btn {
    font-size: .9rem;
}
.counties {
    text-align: center;
    margin: auto;
}
.equal .nd_options_background_size_cover {
    height: 750px;
}
.equal p {
    line-height: 1.5;
    color: var(--gray);
}

.centered {
    margin: auto;
    text-align: center;
}
.callout {
	color: var(--purple);
	font-weight: bold;
}
#footer {
    background: var(--darkgray);
}
#nd_options_navigation_top_header_2_right {
    display: flex;
    align-items: center;
    justify-content: end;
}
.pulse-button {
    position: relative;
    top: 25%;
    font-size: 1.25rem;
    width: 200px;
    height: 200px;
    text-transform: uppercase;
    text-align: center;
    color: white;
    border: none;
    border-radius: 50%;
    background: var(--green);
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(#5a99d4, .5);
    animation: pulse 2s infinite;
    transition: all 0.5s ease;
}
.pulse-button:hover {
    background: var(--teal);
}
a.nd_options_display_inline_block {
    font-size: 17px;
    line-height: 22px;
    border-radius: 25px;
    padding: 20px;
}
form.post-password-form {
    display: flex;
    background: #efefef;
    flex-direction: column;
    width: 100%;
    padding: 5%;
}
div#services-container h4 {
    text-align: center;
}
/* ===== 3D FlipBook single pages =====
   The flipbook viewer sizes itself to the viewport like a fullscreen app,
   but the theme footer still renders in flow and paints over the bottom
   of the book. Hide the footer on these pages so the full page is visible. */
.single-3d-flip-book ._3d-flip-book ~ .nd_options_section,
.single-3d-flip-book #footer {
    display: none;
}

/* ===== Archive cards =====
   CSS grid keeps every card in a row the same height automatically,
   without a forced min-height. The excerpt is clamped so one wordy
   card can't stretch its whole row. */
.cc-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

.cc-archive-grid .nicdark_grid_4 {
  width: 100%;
  float: none;
  display: flex;
  flex-direction: column;
}

/* The wrapper around box-desc stretches to fill the card */
.cc-archive-grid .nicdark_grid_4 > .nicdark_section:not(.nicdark_image_archive) {
  flex: 1;
  display: flex;
}

.cc-archive-grid .box-desc {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Excerpt: grows to push the button to the bottom, clamped at 5 lines */
.cc-archive-grid .box-desc p {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .cc-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cc-archive-grid { grid-template-columns: 1fr; }
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== DYNAMIC CONTENT WIDTH ===== */

/*
 * Override the parent theme's hard-coded 1200px container.
 * Uses clamp() for a fluid width that:
 *   - Stays at 90% of viewport on smaller desktops (1200–1400px range)
 *   - Scales proportionally on larger screens
 *   - Caps at 1600px to maintain readable line lengths on ultrawide monitors
 */
.nicdark_container,
.nd_options_container {
    width: clamp(1200px, 85vw, 1600px);
}

/* WPBakery rows: let inner content breathe on wide screens */
.maxwidth .vc_column-inner {
    max-width: clamp(1180px, 80vw, 1500px);
}
.maxwidth {
    max-width: clamp(920px, 65vw, 1200px);
}
.maxwidth-small {
    max-width: clamp(600px, 45vw, 800px);
}

/* Fine-tune at specific breakpoints for a smoother transition */

/* Standard desktop (1200–1439px): modest widening */
@media (min-width: 1200px) and (max-width: 1439px) {
    .nicdark_container,
    .nd_options_container {
        width: 92%;
        max-width: 1320px;
    }
}

/* Large desktop (1440–1919px): comfortable reading width */
@media (min-width: 1440px) {
    .nicdark_container,
    .nd_options_container {
        width: 85%;
        max-width: 1500px;
    }
}

/* Ultrawide (1920px+): cap width so text doesn't sprawl */
@media (min-width: 1920px) {
    .nicdark_container,
    .nd_options_container {
        width: 80%;
        max-width: 1600px;
    }
}

/* Mobile */
@media (max-width: 991px) {
    #nd_options_navigation_top_header_2_right {
        justify-content: center;
    }
    .stickit {
        position: static;
        top: 0px;
    }
    .nd_options_section {
        float:none;
    }
    .equal .nd_options_padding_40 {
        padding: 20px;
    }
    .equal .nd_options_padding_15 {
        padding: 0;
    }
    .equal .nd_options_background_size_cover {
        height: inherit;
    }
    .nicdark_container, .nd_options_container {
        width: 90vw;
    }
    #geolocation-services-widget {
        margin:0px;
        padding:0px;
    }
    .counties {
        height:inherit;
    }
    .nd_options_customizer_forms select, button#manual-search-btn {
        margin: 15px 0 !important;
        width: 100%;
    }

    /* ===== COMPACT MOBILE HEADER: logo + flags + hamburger ===== */
    /*
     * JS (mobile-header.js) builds a flex row:
     *   [logo] ......... [flags] [hamburger]
     */
    .cc-mobile-header {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 6px 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        float: none !important;
    }

    /* Logo side — strip any absolute positioning the plugin adds */
    .cc-mobile-header .cc-mobile-logo {
        flex: 1 1 auto;
        min-width: 0;
    }
    .cc-mobile-header .cc-mobile-logo a,
    .cc-mobile-header .cc-mobile-logo img {
        position: static !important;
        float: none !important;
    }
    .cc-mobile-header .cc-mobile-logo img {
        max-height: 45px;
        width: auto;
        display: block;
    }

    /* Right group: flags + hamburger */
    .cc-mobile-header .cc-mobile-right {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 0 0 auto;
    }

    /* Language flag buttons */
    .cc-mobile-header .cc-mobile-flags {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .cc-mobile-header .cc-mobile-flags .cc-flag-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        text-decoration: none;
        border-radius: 3px;
        overflow: hidden;
        opacity: 0.85;
        transition: opacity 0.2s;
    }
    .cc-mobile-header .cc-mobile-flags .cc-flag-btn:hover,
    .cc-mobile-header .cc-mobile-flags .cc-flag-btn:active {
        opacity: 1;
    }
    .cc-mobile-header .cc-mobile-flags .cc-flag-btn img {
        height: 20px;
        width: auto;
        display: block;
        border-radius: 2px;
    }
    /* Text fallback when no flag image is available */
    .cc-mobile-header .cc-mobile-flags .cc-flag-btn:not(:has(img)) {
        font-size: 11px;
        font-weight: 700;
        color: #fff;
        background: var(--purple, #662D91);
        padding: 3px 6px;
        border-radius: 3px;
        line-height: 1;
    }

    /* Hamburger side */
    .cc-mobile-header .cc-mobile-menu-btn {
        flex: 0 0 auto;
        padding: 5px;
    }

    /* Hide the original stacked sections that JS replaced */
    .cc-mobile-header-hidden {
        display: none !important;
    }

    /* Hide the GTranslate floating bar on mobile — flags are in the nav now */
    .gtranslate_wrapper,
    #gtranslate_wrapper,
    .gt_float_switcher,
    [class*="gt_float_switcher"],
    #gt_float_wrapper {
        display: none !important;
    }

    /* Hide the top gray utility/GTranslate bar on mobile */
    #nd_options_navigation_1_container,
	div#nd_options_navigation_2_top_header {
        display: none !important;
    }

}