/* This file is based on the original static styles.css */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Noto Sans", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #eeeeee;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Global link color (keep consistent with site palette) */
a,
a:visited {
  color: inherit;
}
a:hover {
  color: inherit;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.22);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #222222;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu a {
  color: #333333;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  position: relative;
}

.nav-menu a:hover {
  color: #666666;
}

/* Animated underline */
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: #333333;
  transition: width 180ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.nav-menu a:hover::after {
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  background: transparent;
  gap: 20px;
}

.logo-img {
  width: 140px;
}

body.nav-open {
  overflow: hidden;
}

/* Main content styles */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 96px 0 40px;
  position: relative;
  overflow: visible;
  min-height: 100vh;
}

/* Canvas for animated background stripes (limited to main-content) */
.animated-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 2;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: start;
  width: 100%;
  margin-top: 32px;
}

.main-title {
  font-family: "Dela Gothic One", "Manrope", sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 20px;
  line-height: 1.1;
}

.main-description {
  font-size: 15px;
  color: #555555;
  margin-top: 10px;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* CTA link */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #333333;
  font-weight: 600;
  text-decoration: none;
}
.cta-link:hover {
  color: #000000;
  text-decoration: underline;
}

/* Hero columns */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.hero-empty {
  min-height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

/* Character in hero */
.character {
  position: relative;
  width: 280px;
  height: 280px;
}

.character-body {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 160ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transform-origin: 50% 50%;
}

.eye {
  position: absolute;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 3px solid #000000;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 140ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.eye-left {
  left: 92px;
  top: 96px;
}
.eye-right {
  right: 92px;
  top: 96px;
}

.pupil {
  width: 16px;
  height: 16px;
  background: #000000;
  border-radius: 50%;
  transform: translate(0, 0);
  transition: transform 140ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mouth {
  position: absolute;
  left: 50%;
  top: 150px;
  width: 90px;
  height: 45px;
  transform: translateX(-50%);
  border-bottom: 8px solid #000000;
  border-radius: 0 0 90px 90px;
  transition: transform 160ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 600px) {
  .character {
    width: 220px;
    height: 220px;
  }
  .eye {
    width: 36px;
    height: 36px;
    border-width: 3px;
  }
  .pupil {
    width: 14px;
    height: 14px;
  }
  .eye-left {
    left: 70px;
    top: 74px;
  }
  .eye-right {
    right: 70px;
    top: 74px;
  }
  .mouth {
    top: 120px;
    width: 74px;
    height: 38px;
    border-bottom-width: 7px;
  }
}

/* Markdown Content (Articles) */
.article-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
  display: block;
  margin: 1.5em auto;
  object-fit: contain;
}

.article-content iframe {
  max-width: 100% !important;
  border-radius: 12px;
  display: block;
  margin: 1.5em auto;
}

/* Beautiful Lists in Articles */
.article-content ul,
.article-content ol {
  margin: 1.5em 0;
  padding-left: 24px;
}

.article-content ul {
  list-style: none;
}

.article-content ul li {
  position: relative;
  margin-bottom: 12px;
  line-height: 1.6;
  color: #444;
}

.article-content ul li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: #333;
  border-radius: 50%;
  opacity: 0.7;
}

.article-content ol li {
  margin-bottom: 12px;
  line-height: 1.6;
  color: #444;
  padding-left: 4px;
}

.article-content p {
  margin-bottom: 1.2em;
  line-height: 1.7;
}

.article-content blockquote {
  margin: 1.6em 0;
  padding: 16px 18px;
  border-left: 4px solid #222;
  border-radius: 0 14px 14px 0;
  background: #f7f7f7;
  color: #303030;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  color: #222;
  font-family: "Dela Gothic One", "Manrope", sans-serif;
}

.article-content .app-cta {
  margin: 20px 0 28px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--app-cta-bg, #f7f7f7);
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.article-content .app-cta__icon {
  width: 60px !important;
  height: 60px !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 14px !important;
  object-fit: cover;
  display: block;
}

.article-content .app-cta__body {
  min-width: 0;
}

.article-content .app-cta__title {
  margin: 0 0 4px !important;
  font-size: 0.98rem;
  line-height: 1.3;
  color: #202020;
}

.article-content .app-cta__subtitle {
  margin: 0 !important;
  color: #5f5f5f;
  font-size: 0.92rem;
  line-height: 1.35;
}

.article-content .app-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.article-content .app-cta__button,
.article-content .app-cta__button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 21px;
  box-sizing: border-box;
  border: 1px solid #111;
  border-radius: 12px;
  background: #111;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.article-content .app-cta__button:hover {
  color: #fff !important;
  text-decoration: none !important;
  background: #000;
}

