/*!
 * Senate Democratic Caucus
 * Guava Sub Theme Styling
 *
 * Last Worked On By: GR - 6/5/24 11:45Pm
 */

/* Optional Accent Fonts */
@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital@1&display=swap');

:root {
    --accent-color: #0AB183;
    --rgba-accent-color: rgba(10, 177, 131, .9);
}

a,
p a {
    color: var(--accent-color);
}

.btn-primary-custom {
    background-color: transparent !important;
    color: var(--light-color) !important;
    font-size: 1.4rem !important;
    padding: 10px 16px !important;
    border: 2px solid var(--light-color) !important;
}

.btn-primary-custom:hover {
    background: var(--accent-color) !important;
    color: #fff !important;
    border: 2px solid var(--accent-color) !important;
}


#navbar-top {
    background: var(--accent-color);
}

#navbar-top a {
    color: var(--primary-color);
    padding-left: 8px;
}

#navbar-top p,
#navbar-top a:hover {
    color: var(--light-color) !important;
}

.navbar-expand-lg,
.navbar-expand-lg .navbar-nav .nav-item .dropdown-menu,
.path-frontpage .navbar-expand-lg .navbar-nav .nav-item .dropdown-menu {
    background: var(--primary-color);
}

.teaser-enews .teaser-wrapper-txt a {
    -webkit-line-clamp: 9 !important;
}

.node--type-ealert .faqfield-answer {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    font-family: var(--body-font) !important;
}
.node--type-ealert .faqfield-answer p:has(a){
    text-align: center !important;
}

.contact-blk a {
    color: var(--light-color);
}
/* Popup */

.popup.alt {
    height: 36%;
}

.alt .popup-btn {
bottom: 33%;
}

@media (max-width:991px) {
    .popup.alt {
        height: 40% !important;
        align-items: center;
    }
    
    .alt .popup-btn {
    bottom: 38%;
    }
}
@media (max-width:580px) {
    .popup.alt {
        height: 55% !important;
        align-items: center;
    }
    
    .alt .popup-btn {
    bottom: 52%;
    }
}

/* start downarrow code for Mobile dropdown. This codes work in conjunction with the mobile-news, mobile-legislation, mobile-resource code */

.s-hidden {
    visibility: hidden;
    padding-right: 10px;
}

.select {
    cursor: pointer;
    display: inline-block;
    position: relative;
    color: black;
    width: 100%;
    height: 68px;
    text-align: left;
    border: 2px solid var(--primary-color);
}

.styledSelect {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: white;
    padding: 18px 20px;
    font-weight: bold;
    font-size: 20px;
    color: var(--secondary-color);
}

#downarrow:before {
    content: "";
    width: 64px;
    height: 100%;
    background-color: var(--primary-color);
    position: absolute;
    top: 0;
    right: 0;
}

#downarrow:after {
    content: '\2193';
    width: 0;
    height: 0;
    position: absolute;
    top: -12%;
    right: 45px;
    color: white;
    font-size: 5rem;
    font-weight: 300;
}

.styledSelect:active,
.styledSelect.active {
    background-color: #eee;
}

.options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: white;
    width: calc(100% + 4px);
    transform: translateX(-2px);
    margin: 0px auto;
    padding: 20px;
    list-style: none;
    border: 2px solid var(--primary-color);
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.options li {
    padding: 0 6px;
    margin: 0 0;
    padding: 20px;
}

.options li:hover {
    background-color: #39f;
    color: white;
}

/* end arrow code */

.site-footer:after {
    content: '33';
    position: absolute;
    bottom: 140px;
    right: 20px;
    color: #fff;
    font-family: var(--head-font);
    font-size: 48rem !important;
    font-weight: var(--head-weight) !important;
    line-height: 140px;
    letter-spacing: -16px;
    opacity: 0.065;
}

.page-node-9 .teaser-wrapper {
    bottom: 0px;
    margin: 0px auto;
    border: 0px solid;
}

.teaser-wrapper .field-content a {
    color: var(--accent-color) !important;
}


/*featured news teaser a hover*/

.newsroom-featured-teaser a:hover {
    color: #fff;
}

.teaser-wrapper-txt time.datetime {
    color: var(--primary-color) !important;
}


.mini .teaser-wrapper .field-content .datetime,
.views-field-taxonomy-vocabulary-2,
.featured-bottom .datetime {
    color: var(--primary-color) !important;
}

.slant-wrapper {
    position: relative;
    background: var(--accent-color);
}

.slant-wrapper h4 {
    color: var(--primary-color);
}

.slant-wrapper.br:after {
    bottom: 0;
    right: 0;
    border-width: 166px 22px 0px 0px;
    border-color: var(--accent-color) #fff;
}

.sidebar-wrapper {
    border-top: 8px solid var(--accent-color) !important;
}

