/* SITE - sitewide styles */
html { /* to turn off text boosting on mobile */
  max-height: 999999px;
  text-size-adjust: none;
  -ms-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
}

.force-lowercase {
  text-transform: lowercase !important;
}

.master-text-module h2, .homepage-fullwidthheader-module h3 {
  padding-bottom: 1em;
}

.et_pb_post_title .entry-title {
  overflow-wrap: unset !important; /* prevents page titles from being broken up! */
}

/* option 1: disable and remove RSVP button if no link provided */
.et_pb_button.button-disabled {
  display: none;
}

.et_pb_button_module_wrapper.button-wrapper-disabled {
  display: none;
}

/* option 2: disable RSVP button with custom text (e.g. "RSVPs open 2 weeks before...")
.et_pb_button.button-disabled {
  pointer-events: none;
  color: #f16e2d !important;
  background-color: white !important;
}
*/

@media (max-width: 980px) { /* reduce header font size on mobile */
  .global-page-header {
    padding: 60px 0 !important;
  }
  
  .global-page-header .et_pb_title_container {
    padding: 1em 0 !important;
  }
  
  .global-page-header .entry-title {
    font-size: 35px !important;
    letter-spacing: 5px !important;
  }
}

/* SITE - disable WordPress footer */
#main-footer {
  display: none !important;
}

/* SITE - IMPORTANT!: disable & hide sidebar, expand content area */
#main-content .container:before { /* take out the divider line between content and sidebar */
  background: none;
}
 
#sidebar {
  display:none;
}

@media (min-width: 981px) { /* expand the content area to fullwidth */
	#left-area {
    	width: 100%;
    	padding: 23px 0px 0px !important;
    	float: none !important;
	}
}

/* PayPal button */
#paypal-button br {
  display: none;
}

/* MENU - including logo and tagline */
.nav-donate a {
  color: #f16e2d !important;
}

@media (max-width: 1060px) {
  #main-header {
    position: fixed !important;
  }
  
  #logo {
    max-height: 80% !important;
  }
  
  .mobile_menu_background {
    position: absolute;
    width: 100%;
    height: 100vh;
    top: 89px;
    left: 0;
    z-index: -1;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    transition: 0.3s ease;
 	pointer-events: none;
  }
  
  .opened .mobile_menu_background {
    opacity: 1;
  }
  
  .et_menu_container { /* expand menu width to 100% */
    width: 100%;
  }
  
  .et_menu_container .logo_container {
    margin-left: 10%;
  }
  
  .et_menu_container #et-top-navigation {
    margin-right: 10%;
  }
  
  /* VERY IMPORTANT - Divi mobile menu scroll fix */
  .et_mobile_menu {
    overflow-y: scroll !important;
    max-height: 70vh !important;
    -overflow-scrolling: touch !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 5% 10%;
    border-top: 3px solid #5692c4;
  }
  
  .et_mobile_menu li a {
    font-size: 18px;
    padding: 13px 5%;
  }
  
  .mobile_menu_bar_toggle:before { /* mobile menu button */
    color: #5692c4 !important;
  }
}

@media (min-width: 1061px) { 
  .nav-donate a:after {
    content:  '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: #f16e2d;
  }
  
  .et_header_style_left #et-top-navigation, .et_header_style_split #et-top-navigation {
 	padding: 60px 0 0 0;
  }
}