.article-content .app-cta__button-icon {
  width: 17px !important;
  height: 17px !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: contain;
  display: block;
}

.article-content .app-cta__license {
  margin: 0 !important;
  color: #6b6b6b;
  font-size: 0.85rem;
  line-height: 1.2;
}

@media (max-width: 760px) {
  .article-content .app-cta {
    padding: 18px 18px;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .article-content .app-cta__icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 12px !important;
  }

  .article-content .app-cta__actions {
    grid-column: 1 / -1;
    align-items: stretch;
    padding-top: 4px;
  }

  .article-content .app-cta__button,
  .article-content .app-cta__button:visited {
    width: 100%;
    min-height: 44px;
    padding: 6px 18px;
  }

  .article-content .app-cta__license {
    text-align: left;
  }
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-title {
  font-family: "Dela Gothic One", "Manrope", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 16px;
  line-height: 1.1;
}

/* Mission */
.mission-section {
  background: #ffffff;
}
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: start;
}
.mission-image {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}
.mission-illustration {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 16px;
}
.mission-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}
.mission-text p {
  color: #333333;
  line-height: 1.6;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }
  .mission-image {
    justify-content: center;
  }
  .mission-illustration {
    max-width: 80%;
  }
}

/* Help */
.help-intro p {
  color: #333333;
  line-height: 1.6;
}

/* Serve Cards */
.serve-card {
  padding: 8px 0 8px 24px;
  background: transparent;
  border-left: 3px solid #d0d0d0;
}

.serve-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
  color: #222;
}

.serve-card p {
  margin: 0;
  color: #555;
  line-height: 1.6;
  font-size: 15px;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 20px;
  margin-top: 20px;
  grid-auto-flow: row;
  grid-auto-rows: auto;
}
.blog-card {
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}

.blog-card.large1 {
  grid-column: 1 / span 7;
  grid-row: 1;
}
.blog-card.small1 {
  grid-column: 8 / span 3;
  grid-row: 1;
}
.blog-card.small2 {
  grid-column: 1 / span 3;
  grid-row: 2;
}
.blog-card.large2 {
  grid-column: 4 / span 7;
  grid-row: 2;
}

