/* Zoho-language header, mega menu, footer */

.w2-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 42;
  height: var(--w2-banner-h);
  background: var(--color-banner);
  color: var(--color-banner-text);
  font-size: 0.8rem;
}

.w2-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
}

.w2-banner a {
  color: var(--color-accent);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.w2-banner a:hover {
  color: var(--color-accent-hover);
}

.w2-header {
  position: fixed;
  top: var(--w2-banner-h);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--color-header-bg);
  color: var(--color-header-text);
  border-bottom: 1px solid var(--color-border);
}

.w2-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--w2-header-h);
  flex-wrap: nowrap;
}

.w2-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--color-header-text);
}

.w2-logo img {
  display: none;
}

.w2-logo__mark {
  display: block;
  width: 28px;
  height: 32px;
  flex-shrink: 0;
  overflow: visible;
}

.w2-logo__mark--lg .w2-logo__mark {
  width: 56px;
  height: 64px;
}

.w2-logo__word {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
  text-transform: lowercase;
  color: inherit;
}

.w2-nav {
  display: flex;
  align-items: center;
  flex: 1;
}

.w2-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.w2-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 36px;
  padding: 0.25rem 0.7rem;
  color: var(--color-header-text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
  background: none;
  border: 0;
  cursor: pointer;
}

.w2-nav__link[aria-haspopup="true"]::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.55;
  translate: 0 1px;
}

.w2-nav__link:hover,
.w2-nav__link[aria-expanded="true"] {
  color: var(--color-accent);
}

.w2-header__auth {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.w2-icon-btn,
.w2-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-header-text);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.w2-icon-btn:hover,
.w2-theme-toggle:hover {
  background: var(--color-surface-alt);
}

.w2-theme-toggle {
  border-color: var(--color-border);
  background: var(--color-surface);
}

.w2-theme-toggle svg {
  display: none;
  width: 18px;
  height: 18px;
}

html[data-theme="dark"] .w2-theme-toggle__sun,
html:not([data-theme="dark"]) .w2-theme-toggle__moon {
  display: block;
}

.w2-header__search-panel {
  border-top: 1px solid var(--color-border);
  background: var(--color-header-bg);
  padding: 0.7rem 0 0.85rem;
}

.w2-header__search-panel .w2-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0 0.9rem;
  background: var(--color-surface-alt);
}

.w2-nav__toggle,
.w2-nav__close {
  display: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-header-text);
  min-height: 36px;
  min-width: 36px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
}

.w2-drawer {
  display: none;
}

.w2-mega-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(26, 26, 26, 0.18);
}

.w2-mega-panel {
  position: fixed;
  top: calc(var(--w2-banner-h) + var(--w2-header-h));
  left: 50%;
  translate: -50% 0;
  width: min(1120px, calc(100% - 2rem));
  z-index: 45;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--color-mega-shadow);
  padding: 1rem 0 1.25rem;
  max-height: min(78vh, 640px);
  overflow: auto;
}

.w2-mega-panel__top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.w2-mega-tabs {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex: 1;
}

.w2-mega-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-text);
  font-weight: 650;
  padding: 0.35rem 0;
  cursor: pointer;
}

.w2-mega-tabs a,
.w2-mega-panel__top > a {
  margin-left: auto;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
}

.w2-mega-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 650;
}

.w2-mega-panel__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
}

.w2-mega-side__search {
  margin-bottom: 0.75rem;
}

.w2-mega-cats {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.w2-mega-cats button {
  text-align: left;
  background: none;
  border: 0;
  border-left: 3px solid transparent;
  color: var(--color-text);
  padding: 0.55rem 0.7rem;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-size: 0.9rem;
}

.w2-mega-cats button:hover {
  background: var(--color-surface-alt);
}

.w2-mega-cats button.is-active {
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface));
  border-left-color: var(--color-accent);
  font-weight: 650;
}

.w2-mega-side__cta {
  margin-top: 1rem;
  width: 100%;
}

.w2-mega-grid,
.w2-mega-apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.w2-mega-app {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid transparent;
}

.w2-mega-app:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-border);
}

.w2-mega-app strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.w2-mega-app small {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  margin-top: 0.15rem;
}

.w2-mega-app em {
  display: inline-block;
  margin-top: 0.35rem;
  font-style: normal;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.w2-mega-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.w2-mega-featured {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  min-height: 280px;
  padding: 1.4rem;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background:
    linear-gradient(160deg, var(--color-featured), var(--color-featured-2));
}

.w2-mega-featured h3 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
}

.w2-mega-featured p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.5;
}

.w2-mega-featured span {
  font-weight: 700;
  font-size: 0.82rem;
}

