.container-header {
  background-image: url('/images/slotheravada-gold-buddha.png');
  background-size: cover;
  background-position: right top;
  background-repeat: no-repeat;
  background-color: #d99a3c;
}
.page-header h2 a { color: #9A671D !important; }
.page-header h2 a:hover { color: #654011 !important; }
.container-top-a .card,
.container-sidebar-left .card,
.container-sidebar-right .card,
.container-bottom-a .card {
  border: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
/* Keep article body copy at one readable size without changing headings. */
.com-content-article__body p,
.com-content-article__body p *,
.com-content-article__body li,
.com-content-article__body li *,
.com-content-article__body blockquote,
.com-content-article__body blockquote *,
.com-content-article__body td,
.com-content-article__body td *,
.com-content-article__body th,
.com-content-article__body th *,
.com-content-article__body dd,
.com-content-article__body dd * {
  font-size: 1rem !important;
}
/* Gold links and a soft gold tint for striped article lists. */
body a:not(.btn),
body a:not(.btn):visited { color: #76511a; }
body a:not(.btn):hover,
body a:not(.btn):focus { color: #4a3109; }
table.category,
table.category td,
table.category th { border-color: #eadbb7 !important; }
table.category tbody tr:nth-of-type(odd) > *,
table.category tbody tr:nth-of-type(odd) > *::before {
  background-color: #fff5d9 !important;
}
table.category tbody tr:nth-of-type(even) > * {
  background-color: #fffdf7 !important;
}
@media (min-width: 1200px) {
  .container-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: calc(264px + 1cm);
    padding: 0 22px;
  }
  .container-header > .grid-child { width: auto; max-width: none; margin: 0; padding: 0; }
  .container-header > .grid-child:not(.container-nav) { flex: 0 0 auto; }
  .container-header .navbar-brand { margin: 0; padding: 0; }
  .container-header .brand-logo,
  .container-header .brand-logo img { display: block; }
  .container-header > .container-nav {
    flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; align-items: center; gap: 24px;
  }
  .container-header .mod-menu {
    flex: 1 1 auto; width: auto; flex-wrap: nowrap; justify-content: flex-start; gap: 20px; margin: 0;
  }
  .container-header .mod-menu > li > a {
    color: #5c3a10 !important;
    font-weight: 700;
  }
  .container-header .mod-menu > li > a:hover,
  .container-header .mod-menu > li > a:focus { color: #382207 !important; }
  .container-header .container-search {
    position: absolute;
    top: 16px;
    right: 22px;
    order: 1;
    flex: 0 0 220px;
    margin: 0;
  }
  .container-header .container-search input { width: 100%; }
  .container-header .brand-logo img {
    width: clamp(330px, 30.2vw, 407px);
    height: auto;
    filter: contrast(1.18) saturate(1.08) drop-shadow(0 1px 1px rgba(77, 49, 14, .35));
  }
}
/* Use a clear serif tagline while preserving the existing SloTheravada wordmark. */
.container-header .brand-logo { position: relative; }
.container-header .brand-logo img { clip-path: inset(0 0 48% 0); }
.container-header .brand-logo::after {
  content: "Budistično učenje v slovenščini";
  position: absolute;
  top: 60%;
  left: 0;
  width: 100%;
  color: #432b12;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: clamp(15px, 1.55vw, 21px);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.15px;
  line-height: 1.15;
  white-space: nowrap;
  text-shadow: 0 1px rgba(255, 235, 190, 0.55);
  pointer-events: none;
}

/* Localize the article preview link in the sidebars. */
.mod-articles-category-readmore a,
a.mod-articles-category-readmore { font-size: 0 !important; }
.mod-articles-category-readmore a::after,
a.mod-articles-category-readmore::after {
  content: "Preberi več …";
  font-size: 1rem;
}
/* Slovenian label for the sidebar article preview links. */
.container-sidebar-left .mod-articles-category li > a:last-of-type,
.container-sidebar-right .mod-articles-category li > a:last-of-type { font-size: 0 !important; }
.container-sidebar-left .mod-articles-category li > a:last-of-type::after,
.container-sidebar-right .mod-articles-category li > a:last-of-type::after { content: \"Preberi več …\"; font-size: 1rem; }
/* Slovenian label for the sidebar article preview links. */
.container-sidebar-left ul.mod-articles-category li a:last-of-type,
.container-sidebar-right ul.mod-articles-category li a:last-of-type { font-size: 0 !important; }
.container-sidebar-left ul.mod-articles-category li a:last-of-type::after,
.container-sidebar-right ul.mod-articles-category li a:last-of-type::after { content: 'Preberi več …'; font-size: 1rem; }
/* Clear hierarchy and spacing for the two homepage article previews. */
.container-sidebar-left .mod-articles-category-title,
.container-sidebar-right .mod-articles-category-title {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 1.12rem !important;
  font-weight: 700 !important;
  line-height: 1.3;
}
.container-sidebar-left .mod-articles-category-introtext,
.container-sidebar-right .mod-articles-category-introtext {
  margin-top: 0.2rem;
}
/* Homepage sutta and teaching preview titles. */
.homepage-sutta-preview li > a:first-of-type,
.homepage-teaching-preview li > a:first-of-type,
.homepage-sutta-preview .mod-articles-category-title,
.homepage-teaching-preview .mod-articles-category-title {
  display: block !important;
  margin: 0 0 0.5rem !important;
  font-size: 1.12rem !important;
  font-weight: 700 !important;
  line-height: 1.3;
}
.homepage-sutta-preview .mod-articles-category-introtext,
.homepage-teaching-preview .mod-articles-category-introtext { margin-top: 0.15rem; }
.mod-articles-category-title { display: block !important; margin: 0 0 0.5rem !important; font-size: 1.12rem !important; font-weight: 700 !important; line-height: 1.3; }

ul.mod-articles-category > li > a:first-child { display:block !important; margin:0 0 0.5rem !important; font-size:1.12rem !important; font-weight:700 !important; line-height:1.3; }

/* Emphasize the linked article titles in both homepage sidebars. */
.container-sidebar-left li a:first-of-type,
.container-sidebar-right li a:first-of-type { display: block !important; margin: 0 0 0.5rem !important; font-size: 1.12rem !important; font-weight: 700 !important; line-height: 1.3; }

/* Slightly larger bold sidebar preview links. */
body .container-sidebar-left a, body .container-sidebar-right a { font-size: 1.12rem !important; font-weight: 700 !important; }

/* Title styling for the homepage sutta and teaching preview links. */
a[href*='/sutta/'], a[href*='/ucenja-2/dhamma/'] { display: block !important; margin-bottom: 0.5rem !important; font-size: 1.12rem !important; font-weight: 700 !important; line-height: 1.3; }

/* Style only the preview titles, and keep their read-more links quiet. */
ul > li > a[href*='/sutta/']:first-of-type,
ul > li > a[href*='/ucenja-2/dhamma/']:first-of-type { display: block !important; margin: 0 0 0.5rem !important; font-size: 1.12rem !important; font-weight: 700 !important; line-height: 1.3; }
ul > li > a[href*='/sutta/']:last-of-type,
ul > li > a[href*='/ucenja-2/dhamma/']:last-of-type { font-size: 0 !important; font-weight: 400 !important; }
ul > li > a[href*='/sutta/']:last-of-type::after,
ul > li > a[href*='/ucenja-2/dhamma/']:last-of-type::after { content: 'Preberi več …'; font-size: 1rem !important; font-weight: 400 !important; }

/* Restore visible preview titles with the requested emphasis and spacing. */
ul > li > a[href*='/sutta/']:last-of-type,
ul > li > a[href*='/ucenja-2/dhamma/']:last-of-type { display: block !important; margin: 0 0 0.5rem !important; font-size: 1.12rem !important; font-weight: 700 !important; line-height: 1.3; }

/* Keep the Slovenian read-more label away from the linked title. */
ul > li > a[href*='/sutta/']:last-of-type::after,
ul > li > a[href*='/ucenja-2/dhamma/']:last-of-type::after { content: none !important; }
.mod-articles-category-readmore a[href*='/sutta/'],
.mod-articles-category-readmore a[href*='/ucenja-2/dhamma/'] { font-size: 0 !important; font-weight: 400 !important; }
.mod-articles-category-readmore a[href*='/sutta/']::after,
.mod-articles-category-readmore a[href*='/ucenja-2/dhamma/']::after { content: 'Preberi več …' !important; font-size: 1rem !important; font-weight: 400 !important; }


/* Match SUTTE dropdown typography to the regular-weight Učenja submenu. */
.container-header .mod-menu ul a {
  font-size: 1rem !important;
  font-weight: 400 !important;
}


/* Lighter regular-weight text for the SUTTE and Učenja header dropdowns. */
.container-header [id*='submenu'] a,
.container-header .mod-menu__sub a {
  font-size: 1rem !important;
  font-weight: 400 !important;
}


/* Keep SUTTE dropdown links the same size and weight as Učenja. */
.container-header a[href*='/sutta/'] {
  font-size: 1rem !important;
  font-weight: 400 !important;
}


/* Direct override for the rendered SUTTE dropdown list. */
#mod-menu91-submenu0 a,
#mod-menu91-submenu0 a:link,
#mod-menu91-submenu0 a:visited,
html body .container-header a[href*='/sutta/'] {
  font-size: 1rem !important;
  font-weight: 400 !important;
}


/* Match every element inside the SUTTE dropdown to Učenja's regular type. */
#mod-menu91-submenu0,
#mod-menu91-submenu0 * {
  font-size: 1rem !important;
  font-weight: 400 !important;
}


/* Regular-weight dropdown items for SUTTE, matching the Učenja submenu. */
body header .mod-menu li li a,
body header .mod-menu li li a *,
body .container-header .mod-menu li li a,
body .container-header .mod-menu li li a * {
  font-size: 1rem !important;
  font-weight: 400 !important;
}


/* Normalize header text; keep only primary navigation links bold. */
.container-header * {
  font-size: 1rem !important;
  font-weight: 400 !important;
}
.container-header .mod-menu > li > a {
  font-size: 1rem !important;
  font-weight: 700 !important;
}


/* Normalize only the header's SUTTE collection links. */
body a[href$='/sutta/dn.html'],
body a[href$='/sutta/mn.html'],
body a[href$='/sutta/sn.html'],
body a[href$='/sutta/an.html'],
body a[href$='/sutta/dh.html'],
body a[href$='/sutta/s-n.html'],
body a[href$='/sutta/ud.html'],
body a[href$='/sutta/it.html'],
body a[href$='/sutta/thag.html'],
body a[href$='/sutta/thig.html'],
body a[href$='/sutta/ja.html'] {
  font-size: 1rem !important;
  font-weight: 400 !important;
}

/* Final override: use regular weight for header dropdown links. */
body .container-header .mod-menu li li a,
body .container-header .mod-menu li li a * { font-weight: 400 !important; font-size: 1rem !important; }


/* Clear down arrows for the SUTTE and Učenja dropdown toggles. */
.container-header .mod-menu__toggle-sub .icon-chevron-down { display: none !important; }
.container-header .mod-menu__toggle-sub::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.4rem;
  border-left: 0.32rem solid transparent;
  border-right: 0.32rem solid transparent;
  border-top: 0.38rem solid currentColor;
  vertical-align: middle;
}

/* Keep the Slovenian page title and hide the three English contact headings. */
body.com_contact .com-contact__container > h2,
body.com_contact .com-contact h2,
body.com_contact .com-contact fieldset legend {
  display: none !important;
}