@media (max-width: 1060px) { /* changing breakpoint for mobile menu */
  .et_header_style_split #main-header { /* FOR NEW 'CENTERED INLINE LOGO' MENU STYLE */
    visibility:hidden;
  }
  
  #et_mobile_nav_menu {
    display: block;
  }

  #top-menu {
    display: none;
  }
  
  .et_header_style_left #et-top-navigation, .et_header_style_split #et-top-navigation {
 	padding: 33px 0 0 0 !important;
  }
  
  #et_top_search {
    margin: 0 35px 0 0;
    float:left
  }

  #et_search_icon:before {
    top:7px
  }

  .et_header_style_centered #et_top_search, .et_vertical_nav.et_header_style_centered #main-header #et_top_search {
    display:none !important
  }

  .et_header_style_centered .et_search_outer, .et_header_style_split .et_search_outer {
    display:none
  }

  .et_header_style_split #et_top_search, .et_vertical_nav.et_header_style_split #main-header #et_top_search {
    display:none !important
  }

  .et_header_style_left .et-search-form, .et_header_style_split .et-search-form {
    width: 50% !important;
    max-width:50% !important
  }

  .et_header_style_slide .et_slide_in_menu_container .et-search-form {
    width: 100% !important;
    max-width:100% !important
  }
 }

@media (min-width: 1340px) { /* only display tagline on desktop with enough width */
  .logo_container:after {
    display: none; /* BECAUSE THIS WON'T FIT INTO THE NEW 'CENTERED INLINE LOGO' MENU STYLE */
    content: "AHWGO \A Forum, Network and Resource to meet the challenges of an aging society";
    position: absolute;
    width: 20vw;
    top: 50%;
    transform: translate(2em, -50%);
    font-family: 'Avenir', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: rgba(0,0,0,.6);
    white-space: pre-wrap;
  }
}

/* HOMEPAGE - disable Divi gallery lightbox */
.disable-lightbox a {
  /* pointer-events: none; */
}

.disable-lightbox .et_overlay {
  display: none !important;
}

.disable-lightbox .et-pb-controllers {
  display: none !important;
}

.disable-lightbox .et-pb-slider-arrows {
  display: none !important;
}

/* HOMEPAGE - hero */
@media (max-width: 980px) {
  #home-hero {
    display: none;
  }
  #home-hero-tagline {
    display: none;
  }
}

@media (min-width: 981px) {
  #home-hero {
    position: absolute;
    background-image: url(https://athomewithgrowingold.com/wp-content/uploads//AHWGO_logo_2019_textonly.png);
    background-size: auto 100%;
    background-repeat: no-repeat;
    box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border: 15px solid #5692c4;
    top: 40px;
    left: 40px;
    width: calc(43.945vw - 80px); /* divide gallery image height by width to get height of fullwidth gallery */
    height: calc(43.945vw - 80px);
  }

  #home-hero-tagline {
    position: absolute;
    width: 40vw;
    top: calc(43.945vw/2);
    left: 50vw;
    transform: translateY(-50%);
    padding: 0;
    color: white;
    font-size: 2em;
    font-family: 'Avenir', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 600;
    line-height: 1.5em;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
}

/* HOMEPAGE - forum/event modules */
.homepage-event-module .entry-featured-image-url {
  margin-bottom: 0;
}

.homepage-event-module .entry-featured-image-url img {
  height: 250px;
  width: auto;
  min-width: 100%;
  object-fit: cover;
}

.homepage-event-module .entry-title, .homepage-event-module .not-found-title {
  padding: 30px 20px 20px;
}

.homepage-event-module .not-found-text {
  font-size: 18px;
  line-height: 1.5em;
}

.homepage-event-module .post-meta, .homepage-event-module .post-content {
  padding: 0 20px;
}

.homepage-event-module .entry p {
  padding: 0 20px 20px;
}

.homepage-event-module a.more-link, .eventspage-event-section article a.more-link, .next-event-info-column article a.more-link { /* also Forums / Next Forums page links */
  display: inline-block; /* essential for :after */
  position: relative; /* essential for :after */
  font-size: unset !important;
  line-height: 3em !important;
  color: #5692c4;
}

