/* Tiny Buddha theme (module system, standalone)
 * No legacy @import. Mirrors basic.css class contract with Tiny Buddha styling.
 *
 * Theme Manager Info Vars (auto-generated asset: frontend/theme/css/vars/{theme}.css):
 * --theme-color-primary, --theme-primary
 * --theme-color-text, --theme-text
 * --theme-color-background, --theme-background
 * --theme-layout-container-max, --container-max
 * --theme-layout-section-gap, --section-gap
 * --theme-menu-height, --menu-height
 * --theme-menu-banner-height, --menu-banner-height
 * --theme-menu-gap, --menu-gap
 * --theme-menu-background, --menu-background
 * --theme-menu-text, --menu-text
 * --theme-blog-card-radius, --blog-card-radius
 * --theme-blog-card-border-bottom, --blog-card-border-bottom
 */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;500;700&display=swap');



/* =========================================================
   ROOT TOKENS (COMMON)
   ========================================================= */

:root,
body.theme-tinybuddha,
body[data-theme="tinybuddha"] {
  /* Backward-compatible aliases (respect values injected by vars/{theme}.css) */
  --theme-primary: var(--theme-color-primary, #bdd7e3);
  --theme-text: var(--theme-color-text, #3d3d3d);
  --theme-background: var(--theme-color-background, #f3f3f3);
  --container-max: var(--theme-layout-container-max, 1200px);
  --section-gap: var(--theme-layout-section-gap, 24px);
  --menu-height: var(--theme-menu-height, 40px);
  --menu-banner-height: var(--theme-menu-banner-height, 120px);
  --menu-gap: var(--theme-menu-gap, 24px);
  --menu-background: var(--theme-menu-background, #f1f1f1);
  --menu-text: var(--theme-menu-text, #3b3b3b);
  --blog-card-radius: var(--theme-blog-card-radius, 0px);
  --blog-card-border-bottom: var(--theme-blog-card-border-bottom, 0px solid transparent);

  --theme-shell-pad-desktop: clamp(18px, 2.4vw, 34px);
  --theme-shell-pad-tablet: clamp(14px, 2.2vw, 24px);
  --theme-shell-pad-mobile: 12px;
  --theme-shell-pad-mobile-sm: 10px;

  --theme-consistent-radius: 0px;
  --theme-consistent-gap: 16px;
  --theme-consistent-pad: 12px;
  --theme-consistent-border: rgba(0, 0, 0, 0.08);
  --theme-heading-color: #b6b6b6;
  --theme-heading-prefix-color: #b6b6b6;
  --theme-heading-title-color: var(--theme-heading-color);
  --theme-heading-prefix-transform: uppercase;
  --theme-heading-prefix-letter: 0.01em;
  --theme-heading-prefix-size: clamp(44px, 4.8vw, 54px);
  --theme-heading-title-size: var(--theme-heading-prefix-size);
  --theme-heading-underline-color: transparent;
  --theme-heading-line-display: none;
  --theme-heading-line-color: transparent;
  --theme-heading-line-thickness: 0px;
  --theme-card-image-height: 220px;
  --theme-card-image-height-sm: 200px;
  --theme-page-bg: var(--theme-background, #f3f3f3);
  --theme-card-bg: #ffffff;
  --theme-input-border: #d6d6d6;
  --theme-input-bg: #ffffff;
  --theme-input-color: #3d3d3d;
  --theme-input-icon: #9d9d9d;
}

/* =========================================================
   BASE
   ========================================================= */

body {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  color: var(--theme-text, #3d3d3d);
  background-color: var(--theme-page-bg, #f3f3f3);
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.bio-container {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--container-max, 1120px);
  overflow: visible;
}

/* =========================================================
   GLOBAL
   ========================================================= */

.module {
  --module-gap: var(--section-gap, 24px);
  margin-bottom: var(--module-gap);
}

/* Heading styles are grouped later in "THEME CONSISTENCY SYSTEM / HEADINGS". */

/* =========================================================
   CARD
   ========================================================= */

.module-card {
  display: block;
  border: 0;
  border-bottom: var(--blog-card-border-bottom, 0px solid transparent);
  border-radius: var(--blog-card-radius, 0px);
  overflow: hidden;
  background: var(--theme-card-bg, #ffffff);
  box-shadow: none;
}

.module-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.module-card__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.module-card__body {
  padding: 10px 0 14px;
}

.module-card__body p {
  font-size: 24px;
}

.module-card__title {
  margin: 0 0 8px;
  color: var(--theme-text, #3d3d3d);
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
}

.module-card__meta {
  margin-bottom: 8px;
  color: #8f8f8f;
  font-size: 13px;
  font-weight: 600;
  opacity: 1;
}

.module-card__summary {
  margin: 0;
  color: #6f6f6f;
  font-size: 16px;
  line-height: 1.55;
  opacity: 1;
}

/* =========================================================
   SEARCH
   ========================================================= */

.module-search {
  padding: 0 0 8px;
}

.module-search__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.module-search__input-wrap {
  position: relative;
}

.module-search__input-icon {
  display: none;
}

.module-search__input,
.module-search__submit {
  min-height: 46px;
  border-radius: 0;
}

.module-search__input {
  width: 100%;
  border: 1px solid var(--theme-input-border, #c7c7c7);
  background: var(--theme-input-bg, #ffffff);
  color: var(--theme-input-color, #111111);
  padding: 0 14px;
  font-size: 16px;
}

.module-search__submit {
  border: 1px solid var(--theme-primary, #0f4ea1);
  background: var(--theme-primary, #0f4ea1);
  color: #fff;
  width: 52px;
  padding: 0;
  position: relative;
}

.module-search__submit::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-55%, -58%);
}

.module-search__submit::after {
  content: "";
  width: 6px;
  height: 2px;
  border-radius: 0;
  background: currentColor;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(15%, 130%) rotate(42deg);
}

.module-search--no-icon .module-search__submit::before,
.module-search--no-icon .module-search__submit::after {
  display: none;
}

.module-search--with-icon .module-search__input {
  padding-left: 38px;
}

.module-search--with-icon .module-search__input-icon {
  display: block;
  width: 13px;
  height: 13px;
  border: 2px solid var(--theme-input-icon, #707070);
  border-radius: 0;
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.module-search--with-icon .module-search__input-icon::after {
  content: "";
  width: 6px;
  height: 2px;
  border-radius: 0;
  background: var(--theme-input-icon, #707070);
  position: absolute;
  right: -5px;
  bottom: -2px;
  transform: rotate(42deg);
}

.module-list-new__items,
.module-lasted-new__items,
.module-taxonomy-post-list__items,
.module-related-posts__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 0;
}

.module-list-new--columns-2 .module-list-new__items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.module-list-new--columns-3 .module-list-new__items,
.module-lasted-new__items--columns-3,
.module-taxonomy-post-list__items--grid-3,
.module-related-posts__items--grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.module-list-new--columns-4 .module-list-new__items,
.module-lasted-new__items--columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.module-lasted-new--horizontal-scroll .module-lasted-new__items,
.module-lasted-new--horizontal-scroll .module-lasted-new__items--horizontal-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--theme-consistent-gap, 16px);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.module-lasted-new--horizontal-scroll .module-lasted-new__item {
  flex: 0 0 260px;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  height: 382px;
  min-height: 382px;
  max-height: 382px;
  padding: 0 10px;
  scroll-snap-align: start;
}

.module-lasted-new--horizontal-scroll .module-lasted-new__item.module-card .module-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.module-lasted-new--horizontal-scroll .module-lasted-new__item .module-card__image {
  height: 230px !important;
}

.module-lasted-new--horizontal-scroll .module-lasted-new__item .module-card__title {
  -webkit-line-clamp: 3 !important;
}

.module-lasted-new--horizontal-scroll .module-lasted-new__item .module-card__summary {
  -webkit-line-clamp: 2 !important;
}

.module-list-new--card-list .module-card,
.module-related-posts--card-list .module-card {
  border: 0;
  border-radius: var(--blog-card-radius, 0px);
  border-bottom: var(--blog-card-border-bottom, 1px solid #e5e7eb);
  padding-bottom: 12px;
}

.module-list-new--card-list .module-card__link,
.module-related-posts--card-list .module-card__link {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-height: 0;
}

.module-list-new--card-list .module-card__image,
.module-related-posts--card-list .module-card__image {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: auto;
  aspect-ratio: 8 / 5;
}

.module-list-new--card-list .module-card__body,
.module-related-posts--card-list .module-card__body {
  padding: 0;
}

.module-list-new--card-list .module-card__title,
.module-related-posts--card-list .module-card__title {
  font-size: 31px;
  line-height: 1.15;
}

.module-list-new--card-list .module-card__summary,
.module-related-posts--card-list .module-card__summary {
  font-size: 18px;
  line-height: 1.52;
}

.module-taxonomy__blocks {
  display: grid;
  gap: 18px;
}

.module-taxonomy__blocks--grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-taxonomy__blocks--strip {
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  overflow-x: auto;
  padding-bottom: 8px;
}

.module-taxonomy__posts {
  display: grid;
  gap: 10px;
}

.module-taxonomy__post.module-card {
  border-color: transparent;
  box-shadow: none;
}

.module-taxonomy .module-card__title,
.module-taxonomy .module-card__summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.module-taxonomy .module-card__title {
  -webkit-line-clamp: 2;
}

.module-taxonomy .module-card__summary {
  -webkit-line-clamp: 2;
}

.module-article,
.module-article-header,
.module-article-content,
.module-article-taxonomy {
  padding: 0;
}

.module-article-header__title {
  margin: 0 0 12px;
  padding-top: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: 52px;
  line-height: 1.08;
}

.module-article-header__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 12px;
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 600;
  color: #5f5f5a;
}

.module-article-content__body {
  color: var(--theme-text, #1a1a1a);
  font-size: 24px;
  line-height: 1.68;
}

.module-article-content__body > p {
  font-size: 30px;
  line-height: 44px;
}

.module-article-content__body h2 {
  font-family: "Merriweather", Georgia, serif;
  font-size: 38px;
  line-height: 1.16;
}

.module-article-taxonomy__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6b7280;
}

.module-article-taxonomy__chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: var(--blog-card-radius, 0px);
  padding: 0 14px;
  text-decoration: none;
  color: #374151;
  background: #edf1f6;
  font-size: 14px;
  font-weight: 600;
}

.module-article-taxonomy__chip--category {
  background: #f6eceb;
  color: #8d261c;
}

.module-article-taxonomy__chip--tag {
  background: #f3f4f6;
  color: #374151;
}

.module-card--skeleton {
  pointer-events: none;
}

.module-card__image--skeleton,
.module-card__title--skeleton,
.module-card__meta--skeleton,
.module-card__summary--skeleton {
  background: #e5e7eb;
  border-radius: var(--blog-card-radius, 0px);
  animation: module-skeleton-pulse 1.2s ease-in-out infinite;
}

.module-card__title--skeleton {
  display: block;
  height: 28px;
  width: 78%;
}

.module-card__meta--skeleton {
  display: block;
  height: 16px;
  width: 45%;
}

.module-card__summary--skeleton {
  display: block;
  height: 18px;
  width: 92%;
  margin-top: 10px;
}

@keyframes module-skeleton-pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: .55;
  }

  100% {
    opacity: 1;
  }
}

@media (max-width: 991px) {

  .module-taxonomy__blocks--grid,
  .module-list-new--columns-3 .module-list-new__items,
  .module-lasted-new__items--columns-3,
  .module-taxonomy-post-list__items--grid-3,
  .module-related-posts__items--grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-list-new--columns-4 .module-list-new__items,
  .module-lasted-new__items--columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-lasted-new--horizontal-scroll .module-lasted-new__item {
    flex-basis: clamp(260px, 78vw, 360px);
    width: auto;
    min-width: clamp(260px, 78vw, 360px);
    max-width: clamp(260px, 78vw, 360px);
    height: auto;
    min-height: 0;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .bio-container {
    max-width: 100%;
    overflow: visible;
  }

  .module {
    margin-bottom: 20px;
  }

  .module__heading {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .module__heading-prefix {
    font-size: 12px;
  }

  .module-card__title {
    font-size: 31px;
    line-height: 1.14;
  }

  .module-card__summary {
    font-size: 18px;
    line-height: 1.52;
  }

  .module-search {
    padding: 0;
  }

  .module-search__form {
    grid-template-columns: 1fr;
  }

  .module-search__submit {
    width: 100%;
  }

  .module-list-new--card-list .module-card__link,
  .module-related-posts--card-list .module-card__link {
    display: block;
  }

  .module-list-new--card-list .module-card__image,
  .module-related-posts--card-list .module-card__image {
    aspect-ratio: 16 / 9;
  }

  .module-list-new--columns-2 .module-list-new__items,
  .module-list-new--columns-3 .module-list-new__items,
  .module-list-new--columns-4 .module-list-new__items,
  .module-lasted-new__items--columns-3,
  .module-lasted-new__items--columns-4,
  .module-taxonomy-post-list__items--grid-3,
  .module-related-posts__items--grid-3,
  .module-taxonomy__blocks--grid {
    grid-template-columns: 1fr;
  }

  .module-article-header__title {
    font-size: 38px;
  }

  .module-article-content__body {
    font-size: 24px;
    line-height: 1.64;
  }

  .module-article-content__body > p {
    font-size: 24px;
    line-height: 44px;
  }

  .module-article-content__body h2 {
    font-size: 32px;
  }
}


/* =========================================================
   THEME SHELL
   ========================================================= */

/* THEME BODY WRAPPER PADDING START */

body #bodyWrapper.bio-container,
body .bio-container {
  padding-left: var(--theme-shell-pad-desktop);
  padding-right: var(--theme-shell-pad-desktop);
}

@media (max-width: 1199.98px) {

  body #bodyWrapper.bio-container,
  body .bio-container {
    padding-left: var(--theme-shell-pad-tablet);
    padding-right: var(--theme-shell-pad-tablet);
  }
}

@media (max-width: 991.98px) {

  body #bodyWrapper.bio-container,
  body .bio-container {
    padding-left: var(--theme-shell-pad-mobile);
    padding-right: var(--theme-shell-pad-mobile);
  }
}

@media (max-width: 575.98px) {

  body #bodyWrapper.bio-container,
  body .bio-container {
    padding-left: var(--theme-shell-pad-mobile-sm);
    padding-right: var(--theme-shell-pad-mobile-sm);
  }
}

.theme-render-page {
  position: relative;
}

/* .theme-shell-decor {
  position: relative;
  height: 0;
  pointer-events: none;
  z-index: 0;
} */

/* .theme-shell-decor__stripe,
.theme-shell-decor__dot {
  position: absolute;
  opacity: 0.22;
} */

/* .theme-shell-decor__stripe {
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--theme-primary, #0f4ea1) 22%, var(--theme-primary, #0f4ea1) 78%, transparent 100%);
} */

.theme-shell-decor__stripe--top {
  /* top: 6px; */
}

.theme-shell-decor__stripe--mid {
  /* top: 22px;
  opacity: 0.14; */
}

.theme-shell-decor__dot {
  /* width: 10px;
  height: 10px;
  border-radius: 0;
  background: var(--theme-primary, #0f4ea1);
  top: 14px; */
}

.theme-shell-decor__dot--left {
  /* left: 8px; */
}

.theme-shell-decor__dot--right {
  /* right: 8px; */
}

@media (max-width: 991.98px) {
  .theme-shell-decor__dot {
    width: 8px;
    height: 8px;
  }
}

/* THEME BODY WRAPPER PADDING END */

/* THEME CONSISTENCY SYSTEM */

.module {
  margin-bottom: clamp(14px, 1.6vw, 20px);
}

/* =========================================================
   HEADINGS — COMMON CONTRACT
   Applies to all module heading wrappers.
   ========================================================= */
.module__heading {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  margin-bottom: 12px;
  padding-top: 0;
}

/* Accent line below the heading row */
.module__heading::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: var(--theme-heading-line-thickness);
  background: var(--theme-heading-line-color);
  display: var(--theme-heading-line-display);
  margin-top: 0;
}

/* Prefix text (left segment, e.g. "Latest") */
.module__heading-prefix {
  color: var(--theme-heading-prefix-color, #b6b6b6);
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(28px, 4.2vw, 54px);
  line-height: 1.1;
  margin-right: 0.35ch;
  padding-right: 0;
}

/* Title text (right segment, e.g. "News") */
.module__heading-title {
  color: var(--theme-heading-title-color);
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 54px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 0;
  padding-bottom: 0;
  text-decoration: none;
  margin-left: 0;
}

/* Keep clickable heading links visually identical to static heading text */
.module__heading>a,
.module__heading .module__heading-prefix,
.module__heading .module__heading-title {
  color: var(--theme-heading-color, #b6b6b6);
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(28px, 4.2vw, 54px);
  line-height: 1.1;
  font-weight: 700;
  text-decoration: none;
}

/* Hide heading in top-new module because that module has its own visual intro */
.module__heading--top-new {
  display: none !important;
}

/* =========================================================
   HEADINGS — TAXONOMY MODULE
   Dedicated taxonomy heading block style.
   ========================================================= */
.module-taxonomy__title {
  margin: 0 0 10px;
  padding: 0;
  border-top: 0;
  background: transparent;
  color: var(--theme-heading-color, #b6b6b6);
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(28px, 4.2vw, 54px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.module-taxonomy__title.module__heading {
  background: transparent;
}

/* =========================================================
   HEADINGS — HOME PAGE OVERRIDES
   Top border layout for non-top-new modules on home.
   ========================================================= */
.theme-render-page--home .module:not(.module-top-new) .module__heading {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  margin: 0 0 18px;
  padding: 0;
  border-top: 0;
  border-bottom: 0;
}

.theme-render-page--home .module:not(.module-top-new) .module__heading::before {
  display: none;
}

.theme-render-page--home .module:not(.module-top-new) h2.wp-block-heading.accent-header {
  margin: 0 0 18px;
  padding: 0;
  border-top: 0;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(28px, 4.2vw, 54px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--theme-heading-color, #b6b6b6);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.module-card,
.module-list-new__item,
.module-related-posts__item,
.module-taxonomy-post-list__item,
.module-top-new__sub-item,
.module-top-new__side-item,
.module-top-new__rail-item,
.module-recent-stories-v__left-item,
.module-recent-stories-v__popular-item,
.module-lasted-new .module-card {
  border-radius: var(--blog-card-radius, 0px);
  overflow: hidden;
}

.module-card,
.module-list-new__item,
.module-lasted-new .module-card {
  border: 0;
  border-bottom: var(--blog-card-border-bottom, 0px solid transparent);
  background: transparent;
}

.module-card__image,
.module-list-new .module-card__image,
.module-related-posts .module-card__image,
.module-taxonomy-post-list .module-card__image,
.module-recent-stories-v .module-card__image,
.module-lasted-new .module-card__image {
  display: block !important;
  width: 100% !important;
  height: var(--theme-card-image-height) !important;
  object-fit: cover !important;
}

.module-card__body,
.module-related-posts .module-card__body,
.module-taxonomy-post-list .module-card__body,
.module-list-new .module-card__body,
.module-lasted-new .module-card__body {
  padding: var(--theme-consistent-pad);
}

.module-list-new__items,
.module-related-posts__items,
.module-taxonomy-post-list__items,
.module-top-new__feature7-side,
.module-top-new__feature7-rail,
.module-recent-stories-v__left,
.module-recent-stories-v__popular-list,
.module-lasted-new__items {
  gap: var(--theme-consistent-gap);
}

.module-list-new .module-card__title,
.module-related-posts .module-card__title,
.module-taxonomy-post-list .module-card__title,
.module-recent-stories-v .module-card__title,
.module-lasted-new .module-card__title {
  line-height: 1.22 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.module-list-new .module-card__summary,
.module-related-posts .module-card__summary,
.module-taxonomy-post-list .module-card__summary,
.module-recent-stories-v .module-card__summary,
.module-lasted-new .module-card__summary {
  line-height: 1.48 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

@media (max-width: 991.98px) {
  :root {
    --theme-consistent-gap: 14px;
    --theme-consistent-pad: 12px;
    --theme-card-image-height: var(--theme-card-image-height-sm);
  }

  .module-taxonomy .module-card__title,
  .module-taxonomy .module-card__summary,
  .module-list-new .module-card__title,
  .module-related-posts .module-card__title,
  .module-taxonomy-post-list .module-card__title,
  .module-recent-stories-v .module-card__title,
  .module-lasted-new .module-card__title,
  .module-list-new .module-card__summary,
  .module-related-posts .module-card__summary,
  .module-taxonomy-post-list .module-card__summary,
  .module-recent-stories-v .module-card__summary,
  .module-lasted-new .module-card__summary {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
}

@media (max-width: 575.98px) {
  :root {
    --theme-consistent-radius: 0;
    --theme-consistent-gap: 12px;
    --theme-consistent-pad: 11px;
    --theme-card-image-height: 180px;
  }
}

/* END THEME CONSISTENCY SYSTEM */

/* THEME SIGNATURE */

body {
  background: var(--theme-page-bg);
}

.module-card {
  background: transparent;
}

/* END THEME SIGNATURE */

/* CARD TITLE TYPOGRAPHY (HARD LOCK FOR CONSISTENCY) */
.module-card__link {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
}

.module-card__title,
.module-list-new .module-card__title,
.module-related-posts .module-card__title,
.module-taxonomy-post-list .module-card__title,
.module-recent-stories-v .module-card__title,
.module-lasted-new .module-card__title {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif !important;
  font-size: clamp(18px, 1.9vw, 22px) !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  font-synthesis: none !important;
  color: var(--theme-text, #3d3d3d) !important;
}

/* END CARD TITLE TYPOGRAPHY */

/* ─── module-footer ─────────────────────────────────────────────────────── */

.module-footer {
  margin-top: 32px;
  margin-bottom: 0;
  background: #ececec;
  color: #5a5a5a;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

/* When page uses compact menu, stretch footer full-bleed too */
@supports selector(body:has(.module-menu--compact)) {
  body:has(.module-menu--compact) .module-footer {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
  }
}

.module-footer__inner {
  max-width: var(--container-max, 750px);
  margin-left: auto;
  margin-right: auto;
  padding: 28px 16px 20px;
  font-family: var(--theme-footer-font-family, inherit);
  font-size: var(--theme-footer-font-size, 14px);
  line-height: 1.5;
}

.module-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.module-footer__brand-logo {
  max-height: 34px;
  width: auto;
  height: auto;
  display: block;
  opacity: 0.95;
}

.module-footer__tagline {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--theme-footer-muted, #64748b);
  max-width: 280px;
}

.module-footer__nav-list,
.module-footer__cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-footer__nav-link,
.module-footer__cat-link {
  color: var(--theme-footer-link, inherit);
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--theme-footer-link-weight, 500);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.module-footer__nav-link:hover,
.module-footer__cat-link:hover {
  color: var(--theme-footer-link-hover, var(--menu-active, currentColor));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.module-footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--theme-footer-title, #64748b);
}

.module-footer__copy {
  font-size: 12px;
  color: var(--theme-footer-muted, #64748b);
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--theme-footer-divider, #e2e8f0);
}

.module-footer__powered-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── footer--simple ─── */
.module-footer--simple .module-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

}

.module-footer--simple .module-footer__nav-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.module-footer--simple .module-footer__copy {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  width: 100%;
  text-align: center;
}

/* ─── footer--columns-3 ─── */
.module-footer--columns-3 {
  background: #ececec;
  color: #5a5a5a;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.module-footer--columns-3 .module-footer__inner {
  max-width: min(1512px, calc(100% - 80px));
  padding: 20px 0 30px;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.35;
}

.module-footer--columns-3 .module-footer__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.module-footer--columns-3 .module-footer__col--brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.module-footer--columns-3 .module-footer__col--brand .module-footer__brand-link {
  width: 100%;
  justify-content: center;
}

.module-footer--columns-3 .module-footer__col-title {
  margin: 0 0 14px;
  padding-top: 8px;
  border-top: 0;
  color: #9a9a9a;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.module-footer--columns-3 .module-footer__nav-list,
.module-footer--columns-3 .module-footer__cat-list {
  gap: 6px;
}

.module-footer--columns-3 .module-footer__nav-link,
.module-footer--columns-3 .module-footer__cat-link {
  color: #5a5a5a;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
}

.module-footer--columns-3 .module-footer__nav-link:hover,
.module-footer--columns-3 .module-footer__cat-link:hover {
  color: #3d3d3d;
  text-decoration: none;
}

.module-footer--columns-3 .module-footer__brand-logo {
  max-height: 120px;
  width: auto;
}

.module-footer--columns-3 .module-footer__tagline {
  margin-top: 10px;
  max-width: 520px;
  color: #111827;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

.module-footer--columns-3 .module-footer__bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.14);
}

.module-footer--columns-3 .module-footer__copy {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  color: #7a7a7a;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  text-align: right;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .module-footer--simple .module-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .module-footer--simple .module-footer__nav-list {
    gap: 6px 16px;
  }

  .module-footer--simple .module-footer__copy {
    text-align: left;
  }

  .module-footer--columns-3 .module-footer__columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .module-footer--columns-3 .module-footer__inner {
    max-width: calc(100% - 32px);
    padding: 18px 0 24px;
  }

  .module-footer--columns-3 .module-footer__col-title {
    font-size: 26px;
  }

  .module-footer--columns-3 .module-footer__copy {
    font-size: 24px;
  }
}

/* ─── End module-footer ──────────────────────────────────────────────────── */

/* Tailwind bridge (safe additive): only affects new tw-* classes */
body.theme-tinybuddha .tw-theme-card,
body[data-theme="tinybuddha"] .tw-theme-card {
  background: var(--theme-card-bg, #ffffff);
  border-bottom: var(--blog-card-border-bottom, 0px solid transparent);
  border-radius: var(--blog-card-radius, 0px);
}

body.theme-tinybuddha .tw-theme-title,
body[data-theme="tinybuddha"] .tw-theme-title {
  color: var(--theme-text, #3d3d3d);
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
}

body.theme-tinybuddha .tw-theme-menu,
body[data-theme="tinybuddha"] .tw-theme-menu {
  background-color: var(--menu-background, #f1f1f1);
  color: var(--menu-text, #3b3b3b);
}

/* =========================================================
   THEME INTERACTION — TINY BUDDHA
   ========================================================= */

@media (hover: hover) and (pointer: fine) {
  .module-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .module-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 28px rgba(61, 61, 61, 0.14);
  }

  .module-article .module-card:hover,
  .module-article-content .module-card:hover,
  .module-article-header .module-card:hover {
    transform: none;
    box-shadow: none;
    border-color: inherit;
  }

  a:not(.module-menu__link):not(.btn):not(.module-footer__brand-link) {
    transition: color 0.24s ease, opacity 0.24s ease;
  }

  a:not(.module-menu__link):not(.btn):not(.module-footer__brand-link):hover {
    color: #4e6c7a;
    opacity: 0.9;
  }
}
