/*!
 * Bootstrap v3.0.2 by @fat and @mdo
 * Copyright 2013 Twitter, Inc.
 * Licensed under http://www.apache.org/licenses/LICENSE-2.0
 *
 * Designed and built with all the love in the world by @mdo and @fat.
 */


/* 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: #f5ae67;
}

.path-frontpage .navbar-expand-lg, .path-frontpage .navbar-expand-lg .navbar-nav .nav-item .dropdown-menu {
  background: var(--secondary-color);
}

.field--name-field-front-image {
	width: 100%;
	max-width: 880px;
	text-align: center;
	margin: 20px auto
}

.path-frontpage .featured-top {  
    overflow: hidden;
}
  
.path-frontpage .flexslider:after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0);
      z-index: 2;
}


table tr th, table tr th a, table tr th a:hover, table tr th a:focus {
  color: #000;
}

@media (max-width: 991px) {
   .path-frontpage .flexslider .slides .views-field-field-feature-image:after {
      top: -360px;
      font-size: 300px;       
    }
}

@media (max-width: 767px) {
   .path-frontpage .flexslider .slides .views-field-field-feature-image:after {
      display: none;      
    }
}

/* Latest News With One Photo */
.view-display-id-block_2 > .view-content > .news-content > .views-field-field-front-image,
.view-display-id-block_6 > .view-content > .news-content > .views-field-field-front-image,
.view-display-id-block_7 > .view-content > .news-content > .views-field-field-front-image,
.view-display-id-block_3 > .view-content > .news-content > .views-field-field-video {
    display: none !important;
}

.view-display-id-block_2 > .view-content > .news-content:first-child > .views-field-field-front-image,
.view-display-id-block_6 > .view-content > .news-content:first-child > .views-field-field-front-image,
.view-display-id-block_7 > .view-content > .news-content:first-child > .views-field-field-front-image,
.view-display-id-block_3 > .view-content > .news-content:first-child > .views-field-field-video {
    display: block !important;
}

.view-display-id-block_6 .views-field-field-front-image .field-content {
    background: url('/sites/sd00.senate.ca.gov/files/website/legislation.jpg') center center no-repeat !important;
    background-size: cover !important;    
}

.view-display-id-block_7 .views-field-field-front-image .field-content {
    background: url('/sites/sd00.senate.ca.gov/files/website/senate_bg1.jpg') center center no-repeat !important;
    background-size: cover !important;    
}

.view-display-id-block_2 .views-field-field-front-image .field-content {
    background: url('/sites/sd00.senate.ca.gov/files/website/news_bg.jpg') center center no-repeat !important;
    background-size: cover !important;    
}

#topBtn,
.scroll-btn,
.scroll-btn>* {
    display: none !important;
}
.district-photo-grid {
    padding: 0px;
}

.district-photo-grid img {
    border-radius: 0px;
}

.mb-40 {
    margin-bottom: 40px;
}

legend {
    font-size: 1.6rem !important;
    text-transform: capitalize !important;
}


/* Popup Townhall
*************************/
.popup {
    position: fixed !important;
    bottom: 0;
    right: 0;
    background: white;
    max-width: 400px !important;
    height: auto;
    padding: 0px 20px 16px !important;
    border-top-left-radius: 4px;
    border: 1px solid #dcdcdc;
    cursor: pointer;
    z-index: 100;
}

.popup h3 {
    font-size: 1.8rem !important;
}

.popup-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 284px;
    right: 12px;
    background: var(--accent-color);
    color: var(--light-color);
    width: 40px;
    height: 40px;
    font-family: var(--subhead-font);
    font-weight: var(--link-weight);
    border-radius: 50%;
    cursor: pointer;
    z-index: 101;
}

.block-content .views-field-nothing {
    height: auto !important;
}

    .sidebar .block {
        border-width: 0px !important;
    }

.view-video {
    padding: 24px;
}

.view-header {
    margin-bottom: 20px;
}
/* Makes footer full width to fit all four office's information start */

.region-footer-first {
    width: 100% !important;
    text-align: center !important;
}

.region-footer-second {
    width: 100% !important;
}
/* Makes footer full width to fit all four office's information end */


@media (max-width: 991px) {
    .featured-bottom {
        padding: 0px 4%;
    }
    .featured-bottom .region-featured-bottom-first,
.featured-misc .region-featured-bottom-second, 
    .featured-misc .region-featured-bottom-third {
        margin: 0px !important;
    }
    
    .flexslider .slides .views-field-field-feature-image img {
        width: 100vw;
        height: 400px;
        -o-object-fit: cover;
        object-fit: cover;
        object-position: center 0%;
    }
    .path-frontpage .flexslider {
        height: auto;
    }
    .path-frontpage .featured-top {
        position: relative;
        top: 60px;
        height: 480px;
    }
    .block-content .content {
        height: auto;
    }
    .social-wrapper {
        height: auto;
    }
}

.blue-bg {
    background: var(--secondary-color);
    color: white;
    padding: 40px;
}
.blue-bg .row {
    align-items: center;
}

.blue-bg h2 {
    font-size: 2.4rem !important;
}

.committee-wrapper {
    text-align: center;
}

.committee-wrapper h1 {
    margin-top: 40px !important;
}

.committee-wrapper ul {
    list-style: none;
}