@media (min-width: 981px) {
  .homepage-event-module a.more-link:after, .eventspage-event-section article a.more-link:after, .next-event-info-column article a.more-link:after {
    content: '';
    position: absolute;
    top: calc(1.8em + 10px);
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #5692c4;
    background-size: 100% 100%;
    opacity: 0;
    transition: 0.3s ease;
  }
  .homepage-event-module a.more-link:hover:after, .eventspage-event-section article a.more-link:hover:after, .next-event-info-column article a.more-link:hover:after {
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .homepage-event-module .entry {
    margin-bottom: 42px;
  }
}

@media (min-width: 981px) {
  .homepage-event-module .entry {
    margin-bottom: 60px;
  }
}

.homepage-event-section .et_pb_column {
  transition: 300ms ease;
}

@media (max-width: 980px) {
  .homepage-event-section .et_pb_column {
    box-shadow: inset 0 -10px 0 0 #f16e2d; /* blue: #5692c4 */
  }
}

@media (min-width: 981px) {
  .homepage-event-section .et_pb_column {
    box-shadow: inset 0 0 0 0 #f16e2d;
  }
  
  .homepage-event-section .et_pb_column:hover {
    box-shadow: inset 0 -10px 0 0 #f16e2d;
  }
}

/* HOMEPAGE - quotes */
@media (max-width: 980px) {
  #homepage-quotes .et_pb_container.clearfix {
    /* height: 600px !important; */
    width: 80% !important;
  }
  
  #homepage-quotes .et_pb_slide_title:before {
    content: '“';
  }
  
  #homepage-quotes .et_pb_slide_title:after {
    content: '”';
  }
  
  /*
  #homepage-quotes .et_pb_slide_title:before {
    content: '“';
    position: absolute;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: Calibri;
    font-weight: 600;
    font-size: 55px;
    padding: 20px 15px 0px;
    border-radius: 100px;
    border: 2px solid #fff;
    opacity: 1 !important;
    transition: 300ms ease !important;
  }
  
  #homepage-quotes .et_slide_transition .et_pb_slide_title:before {
    opacity: 0 !important;
  }
  */
  
  #homepage-quotes .et-pb-arrow-prev, #homepage-quotes .et-pb-arrow-next {
    display: none;
  }
}

@media (min-width: 981px) {
  #homepage-quotes .et_pb_slide_title:before {
    content: '“';
    position: absolute;
    top: 50%;
    left: -80px;
    transform: translateY(-150%);
    color: #fff;
    font-family: Calibri;
    font-weight: 600;
    font-size: 55px;
    padding: 20px 15px 0px;
    border-radius: 100px;
    border: 2px solid #fff;
  }

  #homepage-quotes .et_pb_slide_title:after {
    content: '”';
    position: absolute;
    top: 50%;
    right: -80px;
    transform: translateY(-150%);
    color: #fff;
    font-family: Calibri;
    font-weight: 600;
    font-size: 55px;
    padding: 20px 15px 0px;
    border-radius: 100px;
    border: 2px solid #fff;
  }

  #homepage-quotes .et-pb-arrow-prev, #homepage-quotes .et-pb-arrow-next {
    transform: translateY(-130%);
  }
}

/* HOMEPAGE - banner */
#homepage-banner .header-content {
  width: 100% !important;
  padding: 0;
}

#homepage-banner .et_pb_header_content_wrapper {
  line-height: 1.5em;
}

/* HOMEPAGE - mission statement */
#homepage-mission .header-content {
  width: 100% !important;
  padding: 0;
}

#homepage-mission .et_pb_header_content_wrapper {
  line-height: 1.5em;
}

/* HOMEPAGE - story points */
@media (max-width: 980px) { 
  .anim-underline {
    background-image: linear-gradient(to right, black 50%, black 50%);
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: 0 1.3em;
  }
}

@media (min-width: 981px) { 
  .anim-underline {
    position: relative;
  }

  .anim-underline:after {
    content: '';
    position: absolute;
    top: calc(1em + 10px);
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, black 50%, rgba(0,0,0,0) 50%);
    background-size: 200% 100%;
    background-position: right;
    transition: 0.3s ease;
  }
  
  .homepage-storypoint-section:hover .anim-underline:after {
	background-position: left;
  }
}

/* HOMEPAGE - Our First 10/Next 10 Years */
.homepage-fullwidthheader-module .header-content {
  width: 100% !important;
  padding: 0;
}

