/* Unihorn homepage trial — visual tokens taken from the current GoDaddy site */
:root {
  --teal: #59798e;
  --teal-dark: #4c687a;
  --text: #5e5e5e;
  --text-dark: #1b1b1b;
  --text-footer: #595959;
  --white: #ffffff;
  --border: #e6e6e6;
  --font: "Open Sans", "Noto Sans TC", "Hiragino Sans GB", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-display: "Montserrat", "Noto Sans TC", "Hiragino Sans GB", sans-serif;
  --container: 984px;
}

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

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Top phone bar — centered, as on the live site */
.topbar {
  background: var(--teal);
  color: var(--white);
  padding: 4px 0;
  text-align: center;
}
.topbar a {
  color: var(--white);
  text-decoration: none;
  font-weight: 400;
}
.topbar a:hover { text-decoration: underline; }

/* Header + nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img {
  height: 40px;
  width: auto;
  aspect-ratio: 0.7508532423208191 / 1;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 1px;
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.nav {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
}
.nav > li {
  position: relative;
  list-style: none;
  padding: 0 0 0 22px;
  white-space: nowrap;
}
.nav > li > a,
.nav > li > button.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--teal);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  background: none;
  border: 0;
  padding: 8px 0 4px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
}
.nav > li > a.current {
  color: var(--text-dark);
  border-bottom: 2px solid var(--text-dark);
  margin-bottom: -2px;
}
.nav > li > a:hover,
.nav > li > button.nav-parent:hover,
.nav > li:hover > button.nav-parent,
.nav > li:focus-within > button.nav-parent {
  color: var(--teal-dark);
}
.caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  display: inline-block;
  margin-left: 2px;
  opacity: 0.85;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 12px;
  min-width: 260px;
  max-width: 360px;
  max-height: min(70vh, 480px);
  overflow: auto;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  padding: 8px 0;
  z-index: 50;
  white-space: normal;
}
.nav > li:hover > .dropdown,
.nav > li:focus-within > .dropdown,
.nav > li.open > .dropdown { display: block; }
.nav > li.wide .dropdown,
.nav > li.desktop-more .dropdown {
  min-width: 300px;
  max-width: 420px;
  right: 0;
  left: auto;
}
.dropdown a {
  display: block;
  color: #5e5e5e;
  text-decoration: none;
  padding: 6px 16px;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.dropdown a:hover,
.dropdown a:focus {
  background: #f4f7f8;
  color: var(--teal);
}
.mobile-only { display: none; }
.account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  width: 32px;
  height: 32px;
  margin-left: 8px;
  border-left: 1px solid var(--border);
  padding-left: 12px;
  width: auto;
}
.account-link:hover { color: var(--teal); }

/* Welcome: hero first, then title, then left-aligned CTA */
.welcome { padding: 20px 0 40px; }
.hero-figure { margin: 0 0 36px; }
.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4.385965 / 1;
  object-fit: cover;
  object-position: center;
}
.welcome h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  color: var(--teal);
  margin: 0 0 8px;
  text-align: center;
}
.welcome .tagline {
  margin: 0 auto 28px;
  max-width: 750px;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
}
.welcome-copy {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.intro {
  margin: 0 0 28px;
  width: 100%;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
  text-wrap: pretty;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  min-height: 48px;
  padding: 8px 28px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  width: auto;
}
.welcome .container { text-align: center; }
.welcome .container .cta { /* live site places the button toward the left of the text column */
  /* keep centered on small screens; shift left on desktop below */
}
.cta:hover, .cta:focus { background: var(--teal-dark); }

/* Featured posts — list + category sidebar, matching the live widget */
.news { padding: 8px 0 48px; }
.news h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
  color: var(--text-dark);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}
.news h2::before,
.news h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.news-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.news-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.news-item:first-child { padding-top: 0; }
.news-item .thumb { display: block; }
.news-item .thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f0f0f0;
}
.news-item .meta {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 13px;
}
.news-item .meta .dot { margin: 0 8px; color: #bbb; }
.news-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}
.news-item h3 a { text-decoration: none; }
.news-item h3 a:hover { color: var(--teal); }
.news-item .excerpt {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}
.news-item .more-link {
  color: var(--teal);
  text-decoration: none;
  font-size: 14px;
}
.news-item .more-link:hover { text-decoration: underline; }

.news-side h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}
.news-side ul { margin: 0; padding: 0; list-style: none; }
.news-side li {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  color: var(--text);
  font-size: 14px;
}
.news-side li.active,
.news-side li.active a { color: var(--teal); }
.news-side a { text-decoration: none; }
.news-side a:hover { color: var(--teal); }

/* Footer */
.site-footer {
  background: var(--white);
  padding: 56px 0 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.copyright {
  margin: 0 0 24px;
  color: var(--text-footer);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { display: inline-block; }
.footer-links a {
  display: inline-block;
  color: var(--teal);
  text-decoration: none;
  padding: 4px 8px;
  font-size: 14px;
}
.footer-links a:hover { text-decoration: underline; }
.preview-note {
  margin: 28px 0 0;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .welcome h1 { font-size: 27px; }
  .news-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 48px; }
  .news-item { grid-template-columns: 200px 1fr; }
  .welcome-copy { align-items: flex-start; }
}

@media (min-width: 1024px) {
  :root { --container: 984px; }
  .welcome h1 { font-size: 25px; }
  .welcome { padding: 24px 0 48px; }
}

@media (min-width: 1280px) {
  :root { --container: 1160px; }
  body { font-size: 16px; }
  .welcome h1 { font-size: 27px; }
  .welcome .tagline,
  .intro,
  .news-item .excerpt,
  .copyright,
  .nav > li > a,
  .nav > li > button.nav-parent,
  .dropdown a,
  .footer-links a,
  .news-item .more-link,
  .news-side li { font-size: 16px; }
  .cta { font-size: 16px; }
}

@media (min-width: 1536px) {
  :root { --container: 1280px; }
  .welcome h1 { font-size: 32px; }
}

@media (max-width: 1023px) {
  .menu-toggle { display: block; }
  .nav-wrap { display: contents; }
  .account-link { display: none; }
  .desktop-more { display: none; }
  .mobile-only { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - 80px);
    overflow: auto;
  }
  body.nav-open .nav { display: flex; }
  .nav > li { padding: 0 24px; border-top: 1px solid #f0f0f0; }
  .nav > li > a,
  .nav > li > button.nav-parent {
    width: 100%;
    justify-content: space-between;
    padding: 12px 0;
  }
  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    min-width: 0;
    max-width: none;
    max-height: none;
    padding: 0 0 8px 8px;
  }
  .nav > li:hover > .dropdown { display: none; }
  .nav > li.open > .dropdown,
  .nav > li.open:hover > .dropdown { display: block; }
  .cta { margin: 0 !important; width: auto; }
}

@media (max-width: 767px) {
  .welcome { padding: 16px 0 32px; }
  .news-item { grid-template-columns: 1fr; }
  .news-item .thumb img { aspect-ratio: 16 / 10; }
  .site-footer { padding: 32px 0 28px; }
  .cta { width: auto; min-width: 160px; }
}