.blog-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.blog-card.featured .blog-image-wrap {
  aspect-ratio: 16 / 9;
}
.blog-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.blog-card-body {
  padding: 16px 24px 24px;
}
.blog-title {
  font-family: "Oswald", "Manrope", sans-serif;
  font-size: 20px;
  color: #333333;
  line-height: 1.2;
  margin-bottom: 8px;
  font-weight: 600;
}
.blog-excerpt {
  color: #555555;
  line-height: 1.4;
}
.blog-meta {
  font-size: 12px;
  color: #777777;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.blog-tags {
  list-style: none;
  margin: 0 0 6px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-tags li {
  font-size: 12px;
  color: #333333;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 4px 8px;
}
.blog-label {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #333333;
  color: #ffffff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  line-height: 1;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card.large1,
  .blog-card.small1,
  .blog-card.small2,
  .blog-card.large2 {
    grid-column: auto;
    grid-row: auto;
  }
  .blog-image-wrap {
    height: 200px;
    aspect-ratio: auto;
  }
}

/* Subscribe */
.subscribe-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.subscribe-image {
  width: 320px;
  height: auto;
  margin-bottom: 24px;
}
.subscribe-centered .section-title {
  margin-bottom: 8px;
}
.subscribe-text {
  color: #333333;
  line-height: 1.6;
  margin: 0 auto 12px auto;
  max-width: 420px;
}
.subscribe-form {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.subscribe-input {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  font-size: 14px;
  max-width: 420px;
  width: 100%;
}
.subscribe-button {
  background: #333333;
  color: #ffffff;
  border: none;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
}
.subscribe-button:hover {
  background: #000000;
}
.subscribe-note {
  font-size: 12px;
  color: #777777;
  max-width: 500px;
  margin: 0 auto;
}
.subscribe-section {
  padding-bottom: 120px;
}

@media (max-width: 768px) {
  .subscribe-form {
    flex-direction: column;
    align-items: stretch;
    max-width: 420px;
    margin: 0 auto 8px auto;
  }
  .subscribe-input {
    max-width: 100%;
  }
  .subscribe-button {
    width: 100%;
  }
  .subscribe-section {
    padding-bottom: 96px;
  }
}

/* Footer */
.footer {
  background: #0f0f10;
  border-top: 1px solid #2a2a2a;
  padding: 56px 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 0.5fr 1fr 2fr;
  gap: 32px;
  align-items: start;
}
.footer-logo-small {
  width: 32px;
  height: auto;
  opacity: 0.3;
}
.footer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer-menu-list a {
  color: #eaeaea;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.footer-menu-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.footer-heading {
  font-family: "Dela Gothic One", "Manrope", sans-serif;
  font-weight: 700;
  color: #f5f5f5;
  margin-bottom: 8px;
  font-size: 14px;
}
.footer-address p,
.footer-copy p {
  color: #cfcfcf;
  line-height: 1.5;
  font-size: 14px;
}
.footer-copy p {
  color: #b0b0b0;
}
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  margin-top: 24px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom-left {
  color: #b0b0b0;
  font-size: 14px;
}
.footer-legal-links {
  margin-top: 6px;
  font-size: 13px;
}
.footer-legal-links a {
  color: #b0b0b0;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.footer-legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  opacity: 1;
}
.footer-legal-links .separator {
  margin: 0 8px;
  color: #555;
  opacity: 0.6;
}
.scroll-top {
  margin-left: auto;
  height: 36px;
  padding: 8px 12px;
  width: auto;
  min-width: 36px;
  border-radius: 18px;
  border: 1px solid #3a3a3a;
  background: #1c1c1e;
  color: #ededed !important;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.scroll-top:hover,
.scroll-top:visited,
.scroll-top:active {
  background: #2a2a2a;
  color: #ededed !important;
  text-decoration: none;
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
    text-align: center;
  }
  .footer-menu-list {
    justify-items: center;
  }
  .footer-bottom {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .scroll-top {
    display: none;
  }
}

/* Generic pages (about/contact/privacy/articles) */
.page {
  padding: 120px 0 60px;
}
.page h1 {
  font-family: "Dela Gothic One", "Manrope", sans-serif;
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.page h2 {
  font-family: "Oswald", "Manrope", sans-serif;
  font-size: 22px;
  margin: 22px 0 10px;
}
.page p,
.page li {
  color: #333333;
}
.page a {
  color: #333333;
  font-weight: 600;
}
.page a:hover {
  color: #000000;
  text-decoration: underline;
}
.page a:visited {
  color: #333333;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
  padding: 1rem 0;
}

.about-main {
  min-width: 0;
}

.about-intro {
  margin-bottom: 8px;
}

.about-intro p {
  font-size: 20px;
  line-height: 1.7;
}

.about-sidebar {
  padding: 18px;
}

.about-sidebar-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin-bottom: 16px;
}

.about-sidebar-label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777777;
}

.about-sidebar-name {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.15;
}

.about-sidebar-role {
  margin: 0 0 12px;
  color: #666666;
  line-height: 1.6;
  font-size: 14px;
}

.about-sidebar-text {
  margin: 0;
  color: #666666;
  line-height: 1.6;
  font-size: 14px;
  opacity: 0.72;
}

/* --- Test Banner (Home Page) --- */
.test-banner-section {
  padding-top: 20px;
}

.test-banner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 56px;
  padding: 80px 64px !important;
  background: #fcfcfc;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}

.test-banner-content {
  flex: 1;
  max-width: 600px;
}

.test-banner-title {
  font-family: "Dela Gothic One", "Manrope", sans-serif;
  font-size: 28px;
  color: #222;
  margin-bottom: 16px;
  margin-top: 0;
  line-height: 1.2;
  max-width: 400px;
}

.test-banner-text {
  font-size: 16px;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.6;
}

.test-banner-btn {
  display: inline-block;
  font-size: 16px;
  padding: 14px 32px;
}

.test-banner-image-wrapper {
  flex-shrink: 0;
}

.test-banner-image {
  width: 200px;
  height: auto;
  border-radius: 12px;
  display: block;
}

@media (max-width: 768px) {
  .test-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px !important;
    gap: 32px;
  }
  
  .test-banner-title {
    font-size: 24px;
    max-width: none;
  }
  
  .test-banner-image {
    width: 180px;
    margin: 0 auto;
  }
}

/* --- Tools Library Page --- */
.tools-page {
  padding-top: 120px;
  padding-bottom: 80px;
}

.tools-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
}