/* HOMEPAGE - video embed */
.homepage-video-embed {
  border: 3px solid white;
  border-radius: 5px;
}

/* HOMEGPAGE - Right Now section */
@media (max-width: 980px) {
  body #page-container .et_pb_section #homepage-rightnow-header.et_pb_fullwidth_header_3 .et_pb_button.et_pb_button_two { /* has to be exhaustive to override default stlyes */
    margin-top: 20px !important;
    margin-left: 0 !important;
  }
}

/* HOMEPAGE - line breaks */
@media (max-width: 1319px) { /* storypoint line breaks only on desktop (not even tablet) */
  .desktop-line-break {
    display: none;
  }
}

@media (min-width: 981px) { 
  .mobile-line-break {
    display: none;
  }
}

/* HOMEPAGE - hyperlinks */
.homepage-light-text p a { /* only links within paragraphs */
  color: inherit;
  text-decoration: underline;
}

/* OUR STORY */
.story-founder-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

@media (max-width: 980px) {
  .story-founder-content-column {
    flex-basis: 100%;
    float: none;
  }
}

@media (min-width: 981px) {
  .story-founder-content-column {
    flex-basis: 50%;
    float: none;
  }
  
  .story-founder-image { /* to match 30px margin-bottom of adjacent text box */
    margin-bottom: 30px !important;
  }
}

/* TEAM */
@media (max-width: 767px) { /* mobile only, not on tablet (768px) or desktop */
  .et_pb_team_member_image {
    left: 50%;
    transform: translateX(-50%);
    margin: 0 0 25px !important;
  }
}

@media (min-width: 768px) {
  .et_pb_team_member_image {
    margin: 0 50px 0 0 !important;
  }
}

@media (max-width: 980px) {
  .team-jumplinks .et_pb_column {
    margin: 0 0 10px !important;
  }
}

@media (min-width: 981px) {
  .et_pb_team_member_image {
    margin: 0 0 25px !important;
  }
}

.et_pb_team_member_image img {
  width: 100%;
}

.et_pb_team_member_description h4.et_pb_module_header { /* profile name */
  width: 73%;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 10px !important;
  overflow-wrap: initial; /* prevents names from being broken up! */
}

.et_pb_team_member_description .et_pb_member_position { /* profile position */
  line-height: 1.2em !important;
  padding-bottom: 14px !important;
  overflow-wrap: initial;
}

/* CONTACT US */
@media (max-width: 980px) {
  .contact-us-info-box .master-text-module strong {
    line-height: 1.3em !important;
  }
}

