:root {
  --thmt-blue: #0a88f0;
  --thmt-blue-dark: #241275;
  --thmt-gold: #cfa34d;
  --thmt-light: #f5f7fb;
  --thmt-border: #d9e0ea;
  --thmt-text: #1f2937; 
  --thmt-blue-darker: #0a2a45;
}

body {
  color: var(--thmt-text);
}

.header {
  background: #FFFFFF;
  margin-bottom: 0rem;
}

.menu__list {
  background: var(--thmt-blue-dark);
  padding: 0.1rem 0;
  margin-bottom: 0;
}

.header .menu__btn {
  background: var(--thmt-blue-dark) !important;
}

.menu__item a,
.menu__link {
  color: #FFFFFF;
  font-weight: 500;
  font-size: 0.9rem;
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.menu__item a:hover,
.menu__item a:focus,
.menu__item a:active,
.menu__link:hover,
.menu__link:focus,
.menu__link:active,
.menu__item--active .menu__link {
  color: var(--thmt-light);
  background-color: var(--thmt-blue);
  outline: none;
}

.wrapper { 
  margin-top: 0; 
} 

.header { 
  position: sticky; 
  top: 0; 
  z-index: 1000; 
}

.thmt-hero {
  margin: 1rem 0;
  width: 100%;
  box-sizing: border-box;
}

.thmt-hero__slider {
  position: relative;
  height: 350px;
  overflow: hidden;
  border-radius: 0px;
  background: white;
  margin-top: -1.2rem;
}

.thmt-hero__slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  height: 350px;
  background-position: center;
  background-repeat: no-repeat;  
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.thmt-hero__slide.is-active {
  opacity: 1;
}

.thmt-hero__overlay,
.thmt-hero__content {
  display: none !important;
}

.thmt-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
  color: #d9e8f4;
}

.thmt-hero__title {
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 0.8rem;
  color: #fff;
}

.thmt-hero__meta {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f6d899;
  margin-bottom: 1rem;
}

.thmt-hero__text {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 60ch;
}

.thmt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.thmt-section {
  margin: 0 0 2rem;
}

.thmt-section--light {
  background: var(--thmt-light);
  border: 1px solid var(--thmt-border);
  border-radius: 6px;
  padding: 1.75rem;
}

.thmt-grid {
  display: grid;
  gap: 1.25rem;
}

.thmt-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.thmt-card {
  background: #ffff;
  border: 1px solid var(--thmt-border);
  border-radius: 6px;
  padding: 1.4rem;
  box-shadow: 0 10px 25px rgba(15, 61, 99, 0.05);
}

.thmt-card--link h3 {
  margin-top: 0;
}

.thmt-card--link a {
  color: var(--thmt-text);
  text-decoration: none;
}

.thmt-card--link a:hover {
  text-decoration: underline;
}

.thmt-list {
  margin: 0;
  padding-left: 1.2rem;
}

.thmt-list li + li {
  margin-top: 0.5rem;
}

.thmt-list--ordered {
  list-style: decimal;
}

/* Top-level lists stay square (theme default); nested sub-lists use circles */
.content ul > li > ul {
  list-style-type: circle;
}

.thmt-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #5d6774;
}

.post__title,
.entry__title,
.page-title {
  color: var(--thmt-text);
}

.content a {
  color: var(--thmt-text);
  text-decoration: underline;
}

.content a:hover,
.content a:focus {
  text-decoration: underline;
}

.footer {
  background: var(--thmt-blue-dark);
}

.footer__copyright {
  color: rgba(255,255,255,0.85);
}

@media (max-width: 900px) {
  .thmt-grid--2,
  .thmt-grid--3 {
    grid-template-columns: 1fr;
  }

  .thmt-hero__slider {
    height: 280px;
  }
}

/* Scroll Bar on home page*/

.thmt-scroll-box {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

/* Updates layout */
.thmt-updates__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px dotted #c9d1db;
}

.thmt-updates__date {
  font-weight: 600;
  white-space: nowrap;
  color: #333;
}

.thmt-updates__text {
  color: #333;
}

/* =========================
   THMT Button
========================= */
.thmt-button {
  display: inline-block;
  background-color: var(--thmt-blue-dark);
  color: #FFFFFF !important;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer; 
  text-decoration: none !important;
  margin-bottom: 20px;
}

.thmt-button:hover,
.thmt-button:active,
.thmt-button--active .thmt-button {
  color: var(--thmt-light);
  background-color: var(--thmt-blue);
}

/* =========================
   THMT Tables
========================= */
.content table.thmt-table {
  width: auto;
  max-width: 100%;
  table-layout: auto;
}

.content table.thmt-table th,
.content table.thmt-table td {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .content table.thmt-table th,
  .content table.thmt-table td {
    white-space: normal;
  }
}

/* =========================
   THMT Banner
========================= */

.thmt-banner {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: 1;
}

/* light overlay */

.thmt-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.0)
  );
  z-index: 0;
  pointer-events: none;
}

/* inner layout for both logos */
.thmt-banner__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 20px 12px 20px;
  box-sizing: border-box;
}

/* logo wrappers */
.thmt-banner__logo {
  display: flex;
  align-items: flex-end;
}

.thmt-banner__logo img {
  display: block;
  width: auto;
  max-width: 100%;
}

/* thmt logo */
.thmt-banner__logo--left img {
  height: 75px;
}

/* um logo */
.thmt-banner__logo--right img {
  height: 68px;
  position: absolute;
  top: 10px;
  left: 20px;
  align-items: flex-start;
}

/* image credit */
.thmt-banner__credit {
  position: absolute;
  bottom: 0px;
  right: 8px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  opacity: 0.75;
  z-index: 10; 
}

.thmt-banner__credit-text--mobile {
  display: none;
}

.thmt-banner:hover .thmt-banner__credit {
  opacity: 1;
}

/* prevent theme logo rules from interfering */
.logo,
.thmt-banner .logo {
  position: static;
  bottom: auto;
  left: auto;
}

.logo img,
.thmt-banner .logo img {
  height: auto;
  margin: 0;
}

/* adjust width */
.container {
  max-width: 1400px;
}

@media (min-width: 767px) {
  .menu__list {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: -1rem;
  }
}

/* optional mobile scaling */
@media (max-width: 768px) {
  .thmt-banner {
    height: 140px;
  }

  .thmt-banner__inner {
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0 14px;
  }

  .thmt-banner__logo--left img {
    height: 52px;
  }

  .thmt-banner__logo--right img {
    position: static;
    height: 46px;
  }

  .thmt-banner__credit {
    display: block;
    right: 6px;
    bottom: 4px;
    max-width: calc(100% - 12px);
    font-size: 0.58rem;
    line-height: 1.2;
    text-align: right;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  }

  .thmt-banner__credit-text--desktop {
    display: none;
  }

  .thmt-banner__credit-text--mobile {
    display: inline;
  }

  .thmt-hero__slider,
  .thmt-hero__slide {
    height: 220px;
  }

  .thmt-scroll-box {
    max-height: 220px;
  }
}

@media (max-width: 766px) {
  .menu__list {
    padding: 0;
  }

  .menu__item {
    border-left: 0 !important;
  }

  .menu__link,
  .menu__item a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .thmt-section--light,
  .thmt-card {
    padding: 1rem;
  }

  .thmt-updates__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .thmt-updates__date {
    white-space: normal;
  }
}