.tools-intro {
  font-size: 18px;
  color: #555;
  margin-bottom: 32px;
  line-height: 1.6;
}

.tools-search-wrapper {
  position: relative;
  max-width: 500px;
  margin: 0 auto 24px;
}

.tools-search-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  font-size: 16px;
  border: 1px solid #d0d0d0;
  border-radius: 14px;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tools-search-input:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.tools-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.5;
  pointer-events: none;
}

.tools-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-btn {
  background: #fff;
  border: 1px solid #d0d0d0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-btn:hover {
  background: #f0f0f0;
  border-color: #999;
}

.filter-btn.active {
  background: #222;
  color: #fff;
  border-color: #222;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.tool-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: #f7f7f7;
  padding: 4px;
}

.tool-header-text {
  display: flex;
  flex-direction: column;
  margin-top: -13px;
}

.tool-title {
  font-family: "Oswald", "Manrope", sans-serif;
  font-size: 22px;
  color: #222;
  margin: 0;
  line-height: 1.1;
}

.tool-category {
  font-size: 11px;
  color: #888;
  font-weight: 600;
  margin-top: -7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tool-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-tags li {
  font-size: 12px;
  color: #666;
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.tool-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.tool-link {
  display: inline-block;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  border-top: 1px solid #eee;
  padding-top: 16px;
  transition: color 0.2s;
}

.tool-link:hover {
  color: #666;
  text-decoration: none;
}

.tools-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed #ddd;
}

.tools-empty p {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .tools-header h1 {
    font-size: 28px;
  }
  .tools-intro {
    font-size: 16px;
  }
  .tools-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .filter-btn {
    white-space: nowrap;
  }
}

/* --- Test Page Styles --- */
.test-page {
  padding-top: 90px;
}

.test-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0;
}

.test-start {
  text-align: center;
}

.test-start-image-wrapper {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.test-start-image {
  width: 100%;
  max-width: 240px;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}

.test-start h1 {
  font-family: "Dela Gothic One", "Manrope", sans-serif;
  font-size: 32px;
  color: #222;
  margin-bottom: 20px;
  line-height: 1.2;
}

.test-intro {
  font-size: 18px;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.6;
}

.test-time-note {
  margin-top: 12px;
  font-size: 14px;
  color: #777;
  font-weight: 500;
}

.test-disclaimer {
  display: inline-block;
  font-size: 14px;
  text-align: left;
  background: rgba(231, 76, 60, 0.05);
  border-left: 4px solid #e74c3c;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 32px;
}

.btn-start-test {
  font-size: 18px;
  padding: 18px 48px;
  width: 100%;
  max-width: 320px;
  display: inline-block;
}

.test-progress {
  display: none;
}

.progress-text {
  text-align: center;
  font-size: 16px;
  color: #777;
  font-weight: 600;
  margin-bottom: 24px;
}

.question-title {
  font-family: "Oswald", "Manrope", sans-serif;
  font-size: 24px;
  color: #222;
  margin-bottom: 32px;
  line-height: 1.4;
  text-align: center;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  color: #333;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .option-btn:hover {
    background: #fff;
    border-color: #333;
    transform: translateY(-1px);
  }
}

.option-btn:active {
  background: #fff;
  border-color: #333;
}

.test-questions-wrapper {
  transition: opacity 0.25s ease;
  opacity: 1;
}

.test-questions-wrapper.fade-out {
  opacity: 0;
}

.test-results {
  text-align: center;
}