#sidebar_second.sidebar .block .view:before {
    border-left: 0px solid #dcdcdc;
}

/*
.sidebar-content.fixed .sidebar-wrapper.slant {
    padding: 40px;
}

.slant:after {
   content: '';
   display: none;
   position: absolute;
   border-style: solid;
}

.sidebar-content.fixed .slant:after {
   display: none;
}

.page-node-26 .tl:after {
    top: 0;
    left: 0;
    border-width: 329px 38px 0px 0px;
    border-color: #fff var(--primary-color);
}

.page-view-newsroom-guava .tl:after {
    top: 0;
    left: 0;
    border-width: 301px 36px 0px 0px;
    border-color: #fff var(--primary-color);
}
*/

/* For Newsletter Teaser */
.node--type-ealert .faqfield-answer p:has(a) {
background: url(http://sd02.senate.ca.gov/sites/sd02.senate.ca.gov/files/website/newsletter/button.png);
background-position: center;
background-repeat: no-repeat;
width: 100%;
margin: 0px auto;
padding: 40px;
}

.node--type-ealert .faqfield-answer a:hover {
    color: #fff !important;
}

.district-map {
    margin: 0px auto !important;
    padding: 0px !important;
}

.district-header {
    align-items: center;
    background: var(--primary-color);
}

.reap-blk .district-header .district-banner-bg {
    background: url(/sites/sd33.senate.ca.gov/files/website/sd33_district_deferred_areas.jpg) no-repeat;
    background-size: cover;
}

.reap-blk .district-header .district-banner-contents {
    background: var(--primary-color);
    color: var(--light-color);
}

.reap-blk .district-header .district-banner-contents h4 {
    color: var(--accent-color);
}

/* district page census section */
.page-node-251 .region-featured-bottom-third {
    display: flex;
    align-items: flex-start !important;
}


#featured-misc {
    padding-top: 0 !important;
}

/* End district page census section */

/* E-alert Sizing for Gonzalez GR Start*/
.node--type-ealert #main-wrapper {
    max-width: 1080px;
}

/* E-alert Sizing for Gonzalez GR End*/
/* Videos Page Title Font-size Edits Start */
.page-view-content-video h2,
.views-field-title h3 {
    font-size: 25px !important;

}

/* Videos End */

/* Events padding start */
.path-events #main-wrapper,
.path-past-events #main-wrapper {
    max-width: 100% !important;
    margin: 140px 8% 80px;
    padding-left: 0px;
    padding-right: 20%;
}


/* Calender Events */

.fc-day-grid-container {
    height: 100% !important;
}

.
/* Events end */



/* Webform */

/* 
.page-node-649 .webform-header-section .banner-bg  {
    position: relative;
    width: 35%;
    height: 600px;
    background: url(/sites/sd08.senate.ca.gov/files/website/sd08_bg2.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
} */

/* GR Fixed PC compatibility issue for contact webform buttons */
#edit-meeting-or-event--wrapper > div {
    display: flex;
    justify-content: center;
    width: 100%;
}

.webform-options-display-buttons {
    width: 100% !important;
}
/* GR Fixed PC compatibility issue for contact webform buttons END */

.webform-options-display-buttons .form-check-input:checked~.form-check-label {
    background: var(--accent-color) !important;
    border: 2px solid var(--accent-color) !important;
    color: #fff !important;
}

.webform-options-display-buttons .form-check-label:hover {
    border: 2px solid var(--accent-color) !important;
}

#edit-meeting-or-event--wrapper-legend {
    text-align: center !important;
}

.webform-fieldset-section>legend:first-child {
    color: var(--secondary-color);
    margin: 10px auto 0px;
    padding: 20px 0px;
}

.webform-section {
    background: #fff;
    border: 0;
    padding: 1rem 24rem;
    border-top: 10px solid var(--secondary-color);
    box-shadow: 2px 2px 8px 0 rgba(102, 102, 102, 0.6);
    margin-bottom: 2rem !important;
    border-left: 1.5px solid #c4c4c4;
    border-right: 1.5px solid #c4c4c4;
    border-bottom: 1.5px solid #c4c4c4;
}

legend {
    float: left;
}

.webform-header-section>.fieldset-wrapper {
    padding: 40px 0 !important;
}


/* end webform */

