/**
Theme Name: BNI Jucai
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bni-jucai
Template: astra
*/

/* Keep the desktop Astra header aligned with the static prototype on tablets. */
@media (min-width: 601px) and (max-width: 921px) {
  #ast-desktop-header { display: block !important; }
  #ast-mobile-header { display: none !important; }
  #ast-desktop-header .site-logo-img img { width: 54px !important; }
  #ast-desktop-header .site-title,
  #ast-desktop-header .site-description,
  #ast-desktop-header .ast-header-button-1 .ast-custom-button { white-space: nowrap; }
  #ast-desktop-header .main-header-menu { flex-wrap: nowrap; }
  #ast-desktop-header .main-header-menu > .menu-item > a { padding-inline: 6px; white-space: nowrap; }
}


/* Astra's above-header grid overflows its padded container by 4px below 922px. */
@media (max-width: 921px) {
  #ast-desktop-header .site-above-header-wrap > .ast-builder-grid-row.ast-builder-grid-row-has-sides.ast-builder-grid-row-no-center,
  #ast-mobile-header .site-above-header-wrap > .ast-builder-grid-row.ast-builder-grid-row-has-sides.ast-builder-grid-row-no-center { column-gap: 16px; }
}

/* Align Astra's shared footer with the six-page HTML prototype. */
#colophon.site-footer {
  background: #fff !important;
  border-top: 1px solid #d2d2d2;
}

#colophon .site-primary-footer-wrap {
  padding-top: 26px !important;
  padding-bottom: 8px !important;
}

#colophon .site-below-footer-wrap {
  padding-top: 0 !important;
  padding-bottom: 26px !important;
  border-top: 0 !important;
}

#colophon .site-below-footer-wrap .ast-builder-grid-row {
  min-height: 0 !important;
}

#colophon .ast-footer-copyright {
  justify-content: flex-end !important;
  text-align: right !important;
}

#colophon .footer-widget-area[data-section="section-footer-menu"] #astra-footer-menu {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: flex-end;
  column-gap: 14px;
  row-gap: 4px;
}

#colophon #astra-footer-menu > .menu-item {
  width: auto;
  flex: 0 0 auto;
}

#colophon #astra-footer-menu > .menu-item > a.menu-link {
  color: #6b6b6b !important;
  font-size: 12px !important;
  line-height: 1.5;
  padding: 0 !important;
  min-height: 36px;
}

#colophon #astra-footer-menu > .menu-item > a.menu-link:hover,
#colophon #astra-footer-menu > .menu-item > a.menu-link:focus-visible {
  color: #c8102e !important;
}

@media (min-width: 545px) and (max-width: 921px) {
  #colophon .site-primary-footer-wrap .ast-builder-grid-row-container-inner,
  #colophon .site-below-footer-wrap .ast-builder-grid-row-container-inner {
    padding-right: 20px;
    padding-left: 20px;
  }

  #colophon .site-primary-footer-inner-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    column-gap: 16px;
  }

  #colophon .site-footer-primary-section-2 {
    display: none !important;
  }

  #colophon .site-footer-primary-section-3 {
    grid-column: 2;
    grid-row: 1;
  }

  #colophon .footer-widget-area[data-section="section-footer-menu"] #astra-footer-menu {
    justify-content: flex-start !important;
  }

  #colophon .site-below-footer-wrap .ast-footer-copyright {
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

@media (max-width: 544px) {
  #colophon .site-primary-footer-wrap .ast-builder-grid-row-container-inner,
  #colophon .site-below-footer-wrap .ast-builder-grid-row-container-inner {
    padding-right: 20px;
    padding-left: 20px;
  }

  #colophon .site-primary-footer-inner-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 10px;
  }

  #colophon .site-footer-primary-section-2 {
    display: none !important;
  }

  #colophon .site-footer-primary-section-3 {
    grid-column: 1;
    grid-row: 2;
  }

  #colophon #astra-footer-menu > .menu-item > a.menu-link {
    min-height: 40px;
  }

  #colophon .footer-widget-area[data-section="section-footer-menu"] #astra-footer-menu {
    justify-content: flex-start !important;
  }

  #colophon .site-below-footer-wrap .ast-footer-copyright {
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

/* Match the prototype's three-part desktop footer: brand, tagline, and meta. */
#colophon .site-primary-footer-wrap,
#colophon .site-below-footer-wrap {
  background: #fff !important;
}

#colophon .site-primary-footer-wrap {
  padding-bottom: 26px !important;
}

#colophon .site-below-footer-wrap {
  padding: 0 !important;
  border-top: 0 !important;
}

#colophon .site-footer-primary-section-2 {
  display: block !important;
}

#colophon .ast-footer-html-2 p {
  font-size: 13px !important;
}

#colophon .site-footer-primary-section-3 .ast-footer-copyright {
  font-size: 12px !important;
  justify-content: flex-end !important;
  text-align: right !important;
}