.test-results h2 {
  font-family: "Dela Gothic One", "Manrope", sans-serif;
  font-size: 28px;
  color: #222;
  margin-bottom: 16px;
  margin-top: 0;
  line-height: 1.2;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Score Visual Component */
.score-visual {
  background: transparent;
  padding: 0 0 24px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.score-label {
  font-size: 14px;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.battery-container {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: transparent;
}

.battery-cell {
  width: 24px;
  height: 40px;
  border-radius: 6px;
  background: #e0e0e0;
  transition: background-color 0.5s ease;
}

.battery-cell.filled-low {
  background: #2ecc71; /* Green */
}

.battery-cell.filled-medium {
  background: #f1c40f; /* Yellow */
}

.battery-cell.filled-high {
  background: #e74c3c; /* Red */
}

.score-number {
  font-family: "Oswald", "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.test-results p {
  font-size: 18px;
  color: #555;
  margin-bottom: 32px;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #333;
  color: #fff !important;
  border: none;
}

.btn-primary:hover {
  background: #000;
}

.btn-secondary {
  background: transparent;
  color: #333 !important;
  border: 1px solid #333;
}

.btn-secondary:hover {
  background: #f0f0f0;
}

@media (max-width: 600px) {
  .test-container {
    padding: 24px;
  }
  .test-start h1 {
    font-size: 24px;
    margin-bottom: 16px;
  }
  .test-intro {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .test-start-image {
    max-width: 140px;
    margin-bottom: -16px;
  }
  .test-disclaimer {
    margin-bottom: 24px;
  }
  .btn-start-test {
    padding: 16px 24px;
    font-size: 16px;
  }
  .test-time-note {
    margin-top: 16px;
  }
  .battery-cell {
    width: 18px;
    height: 32px;
  }
  .question-title {
    font-size: 20px;
  }
  .option-btn {
    padding: 14px 16px;
    font-size: 15px;
  }
  .result-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .result-actions .btn-secondary {
    padding: 12px;
    font-size: 13px;
    flex: 0 0 auto;
    text-align: center;
  }
  .result-actions .btn-primary {
    padding: 12px;
    font-size: 14px;
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (max-width: 880px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-intro p {
    font-size: 18px;
  }
}

/* Recommended Card */
.recommended-card {
  transition: transform 0.2s ease;
}
.recommended-card:hover {
  transform: scale(1.03);
  text-decoration: none !important;
}
.recommended-card img {
  transition: transform 0.4s ease;
}
.recommended-card:hover img {
  transform: scale(1.05);
}

/* Partner Card */
.partner-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06) !important;
  background: #ffffff !important;
}

.card {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 18px;
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.form label {
  font-weight: 600;
  font-size: 13px;
}
.form input,
.form textarea {
  width: 100%;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  font-size: 14px;
  padding: 12px 14px;
  font-family: inherit;
}

/* Admin UI */
.admin-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000; /* above site header */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-bar-left,
.admin-bar-right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: #ffffff;
  color: #222222;
}
.page a.admin-btn,
.page a.admin-btn:visited {
  color: #222222;
  text-decoration: none;
}
.admin-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
}
.admin-btn--primary {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}
.page a.admin-btn--primary,
.page a.admin-btn--primary:visited {
  color: #ffffff;
}
.admin-btn--primary:hover {
  background: #000000;
}
.admin-btn--danger {
  background: #7a2222;
  border-color: #7a2222;
  color: #ffffff;
}
.page a.admin-btn--danger,
.page a.admin-btn--danger:visited {
  color: #ffffff;
}
.admin-btn--danger:hover {
  background: #611a1a;
}
.admin-btn--ghost {
  background: transparent;
}

/* Contact page layout (ported from OLD Next.js) */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 65fr 35fr;
    align-items: start;
    gap: 3rem;
  }
}
.contact-right {
  padding: 1rem 0;
  font-size: 1.1rem;
}

/* Cookie banner (ported from OLD) */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 16px 0;
  z-index: 9999;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.cookie-banner-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-banner-text {
  flex: 1;
  min-width: 280px;
}
.cookie-banner-text p {
  margin: 0;
  font-size: 14px;
  color: #333;
}
.cookie-banner-text a {
  text-decoration: underline;
}
.cookie-banner-btn {
  white-space: nowrap;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #111;
  color: #fff;
  cursor: pointer;
}
.cookie-banner-btn:hover {
  background: #000;
}

/* Editor dock (admin edit) */
.editor-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2500;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}
.editor-dock .container {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 20px;
}
.editor-dock-spacer {
  height: 64px; /* keep page content above fixed dock */
}