/* Side Navigation */
@media (max-width: 991px) {

    .navbar-brand {
        width: 80%;
        z-index: 4000;
    }

    .navbar-brand img {
        max-height: 44px;
    }

    .mainMenu {
        display: block !important;
    }

    .navbar-expand-lg .navbar-nav .nav-link {
        display: block;
    }

    .navbar-toggler {
        position: absolute;
        right: 20px;
        top: 20px;
        z-index: 3000;
    }

    .navbar-back {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        left: 20px;
        top: 20px;
        z-index: 3000;
    }

    .navbar-back i {
        font-size: 2rem;
    }

    .custom-side-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: calc(100% - 80px);
        height: 100% !important;
        padding: 40px;
        background-color: var(--primary-color);
        z-index: 2300;
        overflow-y: auto;
    }

    .custom-side-menu>ul {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .navbar-nav {
        margin: 80px auto 0px !important;
        padding: 0px !important;
    }

    .navbar-nav>li {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        width: 100%;
        padding-left: 40px !important;
        margin: 0px !important;
        text-align: left !important;
        border-bottom: 1px solid var(--light-color) !important;
        border-radius: 0px !important;
    }

    .navbar-nav>li:last-child {
        border-bottom: 0px solid var(--light-color) !important;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.8);
        width: 100%;
        height: 100%;
        opacity: 0;
    }

    .pop-in-side-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: calc(100% - 80px);
        height: 100vh !important;
        background-color: var(--secondary-color);
        padding: 40px;
        z-index: 2000;
        overflow-y: auto;
    }

    .pop-in-side-menu h3 {
        color: var(--light-color);
        padding-left: 20px;
    }

    .dropdown-item {
        padding: 28px 20px !important;
    }

    .dropdown-item.active {
        background: transparent !important;
    }

    .navbar-nav .nav-link.active,
    .dropdown-item.active a,
    .dropdown-item a:hover,
    .side-menu-items span:hover {
        color: var(--accent-color) !important;
    }

    #navbar-top {
        display: none;
    }

    /* Mobile Dropdown for News, Legislation, and Resources. */
    #mobile-bio,
    #mobile-news,
    #mobile-leg,
    #mobile-resources {
        padding: 30px;
        width: 100%;
        border: 3px solid var(--primary-color);
    }

    .mobile-news-dropdown {
        padding: 15px;
    }

    .mobile-bio-dropdown select#mobile-bio,
    .mobile-news-dropdown select#mobile-news,
    .mobile-leg-dropdown select#mobile-leg,
    .mobile-resources-dropdown select#mobile-resources {
        font-family: var(--subhead-font);
        font-size: 18px;
        color: var(--primary-color);
        font-weight: bold;
    }

    /* End Mobile dropdown Code */

    .site-footer:after {
        content: '33' !important;
        position: absolute;
        bottom: 140px;
        right: 20px;
        color: #fff;
        font-family: var(--head-font);
        font-size: 30rem !important;
        font-weight: var(--head-weight) !important;
        line-height: 140px;
        letter-spacing: -36px;
        opacity: 0.065;
    }

    .webform-header-section>.fieldset-wrapper {
        padding: 40px 0 !important;
    }

    /* Temp fix for webform web-header-section 5/23/24 ST*/
    .webform-header-section .banner-bg {
        display: none !important;
    }

    .form-check-input:checked~.form-check-label {
        color: #fff !important;
    }


    /* end webform temp fix */


    .webform-section {
        padding: 2rem 0;
        box-shadow: none;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
    }

    .path-frontpage .featured-top {
        height: 800px;
    }

    /* Biography removes positioning on anchors */
    .anchor {
        top: 0px !important;
    }

    .slant-wrapper {
        padding: 61px 0px 40px 24% !important;
    }

    
    /* .accordion-content.active {
        height: 280px !important;
    } */
}

.page-view-website-sections .views-field-title h3 {
    text-align: center;
}

.page-view-website-sections .views-field-title h3 a {
    text-align: left;
}

@media (min-width: 991px) {
    .contact-page-blk .slant-wrapper {
        width: 180% !important;
    }

    /* hide updates nav-link on mobile*/
    .navbar-nav>li:last-child {
        display: none !important;
    }

    /* fixes home page featured-top spacing */
    .path-frontpage .featured-top {
        height: 800px !important;
    }

    .flexslider {
        height: 800px !important;
    }

}

/* contact page slant wrapper */
@media (min-width: 1199px) {
    .contact-page-blk .slant-wrapper {
        width: 125% !important;
    }

}

@media (max-width:768px) {

    .path-events #main-wrapper,
    .path-past-events #main-wrapper {
        margin: 140px 0% 80px;
    }

    /* fixes home page featured-top spacing */
    .path-frontpage .featured-top {
        height: 346px;
    }

    .sidebar-container {
        display: none !important;
    }

    .path-frontpage .featured-top {
        margin-top: 40px;
    }

    .flexslider {
        height: 346px;
    }
    #sidebar_first, #sidebar_second {
        margin-left: 0px !important;
    }

}

@media (min-width:768px) {

    .mobile-bio-dropdown,
    .mobile-news-dropdown,
    .mobile-leg-dropdown,
    .mobile-resources-dropdown {
        display: none;
    }

    /* fixes home page featured-top spacing */
    .path-frontpage .featured-top {
        height: 610px;
    }

    .flexslider {
        height: 610px;
    }

}