/* Divi 5 modules rebuilt as plain HTML (heading, fullwidth image/slider, social follow, pricing tables, form link, post slider). */
.eb-heading { margin: 0; }
.eb-heading .et_pb_heading_container { margin: 0; }
.eb-heading .et_pb_module_heading { margin: 0; padding-bottom: 10px; line-height: 1.3em; }
.eb-heading .et_pb_module_heading a { color: inherit; }
.eb-fullwidth-image { margin: 0; width: 100%; }
.eb-fullwidth-image img { display: block; width: 100%; height: auto; }
.eb-fullwidth-slider { width: 100%; }
.eb-social-follow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.eb-social-follow .eb-social-item { margin: 0; }
.eb-social-follow a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 3px; color: #fff; background: #3b5998; text-decoration: none; }
.eb-social-follow .eb-social-instagram a { background: #ea2c59; }
.eb-social-follow .eb-social-youtube a { background: #a82400; }
.eb-social-follow .eb-social-twitter a { background: #00aced; }
.eb-social-follow .eb-social-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eb-social-icon::before { font: 400 22px/1 "Elegant Icons"; content: "\e0a1"; }
.eb-social-facebook .eb-social-icon::before { content: "\e093"; }
.eb-social-twitter .eb-social-icon::before { content: "\e094"; }
.eb-social-instagram .eb-social-icon::before { content: "\e09a"; }
.eb-social-youtube .eb-social-icon::before { content: "\e0a3"; }
.eb-pricing-tables { display: flex; flex-wrap: wrap; gap: 0; justify-content: center; text-align: center; }
.eb-pricing-table { flex: 1 1 250px; max-width: 100%; margin: 0 0 20px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .1); }
.eb-pricing-header { padding: 20px 10px; color: #fff; background: #2ea3f2; }
.eb-pricing-title { margin: 0; padding: 0; font-size: 22px; font-weight: 600; line-height: 1.2; color: inherit; }
.eb-pricing-subtitle { display: block; font-size: 14px; opacity: .8; }
.eb-pricing-price { padding: 15px 10px; font-size: 40px; line-height: 1.1; font-weight: 600; }
.eb-pricing-currency { font-size: .6em; vertical-align: top; }
.eb-pricing-frequency { font-size: 14px; }
.eb-pricing-content { padding: 15px 20px; font-size: 14px; line-height: 1.5; text-align: left; }
.eb-pricing-button { display: inline-block; margin: 0 0 20px; }
.eb-form-link { text-align: center; padding: 10px 0; }
.eb-post-slider .eb-recent-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* Columns whose Divi column rules are not in the original stylesheet (content drift between export and live site): lay out like Divi. */
#main .eb-row:has(> .eb-col:not(.eb-col-4-4)) { display: flex; flex-wrap: nowrap; justify-content: space-between; }
@media (max-width: 980px) { #main .eb-row:has(> .eb-col:not(.eb-col-4-4)) { display: block; } }

.eb-recent-posts.eb-waterfall { display: block; font-size: inherit; }
.eb-waterfall .archive-container { width: 100%; max-width: none; }

/* Divi gallery (grid layout) */
.eb-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 20px; }
.eb-gallery figure { margin: 0; }
.eb-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
@media (max-width: 767px) { .eb-gallery { grid-template-columns: repeat(2, 1fr); } }

/* Divi post slider */
.eb-post-slider .eb-carousel { background: #2980b9; }
.eb-post-slide { display: flex !important; align-items: center; gap: 5%; padding: 30px 8%; min-height: 230px; color: #fff; }
.eb-post-slide-image { flex: 0 0 40%; }
.eb-post-slide-image img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: contain; }
.eb-post-slide-text h2 { margin: 0 0 16px; font-size: 26px; font-weight: 600; line-height: 1.3; }
.eb-post-slide-text a { color: #fff; text-decoration: none; }
.eb-post-slide-text .eb-button { display: inline-block; border: 2px solid #fff; border-radius: 3px; padding: 6px 20px; }
@media (max-width: 767px) { .eb-post-slide { flex-direction: column; } .eb-post-slide-image { flex-basis: auto; } }
@media (min-width: 981px) {
  #main .eb-row:has(> .eb-col:not(.eb-col-4-4)) > .eb-col-1-2 { flex: 0 0 47.25%; max-width: 47.25%; width: 47.25%; }
  #main .eb-row:has(> .eb-col:not(.eb-col-4-4)) > .eb-col-1-3 { flex: 0 0 29.67%; max-width: 29.67%; width: 29.67%; }
  #main .eb-row:has(> .eb-col:not(.eb-col-4-4)) > .eb-col-2-3 { flex: 0 0 64.83%; max-width: 64.83%; width: 64.83%; }
  #main .eb-row:has(> .eb-col:not(.eb-col-4-4)) > .eb-col-1-4 { flex: 0 0 20.875%; max-width: 20.875%; width: 20.875%; }
  #main .eb-row:has(> .eb-col:not(.eb-col-4-4)) > .eb-col-3-4 { flex: 0 0 73.875%; max-width: 73.875%; width: 73.875%; }
}

/* Tables authored inside Divi text/code modules span the module like the original */
.eb-text table:not([width]), .eb-code table:not([width]) { width: 100%; border-collapse: collapse; }
.eb-text table:not([width]) :is(td, th), .eb-code table:not([width]) :is(td, th) { padding: 6px 10px; vertical-align: middle; }
.recent-articles-links { margin-top: 12px; font-size: 14px; line-height: 1.6; text-align: left; }
.recent-articles-links p { margin: 0; }
.recent-articles { background: none; box-shadow: none; overflow: visible; border-radius: 0; }
.recent-articles-box { background: white; border-radius: 9px; overflow: hidden; box-shadow: 0 5px 10px #0003; }
.recent-articles .recent-articles-links { margin-top: 12px; font-size: 14px; line-height: 1.6; text-align: left; }
.recent-articles .recent-articles-links a { display: inline; padding: 0; border: 0; color: #888; text-decoration: underline; }

/* Divi specialty section: its columns sit directly in the section (no row) */
.eb-specialty-columns { display: flex; justify-content: space-between; align-items: flex-start; }
@media (min-width: 981px) {
  .eb-specialty-columns > .eb-col-1-3 { flex: 0 0 29.67%; max-width: 29.67%; }
  .eb-specialty-columns > .eb-col-2-3 { flex: 0 0 64.83%; max-width: 64.83%; }
  .eb-specialty-columns > .eb-col-1-2 { flex: 0 0 47.25%; max-width: 47.25%; }
}
@media (max-width: 980px) { .eb-specialty-columns { display: block; } }
.eb-icon-photo { background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; }

@media (max-width: 767px) {
  .eb-section:has(.eb-waterfall) > .eb-section-inner { width: 90%; }
  .eb-waterfall .archive-card { padding-bottom: 24px; margin-bottom: 24px; }
  .eb-waterfall .archive-card-body > p { padding-bottom: 20px; }
}
@media (max-width: 767px) {
  #main .eb-section:has(.eb-waterfall) > .eb-section-inner { width: 90% !important; max-width: none !important; }
  #main .eb-waterfall .archive-container, #main .eb-waterfall .archive-main { width: 100% !important; max-width: none !important; margin: 0; padding-left: 0; padding-right: 0; }
}
@media (max-width: 767px) {
  #main .eb-row:has(.eb-waterfall) { width: 90% !important; max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; margin-left: auto !important; margin-right: auto !important; }
  #main .eb-row:has(.eb-waterfall) > .eb-col-3-4 { width: 100% !important; max-width: 100% !important; flex-basis: 100% !important; }
}
.lang-en .recent-articles .recent-articles-links { font-size: 15.5px; line-height: 1.55; }
.lang-en .recent-articles .recent-articles-links a { color: #666; }

@media (max-width: 767px) {
  .eb-waterfall .archive-card { padding-bottom: 42px; margin-bottom: 42px; }
  .eb-waterfall .archive-card-body > p { padding-bottom: 45px; }
}
@media (max-width: 767px) {
  .eb-waterfall-narrow .recent-articles .recent-articles-links { font-size: 18px; line-height: 1.7; }
}
@media (max-width: 767px) {
  /* The original keeps the sidebar as a narrow (1/4) column that ends up below the list on phones. */
  #main .eb-waterfall .archive-grid { display: block; }
  #main .eb-waterfall-narrow .recent-articles { width: 21%; margin-top: 30px; }
}
@media (max-width: 767px) {
  .lang-en #main .eb-waterfall-narrow .recent-articles, .lang-en #main .eb-waterfall-narrow .recent-articles { width: 36%; }
  .lang-en .eb-waterfall-narrow .recent-articles .recent-articles-links { font-size: 16px; }
}

/* Equal-column rows with three columns: on phones the original keeps them side by side as fixed 140px columns that overflow
   (the section clips them); the export asks for stacking, the live page does not. */
@media (max-width: 767px) {
  #main .eb-section:has(.eb-eq-3 .eb-icon-photo) { overflow-x: hidden; }
  #main .eb-row.eb-eq-3:has(.eb-icon-photo) { margin-top: -100px !important; }
  #main .eb-row.eb-eq-3:has(.eb-icon-photo) { display: flex !important; flex-wrap: nowrap; width: 92% !important; max-width: none !important; margin-left: 4% !important; margin-right: 4% !important; }
  #main .eb-row.eb-eq-3:has(.eb-icon-photo) > .eb-col { flex: 0 0 140px; width: 140px !important; max-width: 140px !important; float: none !important; }
}

/* Divi post slider, measured on the live page (807px wide slider): 450px tall, 50px padding, image + text at 38% each. */
.eb-post-slider .eb-post-slide { display: flex !important; align-items: center; justify-content: center; gap: 8%; min-height: 450px; padding: 50px 8.7%; box-sizing: border-box; }
.eb-post-slider .eb-post-slide-image { flex: 0 0 46%; }
.eb-post-slider .eb-post-slide-image img { max-height: none; object-fit: cover; }
.eb-post-slider .eb-post-slide-text { flex: 0 0 46%; text-align: left; }
.eb-post-slider .eb-post-slide-text h2 { margin: 0; padding: 0 0 10px; font-size: 46px; font-weight: 300; line-height: 1; }
.eb-post-slide-excerpt { font-size: 20px; line-height: 1.53; }
.eb-post-slider .eb-post-slide-text .eb-button { display: inline-block; margin-top: 20px; font-size: 20px; line-height: 34px; padding: 6px 20px; border: 2px solid #fff; border-radius: 3px; }
.eb-post-slider .carousel-indicators { margin-bottom: 10px; gap: 8px; }
.eb-post-slider .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; border: 0; margin: 0; background: #fff; opacity: .5; }
.eb-post-slider .carousel-indicators .active { opacity: 1; }
@media (max-width: 980px) {
  .eb-post-slider .eb-post-slide-text h2 { font-size: 30px; }
  .eb-post-slide-excerpt { font-size: 16px; }
  .eb-post-slider .eb-post-slide-text .eb-button { font-size: 16px; }
}
@media (max-width: 767px) {
  .eb-post-slider .eb-post-slide { flex-direction: column; min-height: 0; padding: 40px 12%; gap: 20px; }
  .eb-post-slider .eb-post-slide-image, .eb-post-slider .eb-post-slide-text { flex-basis: auto; width: 100%; }
}

/* Home banner: a Divi fullwidth section has no section padding. */
#main .original-style .eb-section:has(.eb-carousel--hero-banner-slider), #main .eb-section:has(.eb-carousel--hero-banner-slider) { padding-top: 0 !important; padding-bottom: 0 !important; }
/* The original child theme sets .home .et_pb_section_0 { min-height: 41.67vw } on the banner section (the banner itself is 35vw). */
#main .original-body.home .eb-section:has(.eb-carousel--hero-banner-slider) { min-height: 41.67vw; }

/* English Energy Bagua banner: the same picture was both the section background and a smaller foreground image; show only the full-width picture. */
#main .eb-section.p36940m1, #main .original-style .eb-section.p36940m1 { background-image: none !important; padding: 0 !important; }
#main .eb-section.p36940m1 .eb-section-inner, #main .eb-section.p36940m1 .eb-row, #main .eb-section.p36940m1 .eb-col { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
#main .eb-section.p36940m1 .eb-image, #main .eb-section.p36940m1 .eb-image .et_pb_image_wrap { display: block; width: 100%; max-width: none; }
#main .eb-section.p36940m1 .eb-image img { display: block; width: 100%; max-width: none; height: auto; }
#main .eb-section.p36940m1, #main .original-style .eb-section.p36940m1 { height: auto !important; min-height: 0 !important; max-height: none !important; display: flow-root; }

/* Divi text modules keep their lists bulleted (the snapshot rules target .et_pb_text_inner, which is not emitted). */
#main .original-body .eb-text.et_pb_text ul:not(.eb-recent-posts *, .recent-articles *) { list-style: disc outside; padding-left: 2vw; padding-bottom: 1em; }
#main .original-body .eb-text.et_pb_text ol:not(.eb-recent-posts *, .recent-articles *) { list-style: decimal outside; padding-left: 2vw; padding-bottom: 1em; }

/* 2026 Bodhi Day: the five Milpitas photos are equal portrait tiles (as on the original), evenly spaced. */
#main .eb-section.p72700m87 .eb-row { display: flex; justify-content: space-between; }
#main .eb-section.p72700m87 .eb-col { flex: 0 0 15.6%; width: 15.6%; margin: 0; }
#main .eb-section.p72700m87 .eb-image img { display: block; width: 100%; aspect-ratio: 126 / 148; object-fit: cover; }

/* 2026 Bodhi Day "About" row: the original row is 88% wide (max 1480px) with a 5.4% gap and three equal columns. */
@media (min-width: 981px) {
  #main .original-style .eb-row.p72700m23.et_pb_row { width: 88% !important; max-width: 1480px !important; margin: 96px auto 0 !important; padding: 0 !important; column-gap: 5.4%; justify-content: space-between; }
  #main .original-style .eb-row.p72700m23.et_pb_row > .eb-col { flex: 1 1 0 !important; width: auto !important; max-width: none !important; margin: 0 !important; }
}

/* 2026 Bodhi Day highlights lists: 18px text, 1.8 line height, 17.5px indent (as on the original). */
#main .original-body .eb-text.p72700m47 ul, #main .original-body .eb-text.p72700m49 ul, #main .original-body .eb-text.p72700m51 ul { padding-left: 17.5px; }
#main .eb-text.p72700m47 ul > li, #main .eb-text.p72700m49 ul > li, #main .eb-text.p72700m51 ul > li { font-size: 18px; line-height: 1.8; }

/* Divi "stories"/"events" list pages: the list is the 3/4 column and the "recent posts" sidebar the 1/4 column beside it (not squeezed inside the list column). */
@media (min-width: 768px) {
  #main .eb-waterfall-narrow { width: 135.9%; max-width: none; }
  #main .eb-waterfall-narrow .archive-grid { display: grid; grid-template-columns: 594fr 169fr; column-gap: 5.5%; padding-top: 0; }
  #main .eb-waterfall-narrow .recent-articles { width: auto; margin-top: 0; }
}
@media (min-width: 768px) {
  /* Article rows: 24px inset, 290px image, 182px text column 74px after it (measured on the original). */
  .lang-en #main .eb-waterfall-narrow .archive-main { padding: 0 24px; box-sizing: border-box; }
  .lang-en #main .eb-waterfall-narrow .archive-card { gap: 0; }
  .lang-en #main .eb-waterfall-narrow .archive-card .archive-image { flex: 0 0 290px; }
  .lang-en #main .eb-waterfall-narrow .archive-card .archive-card-body { flex: 0 0 182px; margin-left: 74px; }
}

/* Chinese Energy Bagua banner (like the English one): only the full-width 1920x614 picture, edge to edge, no second smaller copy on top. */
#main .eb-section.p36806m1, #main .original-style .eb-section.p36806m1, #main .eb-section.p36296m1, #main .original-style .eb-section.p36296m1 { padding: 0 !important; height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: 1920 / 614; background-size: 100% 100%; background-position: center top; background-repeat: no-repeat; display: block; }
#main .eb-section.p36806m1 .eb-section-inner, #main .eb-section.p36806m1 .eb-image { display: none !important; }
/* Energy Bagua banners sit directly under the menu: no top margin. */
#main .eb-section.p36806m1, #main .original-style .eb-section.p36806m1, #main .eb-section.p36296m1, #main .original-style .eb-section.p36296m1, #main .eb-section.p36940m1, #main .original-style .eb-section.p36940m1 { margin-top: 0 !important; }

/* A Divi fullwidth section (only a full-width image) has no section padding. */
#main .eb-section:has(> .eb-section-inner > .eb-fullwidth-image:only-child), #main .original-style .eb-section:has(> .eb-section-inner > .eb-fullwidth-image:only-child) { padding-top: 0 !important; padding-bottom: 0 !important; }

/* Divi social follow module as configured on the original pages: white icons on the section colour (no coloured squares). */
.eb-social-follow.et_pb_social_media_follow { gap: 10px; }
.eb-social-follow.et_pb_social_media_follow a { width: 32px; height: 32px; background: transparent; color: #fff; }
.eb-social-follow.et_pb_social_media_follow .eb-social-icon::before { font-size: 16px; color: #fff; }
