/* ==========================================================================
   content.css : hero slider, layouts, archives, widgets, comments, blocks
   ========================================================================== */

/* ------------------------------ hero slider ----------------------------- */
.hero--slider { position: relative; }
.hero--slider .hero__track { position: relative; height: 400px; }
.hero--slider .hero__slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .8s ease; display: block;
}
.hero--slider .hero__slide.is-active { opacity: 1; pointer-events: auto; }
.hero--slider .hero__slide img { width: 100%; height: 400px; object-fit: cover; }
.hero__caption {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 6px;
  padding: 40px 30px 34px;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
  color: #fff;
}
.hero__title { font-family: var(--font-accent); font-size: 30px; font-weight: 700; color: #fff; }
.hero__subtitle { font-size: 15px; color: #fff; }
.hero__dots {
  position: absolute; inset-inline: 0; bottom: 16px; z-index: 3;
  display: flex; justify-content: center; gap: 10px;
}
.hero__dots button {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, .65);
  transition: background .25s ease, transform .25s ease;
}
.hero__dots button.is-active { background: var(--gold-2); transform: scale(1.3); }

/* welcome card link */
.dean__more { display: inline-block; margin-top: 10px; color: #fff; font-weight: 700; text-decoration: underline; }

/* ------------------------------ site layout ----------------------------- */
.ue-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; padding: 48px 0 70px; }
.ue-layout--none { display: block; max-width: none; }
.ue-main-content { min-width: 0; }
.ue-sidebar { position: sticky; top: 110px; }
.ue-page__subtitle { font-size: 18px; color: var(--muted); margin: -4px 0 8px; }
.entry-content.ue-full { max-width: none; }
.ue-blank__main { margin: 0; padding: 0; }
.ue-single-head { margin-bottom: 22px; }
.ue-single-head .cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.ue-entry-footer { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; }
@media (max-width: 1024px) {
  .ue-layout { grid-template-columns: 1fr; gap: 34px; }
  .ue-sidebar { position: static; }
}

/* ------------------------------ widgets --------------------------------- */
.widget { margin-bottom: 30px; }
.widget__title {
  font-family: var(--font-accent); font-size: 20px; color: var(--dark);
  margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border);
}
.widget ul { display: grid; gap: 8px; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--green); }
.widget select,
.widget input[type="text"],
.widget input[type="search"] { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.widget .tagcloud a {
  display: inline-block; padding: 4px 12px; margin: 0 6px 6px 0;
  border: 1px solid var(--border); border-radius: 20px; font-size: 13px !important;
}
.widget .tagcloud a:hover { background: var(--gold-2); color: #fff; border-color: var(--gold-2); }

/* ------------------------------ archives -------------------------------- */
.ue-archive-head { padding: 44px 0 8px; }
.ue-archive-head .stub__title { margin-bottom: 6px; }
.ue-archive-desc { max-width: 780px; color: var(--text); line-height: 1.85; }
.ue-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.ue-posts .acard { flex: none; }
.acard__excerpt { font-size: 14px; line-height: 1.7; color: var(--text); }
.acard__excerpt p:last-child { margin-bottom: 0; }

/* single post */
.ue-single-media { margin: 0 0 26px; border-radius: 8px; overflow: hidden; }
.ue-single-media img { width: 100%; height: auto; }
.ue-entry-meta { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 16px; flex-wrap: wrap; }

/* pagination */
.navigation.pagination { margin-top: 34px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-links .page-numbers {
  min-width: 40px; text-align: center; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--dark);
}
.nav-links .page-numbers.current,
.nav-links .page-numbers:hover { background: var(--gold-2); color: #fff; border-color: var(--gold-2); }

/* ---------------------------- entry content ----------------------------- */
.entry-content { max-width: 900px; font-size: 16px; line-height: 1.9; }
.entry-content > * { margin-block: 0 1em; }
.entry-content h2,
.entry-content h3 { margin-top: 1.5em; }
.entry-content a { color: var(--green); text-decoration: underline; }
.entry-content img { border-radius: 6px; }
.entry-content blockquote {
  border-inline-start: 4px solid var(--gold); background: var(--gray);
  padding: 14px 20px; margin: 1.4em 0; border-radius: 0 6px 6px 0;
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { border: 1px solid var(--border); padding: 9px 12px; text-align: start; }
.ue-reset-link { font-size: 13px; }

/* ------------------------------ comments -------------------------------- */
.comments-area { margin-top: 44px; max-width: 900px; }
.comments-title { font-family: var(--font-accent); font-size: 24px; margin-bottom: 20px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; padding-inline-start: 26px; }
.comment-body {
  border: 1px solid var(--border); border-radius: 6px; background: #fff;
  padding: 16px 18px; margin-bottom: 16px;
}
.comment-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.comment-author img { border-radius: 50%; margin-inline-end: 8px; vertical-align: middle; }
.comment-respond { margin-top: 30px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px; font-family: inherit; font-size: 15px;
}
.comment-form .submit,
.comment-form input[type="submit"] {
  background: var(--gold-2); color: #fff; border: 0; border-radius: var(--radius);
  padding: 10px 24px; font-weight: 700; cursor: pointer;
}
.comment-form .submit:hover,
.comment-form input[type="submit"]:hover { background: var(--green-hover); }
.comment-notes { font-size: 13px; color: var(--muted); }

/* --------------------------- block styles/patterns ---------------------- */
.is-style-ue-highlight {
  background: var(--gray); border-radius: 8px; padding: 26px;
  border-inline-start: 4px solid var(--gold);
}
.is-style-ue-quote { border-inline-start: 4px solid var(--gold); background: #fff; }
.wp-block-button.is-style-ue-solid .wp-block-button__link {
  background: var(--gold-2); color: #fff; border-radius: var(--radius); font-weight: 700;
}
.wp-block-button.is-style-ue-solid .wp-block-button__link:hover { background: var(--green-hover); }
.ue-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--gold-dark); }
.ue-pattern-header { border-inline-start: 5px solid var(--gold); padding-inline-start: 20px; }
.ue-pattern-cta {
  background: var(--green); color: #fff; border-radius: 10px; padding: 44px 30px; text-align: center;
}
.ue-pattern-cta h2 { color: #fff; }

/* ---------------- previous / next article navigation ------------------- */
.ue-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 34px;
}
.ue-post-nav__item { display: flex; }
.ue-post-nav__item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid #e6e2da;
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.ue-post-nav__item a:hover { border-color: var(--gold); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.ue-post-nav__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gold-dark);
}
.ue-post-nav__dir { font-size: 18px; line-height: 1; color: var(--gold-dark); }
.ue-post-nav__prev .ue-post-nav__label,
.ue-post-nav__prev .ue-post-nav__dir { display: inline-flex; align-items: center; gap: 6px; }
.ue-post-nav__next .ue-post-nav__label,
.ue-post-nav__next .ue-post-nav__dir { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.ue-post-nav__title {
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.4;
}
.ue-post-nav__next { grid-column: 2; text-align: end; }
.ue-post-nav__next .ue-post-nav__title { text-align: end; }
@media (max-width: 640px) {
  .ue-post-nav { grid-template-columns: 1fr; }
  .ue-post-nav__next { grid-column: 1; }
}