/* NEWS & SEARCH RESULTS */
/* (search results posts section is tagged .newspage-posts-section) */
@media (max-width: 980px) {
  .newspage-posts-section .entry-featured-image-url {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (min-width: 981px) {
  .newspage-posts-section .entry-featured-image-url {
    width: 60%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 35px;
  }
}

.newspage-posts-section .post-meta {
    margin-bottom: 20px;
}

.newspage-posts-section article.post {
  padding-bottom: 45px;
  margin-bottom: 75px;
}

.newspage-posts-section article.post:not(:last-of-type):after { /* divider under all articles except last on page */
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: #666666;
  visibility: visible;
}

.newspage-posts-section .more-link {
  text-transform: capitalize;
}

/* NEXT FORUMS */
.nextforums-entry.hide-entry {
  display: none;
}

@media (max-width: 980px) {
  .next-event-image-column .entry-featured-image-url {
    margin-bottom: 0;
  }
}

.next-event-image-column article {
  margin-bottom: 0;
}

.next-event-image-column .entry-title {
  display: none;
}

.next-event-info-column article {
  margin-bottom: 0;
}

/* FORUMS/NEWS - individual posts */
@media (max-width: 980px) {
  .forums-postpage-postcontent {
    padding: 0;
  }
}

@media (min-width: 981px) {
  .forums-postpage-postcontent {
    padding: 0 60px 120px;
  }
}

.forums-postpage-postcontent .et_builder_inner_content .et_pb_section_0, .news-postpage-postcontent .et_builder_inner_content .et_pb_section_0 {
  padding: 0;
}

.forums-postpage-postcontent .et_builder_inner_content .et_pb_row_0, .news-postpage-postcontent .et_builder_inner_content .et_pb_row_0 {
  padding: 0;
  width: 100%;
}

.forums-postpage-postexcerpt { /* used only for RSVP button; meant to be hidden and out of view */
  position: absolute;
  opacity: 0;
}

.social-share-block .et-social-icons:before {
  content: '';
  position: absolute;
  top: -25px;
  left: 0;
  width: 130px;
  height: 1.5px;
  background-color: #666666;
}

.social-share-block .et-social-icons {
  padding: 0;
  float: left;
}

.social-share-block .et-social-icon {
  margin-left: 0;
  margin-right: 30px;
}

.social-share-block .et-social-icon a:hover {
  color: #5692c4;
}

/* FORUMS - forums modules */
#forumspage-yearlinks {
  line-height: 1.5em;
}

@media (max-width: 980px) {
  .eventspage-event-section article {
  	padding-bottom: 34px !important;
    box-shadow: inset 0 -10px 0 0 #f16e2d; /* border */
    transition: 300ms ease;
  }
}

@media (min-width: 981px) {
  .eventspage-event-section article {
  	padding-bottom: 34px !important;
    box-shadow: inset 0 0 0 0 #f16e2d; /* border */
    transition: 300ms ease;
  }

  .eventspage-event-section article:hover {
    box-shadow: inset 0 -10px 0 0 #f16e2d;
  }
}

.eventspage-event-section article .entry-title {
  margin-bottom: 10px;
}

/* AGEIN */
.agein-page-headertitle h1.entry-title { /* remove default text-transform so that 'agein' can be customized by JS*/
  text-transform: none !important;
}

.agein-page-video-embed {
  border: 3px solid #5692c4;
  border-radius: 5px;
}

/* OUR PICKS */
.ourpicks-section h4 {
  /* text-indent: -0.5em; /* hanging quotes; hanging-punctuation not supported outside of Safari */
}

.ourpicks-section h6 {
  padding-bottom: 40px;
}

.ourpicks-section h6 a {
  color: #2ea3f2;
}

/* FORUM VIDEO LIBRARY */
@media (min-width: 981px) {
  .forumvideolibrary-entry {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  
  .forumvideolibrary-entry .et_pb_column {
    flex-basis: 50%;
    float: none;
  }
}

/* to override default arrow styles for thumbnail track
.forumvideolibrary-player .et_pb_carousel.container-width-change-notify .et-pb-slider-arrow {
  color: #666666;
  opacity: 1;
}

.forumvideolibrary-player .et_pb_carousel.container-width-change-notify .et-pb-arrow-prev {
  left: -100px;
}

.forumvideolibrary-player .et_pb_carousel.container-width-change-notify .et-pb-arrow-next {
  right: -100px;
}

.forumvideolibrary-player .et_pb_carousel.container-width-change-notify:hover .et-pb-arrow-prev {
  left: -100px;
}

.forumvideolibrary-player .et_pb_carousel.container-width-change-notify:hover .et-pb-arrow-next {
  right: -100px;
}

.et_pb_carousel.container-width-change-notify {
  overflow: visible;
}
*/

/* OUR PEERS */
@media (max-width: 980px) {
  .ourpeers-links-firstcolumn {
    margin-bottom: 0 !important;
  }

  .ourpeers-links-firstcolumn .et_pb_text {
    margin-bottom: 1em !important;
  }
}

/* PRESENTERS */
@media (max-width: 980px) {
  .presenters-names-firstcolumn {
    margin-bottom: 0 !important;
  }

  .presenters-names-firstcolumn .et_pb_text {
    margin-bottom: 0 !important;
  }
}