@media (min-width: 545px) and (max-width: 921px) {
  #colophon .site-primary-footer-inner-wrap {
    row-gap: 16px;
  }

  #colophon .site-footer-primary-section-2 {
    display: block !important;
    grid-column: 2;
    grid-row: 1;
  }

  #colophon .site-footer-primary-section-3 {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  #colophon .site-footer-primary-section-3 .ast-footer-copyright {
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

@media (max-width: 544px) {
  #colophon .site-primary-footer-inner-wrap {
    row-gap: 10px;
  }

  #colophon .site-footer-primary-section-2 {
    display: block !important;
    grid-column: 1;
    grid-row: 2;
  }

  #colophon .site-footer-primary-section-3 {
    grid-column: 1;
    grid-row: 3;
  }

  #colophon .ast-footer-html-2 p {
    font-size: 9px !important;
  }

  #colophon .site-footer-primary-section-3 .ast-footer-copyright {
    font-size: 10px !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
}


/* Column article galleries: captions below images, 3-column galleries show whole works at one ratio. */
.single-post .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption) {
	justify-content: flex-start;
}
.single-post .wp-block-gallery.has-nested-images figure.wp-block-image figcaption.wp-element-caption {
	position: static;
	flex: none;
	max-height: none;
	margin: 0;
	padding: 8px 0 0;
	overflow: visible;
	background: none;
	color: #6b6b6b;
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
	text-shadow: none;
}
.single-post .wp-block-gallery.has-nested-images figure.wp-block-image figcaption.wp-element-caption::before {
	display: none;
}
.single-post .wp-block-gallery.columns-3 figure.wp-block-image img {
	aspect-ratio: 4 / 3;
	object-fit: contain;
}

/* Article lists: the widget wrapper also carries the prototype grid class; keep the grid on the loop container only. */
.bni-content .story-grid.elementor-widget-loop-grid,
.bni-content .article-grid.elementor-widget-loop-grid {
	display: block;
}
.story-category .elementor-heading-title {
	color: #fff;
}

/* Astra single-post spacing also lands on pages; keep it on articles only. */
body:not(.single-post) .site-content #primary {
	margin-top: 0;
	margin-bottom: 0;
}

