/*
 * COMMUNITIES LANDING PAGE
 */

/* Community landing row base styles */
.community-landing-row .devsite-landing-row-description {
  font-size: 20px;
  line-height: 28px;
  padding: 0;
}

.community-description-550-width .devsite-landing-row-description {
  max-width: 550px;
}

/* Padding modifiers */

.community-landing-row-no-pad {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}

.community-landing-row-pad-bottom {
  padding-bottom: 100px !important;
}

.community-landing-row-pad-top {
  padding-top: 100px !important;
}

@media screen and (max-width: 720px) {
  .community-landing-row-pad-bottom {
    padding-bottom: 60px !important;
  }

  .community-landing-row-pad-top {
    padding-top: 60px !important;
  }
}

/* Centered row */

.community-landing-row-centered .devsite-landing-row-header-text {
  text-align: center;
}

.community-landing-row-centered .devsite-landing-row-header-text h2 {
  padding-right: 0 !important;
}

.community-landing-row-centered.devsite-landing-row-100 .devsite-landing-row-item-image {
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

@media screen and (max-width: 720px) {
  .community-landing-row-centered.devsite-landing-row-100 .devsite-landing-row-item-image {
    width: 100%;
  }
}


/* Video row */

.community-landing-row-video .devsite-landing-row-group {
  background: #000;
  color: #fff;
  left: 0;
  max-width: 100%;
  position: relative;
  width: 100%;
}

.community-landing-row-video-background {
  height: 100%;
  object-fit: cover;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.community-landing-row-video-screen {
  background: linear-gradient(45deg, rgba(0, 0, 0, .6), transparent);
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.community-landing-row-video-content {
  padding: 320px 44px 80px;
  position: relative;
  margin: 0 auto;
  max-width: 1440px;
  width: 100%;
}

.community-landing-row-video-title,
.community-landing-row-video-title h1 {
  color: #fff;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.12;
  margin-bottom: 0;
}

.community-landing-row-video-subtitle {
  margin: 0 0 24px !important;
}

@media screen and (max-width: 720px) {
  .community-landing-row-video-title,
  .community-landing-row-video-title h1 {
    font-size: 36px;
    line-height: 1.12;
  }
}

/* Icons row */

.community-landing-row-icons .devsite-landing-row-group {
  margin: 0 auto;
  max-width: 1024px;
}

.community-landing-row-icons .devsite-landing-row-item-icon-container {
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
}

.community-landing-row-icons .devsite-landing-row-item-icon-container {
  height: 100px;
  width: 100px;
}

.community-landing-row-icons .devsite-landing-row-item-icon {
  height: 100px;
  font-size: 100px;
  width: 100px;
}

.community-landing-row-icons .devsite-landing-row-item-description-content {
  font-size: 20px;
  line-height: 28px;
  text-align: center;
}

/* Cards row */

.community-landing-row-cards .devsite-landing-row-item {
  border: 1px solid #dadce0;
  border-radius: 4px;
  box-shadow: none;
}

.community-landing-row-cards .devsite-landing-row-item-description h3 {
  color: #212121;
  font-size: 28px;
  position: relative;
  z-index: 1;
}

.community-landing-row-cards .devsite-landing-row-item-list,
.community-landing-row-cards .devsite-landing-row-item-list-item {
  margin: 0;
}

.community-landing-row-cards .devsite-landing-row-item-list-item:not(:first-of-type) {
  margin-top: 24px;
}

.community-landing-row-cards .community-landing-row-card-item,
.community-landing-row-cards .community-landing-row-card-item .devsite-landing-row-item-media{
  overflow: visible;
}

.community-landing-row-card-item .devsite-landing-row-item-list-item-description h4 {
  font: 400 18px/26px Google Sans, sans-serif;
}

.community-landing-row-card-item .devsite-landing-row-item-image {
  position: relative;
}

.community-landing-row-card-item .devsite-landing-row-item-image::before {
  background: center / contain no-repeat;
  content: '';
  display: block;
  height: 220px;
  position: absolute;
  right: 20px;
  width: 220px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.community-landing-row-card-item-professionals .devsite-landing-row-item-image::before {
  background-image: url('/community/images/card_illo_professionals.png');
}

.community-landing-row-card-item-entrepreneurs .devsite-landing-row-item-image::before {
  background-image: url('/community/images/card_illo_entrepreneurs.png');
}

.community-landing-row-card-item-wit .devsite-landing-row-item-image::before {
  background-image: url('/community/images/card_illo_wit.png');
}

.community-landing-row-card-item-students .devsite-landing-row-item-image::before {
  background-image: url('/community/images/card_illo_students.png');
}

@media screen and (max-width: 1024px) {
  .community-landing-row-cards .devsite-landing-row-item-description h3 {
    font-size: 24px;
  }
  .community-landing-row-card-item .devsite-landing-row-item-image::before {
    height: 160px;
    right: 8px;
    width: 160px;
  }
}

/* Dialog row */

.community-landing-dialog {
  left: 50%;
  margin: 0 !important;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 960px;
  position: absolute;
}

.community-landing-dialog .devsite-dialog-close .material-icons {
  margin-right: 0;
}

/*
 * COMMUNITY DIRECTORY STYLES
 */

.community-directory__item {
  text-align: center;
}

.community-directory__item__name {
  margin-top: 0;
}

.community-button {
  align-self: flex-end;
}

/*
 * COMMUNITY PROGRAM LANDING PAGE
 */

/* Header row */

.community-header-landing-row {
  position: relative;
}

.community-header-landing-row-image {
  left: 50%;
  max-width: 100vw;
  position: relative;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 100vw;
}

/* Hero row */
.devsite-landing-row-description,
.devsite-landing-row-item-description-content {
  color: var(--devsite-ref-palette--grey700);
}

.color-scheme--dark .devsite-landing-row-description,
.color-scheme--dark .devsite-landing-row-item-description-content {
  color: var(--devsite-ref-palette--grey400);
}

.community-hero {
  padding: 12px 0;
}

.community-bwai {
  background: #f8f9fa !important;
  padding: 0;
}

.community-bwai p {
  font: 400 20px 'Google Sans';
  margin: 0;
  padding: 60px 0;
  max-width: 810px;
  justify-self: center;
  position: relative;
}

@media screen and (min-width: 1400px) {
  .community-bwai p:before {
    content: '';
    background: url(/community/images/bwai-arrow.svg) no-repeat;
    position: absolute;
    left: -240px;
    top: 40px;
    width: 200px;
    height: 120px;
  }
}

.community-hero-image-mobile {
  display: none;
}

@media screen and (max-width: 800px) {
  .community-hero-image-mobile {
    display: block;
    justify-self: center;
    max-height: 238px; /*to match the BwAI image height*/
  }

  .community-hero-image {
    display: none;
  }

  .community-bwai p {
    font-size: 16px;
  }
}

/*To match Devfest hero image background color*/
.devsite-landing-row.devsite-landing-row-1-up.community-hero {
  background: #f2f1f0; 
}

/* Quote row */
.community-quote-row {
  margin: auto !important;
}

.community-quote-row img {
  border-radius: 8px;
}

.community-quote-row .community-profile-image {
  width: 50px;
}

.community-announcement-row {
  margin-top: 40px;
}
.community-announcement-row h3 {
  font: var(--devsite-h1-font);
  letter-spacing: var(--devsite-h1-letter-spacing);
}

.community-announcement-row h3 a {
  color: #212121;
}

.community-announcement-row span {
  color: #212121;
  font-size: 24px;
  line-height: 34px;
}

.community-announcement-row p {
  color: #212121;
  font-size: 20px;
  line-height: 31px;
}

.community-announcement-row p a {
  text-decoration: underline;
}

.community-announcement-v2-row {
  .devsite-landing-row-item-image {
    background: transparent;
    @media screen and (min-width: 600px) {
      height: 400px;
      width: 400px;
    }
    @media screen and (min-width: 1200px) {
      margin-left: 175px;
    }
  }
}

.community-announcement-v2-row p {
  font-size: 20px;
  line-height: 31px;
  padding: 50px 0;
  max-width: 550px;
}

.community-announcement-hero-img {
  .devsite-landing-row-item-media {
    @media screen and (min-width: 600px) {
      grid-column: var(--devsite-media-grid-column,3);
    }
    @media screen and (min-width: 840px) {
      grid-column: var(--devsite-media-grid-column,5/span 4);
    }
  }
}

.community-announcement-hero h2 {
  font-size: 54px;
  line-height: 64px;
  @media screen and (min-width: 840px) {
    padding: 0 250px;
  }
}

.community-announcement-hero span {
  font-size: 30px;
  line-height: 42px;
}

.community-impact-story-row img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.community-program-landing-page devsite-dialog {
  width: 100%;
  max-width: 1600px;
}

.community-impact-story-row {
  .devsite-landing-row-html {
    display: flex;
    @media screen and (max-width: 600px) {
      flex-direction: column;
    }
  }
  @media screen and (min-width: 1000px) {
    margin-left: 30px;
    margin-right: 30px;
  }
  .devsite-landing-row-item-media-left {
    z-index: 1;
    @media screen and (min-width: 1000px) {
      margin-top: 50px;
      margin-bottom: 50px;
      margin-left: 20px;
    }
    .img-wrapper {
      padding: 0;
      position: relative;
      border-radius: 16px;
      width: 100%;
      height: 100%;
      @media screen and (min-width: 840px) {
        margin-right: 20px;
      }
      @media screen and (min-width: 1000px) {
        width: 400px;
        height: 400px;
      }
      /* &:after {
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 64px;
        height: 64px;
        content: url("/community/images/play-circle.png");
      } */
    }
  }
  .devsite-landing-row-item-description h2 {
    color: #fff;
  }
  .devsite-landing-row-item-description {
    border-radius: 16px;
    background: #4285f4;
    .devsite-landing-row-item-body {
      padding: 25px;
      @media screen and (min-width: 840px) {
        padding: 50px;
      }
      @media screen and (min-width: 1000px) {
        padding: 90px 140px 130px 230px;
      }
    }
    .devsite-landing-row-item-description-content {
      color: #fff;
      @media screen and (min-width: 840px) {
        font-size: 30px;
        line-height: 42px;
      }
    }
  }
  .devsite-landing-row-item-description h3 a {
    color: #fff;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    line-height: 32px;
  }
}
/* Network row */
.community-network-row h2,
.community-map h2,
.become-a-leader-top h2 {
  font: 700 40px/40px 'Google Sans';
}

.community-network-row h3 {
  font: 400 24px/32px 'Google Sans';
}

/* Story row */
.community-story-row img {
  border-radius: 8px;
}

/* CTA row */
.community-cta .devsite-landing-row-item-description-content {
  color: #fff;
}

.community-cta h3 a {
  font-weight: 500;
}

.community-map {
  background: #e8f0fe;
  padding-block: 80px;
}

.about-communities-row figure {
  height: 260px;
}

.about-communities-row .devsite-landing-row-item:nth-of-type(1) figure {
  background-color: #fce8e6;
}

.about-communities-row .devsite-landing-row-item:nth-of-type(2) figure {
  background-color: #e6f4ea;
}

.about-communities-row .devsite-landing-row-item:nth-of-type(3) figure {
  background-color: #e8f0fe;
}

.about-communities-row img {
  height: 180px;
  margin-block: 40px;
  width: auto;
}

.community-network-row figure,
.community-network-row img {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.community-network-row.devsite-landing-row-cards:not(.about-communities-row) .devsite-landing-row-item {
  border: 2px solid black;
}

.community-network-row.devsite-landing-row-cards h3 a,
.devfest-row h3 a,
.become-a-leader-top h3 a,
.become-a-leader-bot h3 a {
  color: black !important;
}

.devfest-row {
  border-top: 2px solid #9aa0a6;
  max-width: 1440px;
}

.devfest-row .devsite-landing-row-item-description {
  background: url(/community/images/inward-brackets.png) top -4px left -6px
  no-repeat, url(/community/images/more.png) bottom right 24px no-repeat;
  height: 468px;
}

.devfest-row .devsite-landing-row-item-body {
  height: 100%;
  padding-right: 24px;
}

.devfest-row h3,
.become-a-leader-top h3,
.become-a-leader-bot h3 {
  font: 400 32px/40px 'Google Sans' !important;
  margin-top: auto !important;
}

.devfest-row .devsite-landing-row-item-buttons {
  margin-block: 0 auto;
}

.community-leads-platform .devsite-landing-row-inner {
  padding-inline: 0;
  position: relative;
}

.community-leads-platform .devsite-landing-row-item-media {
  margin-inline: auto 2.4vw;
  z-index: 1;
}

.community-leads-platform .devsite-landing-row-item-image {
  background: #4285fa;
  padding-bottom: 16px;
}

.community-leads-platform .devsite-landing-row-item-image img {
  height: 38vw;
  max-height: 571px;
  width: fit-content;
}

.community-leads-platform .devsite-landing-row-item-body {
  background: url('/community/images/left-bracket.png') top 24px left 24px
  no-repeat, url('/community/images/right-bracket.png') bottom 24px right 24px
  no-repeat;
  height: 613px;
  padding-inline: 24px;
}

.community-leads-platform h3 {
  font: 32px/40px 'Google Sans' !important;
  margin-top: auto !important;
  padding-top: 80px;
}

.community-leads-platform h3 a {
  color: white !important;
}

.community-leads-platform span {
  color: white;
  font: 400 16px/24px 'Google Sans';
}

.community-leads-platform .devsite-landing-row-item-buttons {
  margin-block: 0 auto;
}

.become-a-leader-top {
  background: #e8f0fe;
  padding-block: 24px 64px !important;
}

.become-a-leader-top h2 {
  max-width: 740px;
}

.become-a-leader-top .devsite-landing-row-group {
  background: url(/community/images/x.png) top 0 left 0 no-repeat, #e8f0fe;
  margin-top: 0 !important;
  padding-top: 32px;
}

.become-a-leader-bot {
  background: #e8f0fe;
  padding-bottom: 32px !important;
}

.become-a-leader-bot .devsite-landing-row-group {
  background: url(/community/images/bar.png) bottom 0 right 0 no-repeat,
  #e8f0fe;
  padding-bottom: 32px;
}

.become-a-leader-top img,
.become-a-leader-bot img {
  background: #000;
  border: 3px solid #34a853;
  border-radius: 16px;
  padding: 24px;
}

@media screen and (min-width: 1521px) {
  .community-leads-platform .devsite-landing-row-item-media {
    margin-right: 48px;
  }

  .devfest-row {
    margin-inline: auto;
  }

  .devfest-row .devsite-landing-row-inner {
    padding-inline: 0;
  }
}

@media screen and (min-width: 841px) {
  .community-map-heading {
    font: 700 40px/40px 'Google Sans';
  }
}

@media screen and (min-width: 601px) {
  .community-leads-platform {
    padding-block: 0;
    height:613px;
    width:100%;
    position:relative;
    background:white;
  }
  .community-leads-platform::after, .community-leads-platform::before {
    height: 613px;
    content:' ';
    position: absolute;
    top: 0;
    width: 50%;
  }
  .community-leads-platform::after {
    right: 0;
    background-color: #4285fa;
  }
  .community-leads-platform::before {
    left: 0;
    background-color: #000;
  }
}

@media screen and (max-width: 1520px) {
  .become-a-leader-top .devsite-landing-row-group {
    background: unset;
  }
}


@media screen and (max-width: 1200px) {
  .devfest-row .devsite-landing-row-item {
    display: block;
  }

  .devfest-row .devsite-landing-row-item-body {
    margin-top: 16px;
    padding-top: 60px;
  }
  .become-a-leader-top .devsite-landing-row-item {
    display: block;
  }
  .become-a-leader-bot .devsite-landing-row-item {
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .community-map {
    padding-block: 16px;
  }
  .devfest-row .devsite-landing-row-item-description {
    background: url(/community/images/inward-brackets.png) top -4px left -5px
    no-repeat;
    height: fit-content;
  }

  .devfest-row .devsite-landing-row-item-body {
    padding-right: 16px;
    padding-top: 100px;
  }

  .community-leads-platform {
    background: black;
    padding-block: 0;
  }

  .community-leads-platform .devsite-landing-row-item-description {
    margin-top: 0 !important;
  }

  .community-leads-platform .devsite-landing-row-item-body{
    background: url('/community/images/left-bracket.png') top 16px left 16px
    no-repeat, url('/community/images/right-bracket.png') bottom 16px right 16px
    no-repeat, black;
    padding-inline: 16px;
  }

  .community-leads-platform .devsite-landing-row-item-image{
    padding-bottom: 52px;
  }

  .community-leads-platform .devsite-landing-row-item-image img {
    height: auto;
    margin-bottom: -40px;
    margin-right: -4px;
    max-width: 571px;
    width: 100%;
  }
}