/* Article List Card */
.article-list-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.article-list-img {
  flex-shrink: 0;
  width: 220px;
}
.article-list-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.article-list-content {
  flex: 1;
}

@media (max-width: 640px) {
  .article-list-card {
    flex-direction: column;
  }
  .article-list-img {
    width: 100%;
  }
  .article-list-img img {
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

.admin-grid {
  display: grid;
  gap: 12px;
}
.admin-grid--2 {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 880px) {
  .admin-grid--2 {
    grid-template-columns: 1fr;
  }
}

.admin-field {
  display: grid;
  gap: 6px;
}
.admin-field label {
  font-weight: 700;
  font-size: 13px;
}
.admin-field input,
.admin-field textarea {
  width: 100%;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  font-size: 14px;
  padding: 12px 14px;
  font-family: inherit;
  background: #ffffff;
}
.admin-field textarea {
  min-height: 90px;
  resize: vertical;
}

.admin-list {
  display: grid;
  gap: 12px;
}
.admin-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.admin-item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-item-title {
  font-weight: 800;
}
.form textarea {
  min-height: 140px;
  resize: vertical;
}
.form button {
  background: #333333;
  color: #ffffff;
  border: none;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  width: fit-content;
}
.form button:hover {
  background: #000000;
}

.note {
  font-size: 12px;
  color: #666666;
}

/* Smooth scrolling and anchor offset */
html {
  scroll-behavior: smooth;
}
.main-content,
.section,
.footer {
  scroll-margin-top: 96px;
}
@media (max-width: 768px) {
  .navbar {
    position: relative;
    gap: 16px;
  }
  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }
  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-menu a {
    display: block;
    width: 100%;
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 15px;
  }
  .nav-menu a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #111111;
  }
  .nav-menu a::after {
    display: none;
  }
  .navbar.navbar-menu-open .nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .main-content,
  .section,
  .footer {
    scroll-margin-top: 120px;
  }
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
    margin-top: 8px;
  }
  .hero-right {
    align-items: center;
  }
  .main-content > .container.hero-empty {
    order: -1;
  }
  .hero-empty {
    flex: 0 0 auto;
    margin-bottom: 20px;
  }
  .main-content {
    justify-content: center;
  }
  .help-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .section {
    padding: 40px 0;
  }
  .section-title {
    font-size: 28px;
  }
}

/* Tools Promo Section */
.tools-promo-section {
  padding: 64px 0;
}

.tools-promo-card {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 460px;
}

.tools-promo-content {
  flex: 1;
  padding: 48px;
}

.tools-promo-title {
  font-family: "Dela Gothic One", "Manrope", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: #333333;
  margin-bottom: 24px;
}

.animated-word {
  display: inline-block;
  color: #666;
  border-bottom: 4px solid #eaeaea;
  padding-bottom: 2px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tools-promo-text {
  font-size: 18px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 32px;
  max-width: 480px;
}

.tools-promo-btn {
  display: inline-flex;
  font-size: 16px;
  padding: 16px 32px;
}

.tools-promo-visual {
  flex: 1;
  background: transparent;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tools-grid-promo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tool-icon-box {
  width: 100px;
  height: 100px;
  background: #ffffff;
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.tool-icon-box:hover {
  transform: scale(1.05) translateY(-5px);
  z-index: 10;
}

.tool-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

@keyframes floatPulse {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.02); }
}

@media (max-width: 800px) {
  .tools-promo-card {
    flex-direction: column;
    height: auto;
  }
  .tools-promo-content {
    padding: 32px 20px;
    text-align: center;
  }
  .tools-promo-text {
    margin: 0 auto 24px auto;
  }
  .tools-promo-visual {
    width: 100%;
    min-height: 280px;
    padding: 40px 0;
  }
  .tools-grid-promo {
    gap: 16px;
  }
  .tool-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    padding: 10px;
  }
}