/* Monthly MVP band: first member is the large feature, the rest are compact cards below. */
.bni-content .mvp-loop {
	background: var(--red, #c8102e);
}
.bni-content .mvp-loop .elementor-loop-container {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 24px;
	width: min(1160px, calc(100% - 64px));
	margin-inline: auto;
	padding-bottom: 28px;
}
.bni-content .mvp-loop .e-loop-item:first-of-type {
	grid-column: 1 / -1;
}
.bni-content .mvp-loop .e-loop-item:not(:first-of-type) .mvp-inner {
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding-block: 16px 8px !important;
	border-top: 1px solid rgba(255, 255, 255, .4);
}
.bni-content .mvp-loop .e-loop-item:not(:first-of-type) .mvp-photo {
	order: -1;
}
.bni-content .mvp-loop .e-loop-item:not(:first-of-type) .mvp-text {
	--gap: 2px;
	--row-gap: 2px;
}
.bni-content .mvp-loop .e-loop-item:not(:first-of-type) .mvp-label {
	margin-bottom: 4px !important;
}
.bni-content .mvp-loop .e-loop-item:not(:first-of-type) .mvp-label .elementor-heading-title {
	padding: 2px 8px;
	font-size: 12px;
	letter-spacing: .02em;
}
.bni-content .mvp-loop .e-loop-item:not(:first-of-type) .mvp-name .elementor-heading-title {
	font-size: 24px;
	letter-spacing: .04em;
}
.bni-content .mvp-loop .e-loop-item:not(:first-of-type) .mvp-role .elementor-heading-title {
	margin-top: 0;
	font-size: 14px;
}
.bni-content .mvp-loop .e-loop-item:not(:first-of-type) .mvp-company {
	display: none;
}
.bni-content .mvp-loop .e-loop-item:not(:first-of-type) .mvp-note .elementor-heading-title {
	margin-top: 4px;
	font-size: 14px;
	line-height: 1.6;
}
.bni-content .mvp-loop .e-loop-item:not(:first-of-type) .mvp-btn {
	margin-top: 8px !important;
}
.bni-content .mvp-loop .e-loop-item:not(:first-of-type) .mvp-btn .elementor-heading-title {
	min-height: 0;
	padding: 2px 10px;
	font-size: 12px;
}
@media (max-width: 1024px) {
	.bni-content .mvp-loop .elementor-loop-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.bni-content .mvp-loop .elementor-loop-container {
		grid-template-columns: minmax(0, 1fr);
		width: calc(100% - 36px);
	}
}

/* About page facts: group photo, chapter numbers and member highlights. */
body.page-id-447 .about-band {
	padding-block: clamp(48px, 7vw, 76.8px);
	padding-inline: 0;
}
body.page-id-447 .about-band--photo {
	padding-bottom: 0;
	background: #fff;
}
body.page-id-447 .about-band--dark {
	background: #171717;
	color: #fff;
}
body.page-id-447 .about-wrap {
	gap: 0;
	width: min(1160px, calc(100% - 48px));
	margin-inline: auto;
	padding: 0;
}
body.page-id-447 .about-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	object-position: 50% 80%;
}
body.page-id-447 .about-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-top: 32px;
	padding: 0;
}
body.page-id-447 .about-stat {
	gap: 4px;
	min-width: 0;
	padding: 16px 0 0;
	border-top: 2px solid var(--ast-global-color-0, #c8102e);
}
body.page-id-447 .about-stat-value .elementor-heading-title {
	font-family: 'Noto Serif TC', 'Songti TC', PMingLiU, serif;
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 600;
	line-height: 1.2;
	color: #171717;
}
body.page-id-447 .about-stat-label {
	font-size: 15px;
	line-height: 1.6;
	color: #454545;
}
body.page-id-447 .about-stat-label p,
body.page-id-447 .about-note p,
body.page-id-447 .about-band-lead p {
	margin: 0;
}
body.page-id-447 .about-note {
	margin-top: 16px;
	font-size: 13px;
	line-height: 1.6;
	color: #6b6b6b;
}
body.page-id-447 .about-band--dark .about-band-title .elementor-heading-title {
	font-family: 'Noto Serif TC', 'Songti TC', PMingLiU, serif;
	font-size: clamp(28px, 3.4vw, 36px);
	font-weight: 600;
	color: #fff;
}
body.page-id-447 .about-band--dark .about-band-lead {
	margin-top: 12px;
	font-size: 16px;
	line-height: 1.7;
	color: #d6d6d6;
}
body.page-id-447 .about-band--dark .about-stat-value .elementor-heading-title {
	color: #fff;
}
body.page-id-447 .about-band--dark .about-stat-label {
	color: #d6d6d6;
}
body.page-id-447 .about-stat-who {
	margin-top: 8px;
}
body.page-id-447 .about-stat-who .elementor-heading-title,
body.page-id-447 .about-stat-who .elementor-heading-title a {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	color: #fff;
}
body.page-id-447 .about-stat-who .elementor-heading-title a:hover {
	text-decoration: underline;
}
@media (max-width: 820px) {
	body.page-id-447 .about-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	body.page-id-447 .about-wrap {
		width: calc(100% - 36px);
	}
	body.page-id-447 .about-photo img {
		aspect-ratio: 3 / 2;
	}
	body.page-id-447 .about-stats {
		gap: 20px 16px;
		margin-top: 24px;
	}
}
body.page-id-447 .elementor-element-7c971fa {
	color: #454545;
}

/* Keep the chapter name on one line beside the logo. */
.ast-site-identity,
.ast-site-title-wrap {
	flex-shrink: 0;
}
.ast-site-title-wrap .site-title,
.ast-site-title-wrap .site-title a,
.ast-site-title-wrap .site-description {
	white-space: nowrap;
}

/* Keyword link inside member H2 headings. */
.single-member h2.elementor-heading-title a {
	color: var(--ast-global-color-0, #c8102e);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Keep faces in article cards when a portrait is cropped to landscape. */
.e-loop-item.type-post img {
	object-position: 50% 18% !important;
}

/* Larger member photos on the members page (green light, officers, gold medal, industry list). */
body.page-id-448 .elementor-element-grcard01,
body.page-id-448 .elementor-element-gocard01,
body.page-id-448 .elementor-element-dircard01,
body.page-id-448 .member-industry-groups .member-entry--with-photo {
	grid-template-columns: 88px minmax(0, 1fr) !important;
	column-gap: 18px !important;
}
body.page-id-448 .elementor-element-grcard01 .initial,
body.page-id-448 .elementor-element-gocard01 .initial,
body.page-id-448 .elementor-element-dircard01 .initial,
body.page-id-448 .member-industry-groups .member-entry--with-photo .initial,
body.page-id-448 .elementor-1322 .elementor-element.elementor-element-omcard1 .initial--photo {
	width: 88px !important;
	height: 110px !important;
	font-size: 30px !important;
}
body.page-id-448 .initial--photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
@media (max-width: 600px) {
	body.page-id-448 .elementor-element-grcard01,
	body.page-id-448 .elementor-element-gocard01,
	body.page-id-448 .elementor-element-dircard01,
	body.page-id-448 .member-industry-groups .member-entry--with-photo {
		grid-template-columns: 76px minmax(0, 1fr) !important;
		column-gap: 14px !important;
	}
	body.page-id-448 .elementor-element-grcard01 .initial,
	body.page-id-448 .elementor-element-gocard01 .initial,
	body.page-id-448 .elementor-element-dircard01 .initial,
	body.page-id-448 .member-industry-groups .member-entry--with-photo .initial,
	body.page-id-448 .elementor-1322 .elementor-element.elementor-element-omcard1 .initial--photo {
		width: 76px !important;
		height: 95px !important;
		font-size: 26px !important;
	}
}