.w2-mega-simple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  position: relative;
  padding-right: 2.5rem;
}

.w2-mega-simple a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-text);
}

.w2-mega-simple a:hover {
  background: var(--color-surface-alt);
}

.w2-mega-simple small {
  color: var(--color-text-muted);
}

.w2-mega-simple .w2-icon-btn {
  position: absolute;
  top: 0;
  right: 0;
}

.w2-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--color-surface-alt);
}

.w2-ico svg {
  width: 22px;
  height: 22px;
}

.w2-ico--red { color: var(--color-brand-red); background: color-mix(in srgb, var(--color-brand-red) 12%, var(--color-surface)); }
.w2-ico--green { color: var(--color-brand-green); background: color-mix(in srgb, var(--color-brand-green) 12%, var(--color-surface)); }
.w2-ico--blue { color: var(--color-brand-blue); background: color-mix(in srgb, var(--color-brand-blue) 12%, var(--color-surface)); }
.w2-ico--yellow { color: #c9a000; background: color-mix(in srgb, var(--color-brand-yellow) 22%, var(--color-surface)); }

.w2-mega-featured .w2-ico {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.w2-footer {
  background: var(--color-surface);
  color: var(--color-text-muted);
  padding: 3.5rem 0 1.25rem;
  margin-top: 0;
  border-top: 1px solid var(--color-border);
}

.w2-footer h2,
.w2-footer h3 {
  color: var(--color-text);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.85rem;
}

.w2-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 1.5rem;
}

.w2-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.w2-footer li {
  margin-bottom: 0.45rem;
}

.w2-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.w2-footer a:hover {
  color: var(--color-text);
}

.w2-footer .w2-logo {
  color: var(--color-text);
}

.w2-footer .w2-logo__word {
  color: var(--color-text);
}

.w2-footer .w2-logo__mark {
  width: 32px;
  height: 36px;
}

.w2-footer__brand p {
  max-width: 34ch;
  font-size: 0.875rem;
  line-height: 1.55;
  margin-top: 0.7rem;
}

.w2-footer__legal {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.75rem;
}

@media (max-width: 960px) {
  .w2-nav__list,
  .w2-mega-panel,
  .w2-mega-backdrop {
    display: none !important;
  }

  .w2-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
  }

  .w2-header__auth .w2-btn {
    display: none;
  }

  .w2-header__inner {
    gap: 0.5rem;
  }

  .w2-drawer {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-surface);
    z-index: 60;
    padding: 1.25rem;
    overflow: auto;
  }

  .w2-drawer.is-open {
    display: flex;
    flex-direction: column;
  }

  .w2-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
  }

  .w2-drawer__nav {
    display: flex;
    flex-direction: column;
  }

  .w2-drawer__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    color: var(--color-text);
    padding: 0.78rem 0.15rem;
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.02rem;
    font-weight: 500;
  }

  .w2-drawer__link svg {
    flex: 0 0 auto;
    color: var(--color-text-muted);
  }

  .w2-drawer__account {
    margin-top: auto;
    padding-top: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .w2-drawer__cta {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    gap: 0.5rem;
  }

  .w2-drawer__search {
    margin: 1rem 0;
  }

  .w2-drawer .w2-theme-toggle {
    margin: 0;
  }

  .w2-nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
  }

  .w2-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .w2-banner {
    font-size: 0.72rem;
  }

  .w2-banner span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .w2-banner__inner {
    justify-content: flex-start;
    gap: 0.45rem;
    width: min(var(--w2-max), calc(100% - 1.25rem));
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .w2-wrap {
    width: min(var(--w2-max), calc(100% - 1.25rem));
  }

  .w2-page h1,
  .w2-hero h1 {
    font-size: clamp(1.45rem, 7vw, 2rem);
    max-width: none;
    line-height: 1.18;
  }

  .w2-hero {
    padding: 2rem 0 1.6rem;
  }

  .w2-section {
    padding: 1.6rem 0;
  }

  .w2-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .w2-hero__actions .w2-btn,
  .w2-card__actions .w2-btn,
  .w2-prompt .w2-btn {
    width: 100%;
    white-space: normal;
  }

  .w2-card__actions {
    flex-direction: column;
  }

  .w2-prompt {
    flex-direction: column;
    align-items: stretch;
  }

  .w2-crumb {
    overflow-wrap: anywhere;
  }

  .w2-search {
    flex-wrap: wrap;
    padding: 0.45rem;
  }

  .w2-search .w2-input {
    flex: 1 1 100%;
  }

  .w2-search .w2-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .w2-footer__grid {
    grid-template-columns: 1fr;
  }
}
