/*
Theme Name: Custom Site
Theme URI: https://example.com/custom-site
Author: Your Name
Author URI: https://example.com
Description: Modern custom theme with professional design and primary navigation (首页/热门信息/新闻/帮助).
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: custom-site
*/

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #00a0e9;
  --primary-dark: #0088c7;
  --primary-light: #33b3ed;
  --bg-hero: #00a0e9;
  --bg-page: #eef5ff;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  background: #ffffff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: #ffffff;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

/* ============================================
     Header & Navigation
     ============================================ */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  border-top: none;
  margin-top: 0;
}

.site-header::before {
  display: none;
}

.site-header::after {
  display: none;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.branding {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.branding a {
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.branding a:hover {
  color: var(--primary-color);
}

.site-nav {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0;
}

.site-nav li a {
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.site-nav li a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
  border-radius: 2px;
}

.site-nav li a:hover,
.site-nav li.current-menu-item>a,
.site-nav li.current-page-ancestor>a {
  color: var(--primary-color);
  background: rgba(0, 160, 233, 0.08);
}

.site-nav li a:hover::after,
.site-nav li.current-menu-item>a::after,
.site-nav li.current-page-ancestor>a::after {
  transform: translateX(-50%) scaleX(1);
}

/* small header link for archives */
.exhibitions-link {
  color: var(--text-dark);
  padding: 10px 14px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 600;
  background: transparent;
  transition: var(--transition);
}

.exhibitions-link:hover {
  color: var(--primary-color);
  background: rgba(0, 160, 233, 0.06);
  transform: translateY(-2px);
}

/* header nav grouping to keep extra links next to main menu */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-links .exhibitions-link,
.header-links .help-link {
  margin: 0;
  padding-left: 8px;
  padding-right: 8px;
}

/* help header link */
.help-link {
  color: var(--text-dark);
  padding: 10px 14px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 600;
  background: transparent;
  transition: var(--transition);
}

.help-link:hover {
  color: var(--primary-color);
  background: rgba(0, 160, 233, 0.06);
  transform: translateY(-2px);
}

/* layout helpers: keep nav centered and extra links on one line */
.center-nav-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.site-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.header-container {
  justify-content: space-between;
}

/* Final header layout: left brand and centered primary menu */
.branding {
  flex: 0 0 auto;
}

.center-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.center-nav .site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .center-nav {
    justify-content: flex-end;
  }
}

/* Hide the duplicate header links on desktop; keep visible on small screens */
.right-links {
  display: none !important;
}

@media (max-width: 640px) {
  .right-links {
    display: flex !important;
  }
}

/* ============================================
     Hero Section
     ============================================ */
.hero-section {
  background: var(--bg-hero) !important;
  background-image: none !important;
  padding: 96px 24px 48px;
  position: relative;
  color: #f3f7fb;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  /* allocate a flexible left column for text and a fixed column for the phone mock */
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  display: grid;
  place-items: center;
  font-size: 32px;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 4px;
  font-weight: 500;
}

.brand-title {
  font-size: 3rem;
  font-weight: 800;
  color: #f8fbff;
  margin: 0;
  letter-spacing: 1px;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

/* ===== New: hero top layout to match provided image ===== */
.hero-top {
  text-align: center;
  padding: 28px 12px 8px;
  color: var(--white);
  max-width: 1200px;
  margin: 0 auto 12px;
  display: block;
}

.hero-top-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.logo-mark.logo-large {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
}

.logo-mark.logo-large img {
  width: auto;
  height: 80px;
  max-width: none;
  display: block;
}

.hero-top .brand-title {
  font-size: 80px;
  color: var(--white);
  margin: 0;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  display: block;
}

.hero-subtitle {
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.98);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: 0.6px;
  max-width: 1920px;
  line-height: 1.8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  display: block;
  text-align: center;
}

@media (max-width: 980px) {
  .hero-top .brand-title {
    font-size: 46px;
  }

  .logo-mark.logo-large {
    width: 52px;
    height: 52px;
  }

  .hero-subtitle {
    font-size: 22px;
    max-width: 100%;
    padding: 0 12px;
  }

  .logo-mark.logo-large img {
    height: 46px;
  }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* hero feature placement */
.hero-feature {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0 24px;
  box-sizing: border-box;
}

/* make hero-feature span both columns when it's a direct child of the grid */
.hero-container>.hero-feature {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: 28px;
}

@media (min-width: 1200px) {
  .hero-feature {
    margin-top: 48px;
    padding-left: 160px;
    padding-right: 160px;
  }

  .hero-container>.hero-feature {
    padding-left: 0;
    padding-right: 0;
  }
}

/* When the feature is placed as its own row below the hero, center it */
.hero-feature-row {
  /* allow the inner rectangle to be wider than previous site container */
  max-width: none;
  width: 100%;
  margin: 56px auto 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  position: relative;
  /* enable absolute/relative centering of inner element */
}

/* Ensure the direct .hero-feature inside the row doesn't add extra horizontal padding */
.hero-feature-row>.hero-feature {
  padding-left: 0;
  padding-right: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.feature-inner {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  position: relative;
  background: linear-gradient(180deg, #ffffff, #ffffff);
  border-radius: 24px;
  padding: 44px 56px;
  /* bigger, more prominent */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: transform .28s ease, box-shadow .28s ease;
  z-index: 2;
  margin-left: 0;
  /* align with hero text */
}

.feature-inner:hover {
  transform: translateY(-6px);
  box-shadow: none;
}

.feature-inner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  max-width: 1200px;
}

/* make feature card visually align with hero text on wide screens */
@media (min-width: 1100px) {
  .hero-container {
    grid-template-columns: 1fr 420px;
  }

  .hero-feature {
    padding-right: 40px;
    /* keep some gap to phone mock */
  }

  .feature-inner {
    padding-left: 56px;
    padding-right: 56px;
  }
}

@media (max-width: 980px) {
  .feature-inner {
    padding: 20px;
    border-radius: 16px;
    box-shadow: none;
  }
}

/* Reset any old absolute centering and let margin:auto handle centering */
.hero-feature-row .feature-inner {
  margin-left: auto;
  margin-right: auto;
  position: static;
  left: auto;
  transform: none;
  background: #ffffff;
  padding: 32px 40px;
  border-radius: 24px;
  box-shadow: none !important;
}

@media (max-width: 980px) {
  .hero-feature-row .feature-inner {
    padding: 20px;
    border-radius: 16px;
    box-shadow: none !important;
  }
}

.hero-visual {
  margin-bottom: 48px;
}

.hero-visual-inner {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 80px;
  row-gap: 40px;
  align-items: center;
  justify-content: center;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-visual .hero-visual-inner.is-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 980px) {
  .hero-visual .hero-visual-inner.is-inline {
    flex-direction: column;
    gap: 32px;
  }
}

.hero-visual .download-btn {
  background: linear-gradient(180deg, #ff4d4f, #d9363e) !important;
  color: #fff !important;
  padding: 18px 28px;
  min-width: 260px;
  border-radius: 18px;
  font-size: 1.15rem;
  gap: 14px;
  box-shadow: 0 16px 32px rgba(217, 54, 62, 0.26);
  justify-content: center;
}

.hero-visual .download-btn .icon {
  background: transparent;
  color: #fff;
  width: auto;
  height: auto;
  border-radius: 0;
  font-size: 26px;
  padding: 0;
  box-shadow: none;
}

@media (max-width: 640px) {
  .hero-visual .download-btn {
    min-width: 220px;
    padding: 16px 24px;
    font-size: 1.05rem;
    gap: 12px;
  }

  .hero-visual .download-btn .icon {
    width: auto;
    height: auto;
  }
}

/* Download section styling */
.download-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  background: linear-gradient(180deg, #ff4d4f, #d9363e);
  color: #fff;
  border: none;
  box-shadow: 0 12px 24px rgba(217, 54, 62, 0.24);
  min-width: 240px;
  text-align: center;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(217, 54, 62, 0.32);
}

.download-btn:active {
  transform: translateY(0);
}

.download-btn .icon {
  background: transparent;
  color: #fff;
  width: auto;
  height: auto;
  border-radius: 0;
  display: inline-grid;
  place-items: center;
  font-size: 22px;
  padding: 0;
  box-shadow: none;
}

/* Phone section styling */
.phone-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mock.large {
  max-width: 420px;
  width: 100%;
  margin: 0;
  box-shadow: 0 30px 60px rgba(3, 105, 161, 0.12);
  border-radius: 24px;
}

.phone-mock.large img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(3, 105, 161, 0.08);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .hero-visual-inner {
    column-gap: 60px;
    row-gap: 32px;
  }

  .phone-mock.large {
    max-width: 380px;
  }
}

@media (max-width: 980px) {
  .hero-visual-inner {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 40px;
    text-align: center;
    justify-items: center;
  }

  .download-section,
  .phone-section {
    align-self: center;
  }

  .phone-mock.large {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .hero-visual-inner {
    gap: 32px;
  }

  .download-btn {
    min-width: 200px;
    padding: 14px 20px;
    font-size: 1rem;
  }

  .phone-mock.large {
    max-width: 280px;
  }
}

/* Download section styles are now defined in the new hero-visual section above */

.phone-mock {
  /* remove the white bezel while keeping the mock size */
  background: transparent;
  border-radius: 0;
  width: 100%;
  max-width: 380px;
  box-shadow: none;
  padding: 0;
  position: relative;
  margin: 0 auto;
  /* center inside column */
  align-self: center;
}

.phone-mock.large {
  max-width: 420px;
}

.phone-mock.small {
  max-width: 260px;
}

.phone-mock {
  /* allow full image to be visible so it's not cropped; keeps container size */
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mock img {
  /* show full image (no CSS cropping) while keeping approximate displayed size */
  display: block;
  width: auto;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
  transform: none;
  transition: transform 220ms ease;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(3, 105, 161, 0.06);
}

/* Restore responsive column behavior for smaller screens */
@media (max-width: 980px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .phone-mock {
    margin-left: 0;
    max-width: 360px;
    margin: 0 auto;
  }
}

.mock-screen {
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  border-radius: 24px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  min-height: 360px;
}

.mock-header {
  height: 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
  margin-bottom: 14px;
}

.mock-app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.mock-app-grid div {
  background: rgba(0, 160, 233, 0.14);
  border-radius: 8px;
  height: 32px;
}

.mock-list {
  display: grid;
  gap: 8px;
}

.mock-list span {
  display: block;
  height: 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
}

.mock-list.tight span {
  height: 12px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ============================================
     Main Content Area
     ============================================ */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.home .site-main {
  padding-bottom: 12px;
}

.content-section {
  margin-bottom: 80px;
}

.home .site-main .content-section:last-child {
  margin-bottom: 8px;
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-kicker {
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin: 0 auto;
  max-width: 760px;
}

/* ============================================
     Cards & Content Blocks
     ============================================ */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.card p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Grid Layout */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.phone-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
}

.phone-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.phone-caption {
  margin-top: 16px;
  color: var(--text-light);
  font-weight: 600;
}

.section-outsource {
  background: #00a0e9;
  padding: 56px 40px;
  border-radius: 24px;
  border: none;
  box-shadow: none;
}

.section-outsource .section-heading,
.section-outsource .section-kicker,
.section-outsource .section-title,
.section-outsource .section-subtitle {
  color: #f8fbff;
}

.section-outsource .phone-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.section-outsource .phone-card:hover {
  box-shadow: none;
  transform: none;
}

.section-outsource .phone-caption {
  color: #f1f7ff;
}

.section-double {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.double-card {
  border-radius: 20px;
  padding: 16px;
  color: #f8fbff;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: none;
  background: transparent;
  border: none;
  align-items: center;
  text-align: center;
}

.double-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  color: #f8fbff;
}

.double-card p {
  color: #f1f7ff;
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
}

.double-card.primary {
  background: transparent;
  color: #f8fbff;
}

.double-card.muted {
  background: transparent;
  color: #f8fbff;
}

.double-card.muted p {
  color: #f1f7ff;
}

.double-card .phone-mock {
  align-self: center;
  margin-top: 12px;
}

/* ============================================
     Footer
     ============================================ */
.site-footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.8);
  padding: 0;
  margin-top: 0;
  width: 100%;
}

.footer-separator {
  background: #00a0e9;
  height: 4px;
  width: 100%;
  display: block;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  background: #1a1a1a;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
  color: #ffffff;
}

.site-footer a {
  color: var(--primary-light);
}

.site-footer a:hover {
  color: var(--white);
}

/* footer grid layout */
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  padding: 0 12px;
}

.footer-brand .footer-brand-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .footer-logo-img {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 10px;
}

.footer-brand .footer-brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}

.footer-nav-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding-left: 28px;
  padding-right: 28px;
  text-align: center;
  white-space: normal;
  overflow: visible;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  white-space: normal;
}

.footer-nav-list li a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-legal {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  margin-top: 0;
  white-space: normal;
}

.footer-legal-text {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  text-align: center;
}

.footer-legal-text span {
  display: inline-block;
}

.footer-right {
  text-align: right;
  min-width: 160px;
  white-space: normal;
}

.footer-site-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 6px;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

@media (max-width:980px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .footer-nav-wrap {
    display: block;
    border-left: none;
    border-right: none;
    padding: 0;
    overflow: visible;
  }

  .footer-nav-list {
    flex-wrap: wrap;
    gap: 12px;
    white-space: normal;
    justify-content: center;
  }

  .footer-legal-text {
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }

  .footer-legal-text span {
    display: block;
    width: 100%;
  }

  .footer-right {
    text-align: center;
    white-space: normal;
  }
}

/* ============================================
     Animations
     ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
     Responsive Design
     ============================================ */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 16px 24px;
  }

  .branding {
    margin-bottom: 16px;
    font-size: 1.25rem;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .site-nav li a {
    padding: 8px 16px;
    font-size: 0.95rem;
  }

  .hero-section {
    padding: 64px 20px 32px;
  }

  .brand-title {
    font-size: 2.4rem;
  }

  .site-main {
    padding: 48px 24px;
  }

  .section-title {
    font-size: 2rem;
  }

  .card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

/* =========================================================
     Page-specific styling (ID: 248) – full-width blue background
     ========================================================= */
.page-id-248,
.page-id-248 .site,
.page-id-248 body {
  background: #00a0e9;
}

.page-id-248 .site-main {
  max-width: none;
  padding: 0;
}

.page-id-248 .entry-content {
  margin: 0;
  padding: 0;
}

/* Allow Gutenberg alignfull/alignwide to truly stretch */
.page-id-248 .alignfull,
.page-id-248 .alignwide {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ============================================
     Help center
     ============================================ */
#help-center {
  width: 100%;
  padding: 48px 0 56px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

#help-center .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-family: "Inter", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #071232;
}

.help-hero {
  margin-bottom: 18px;
}

.help-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0284c7;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 13px;
  text-transform: uppercase;
}

.help-hero h1 {
  margin: 6px 0 6px;
  font-size: 30px;
  font-weight: 800;
}

.help-hero .subtitle {
  margin: 0;
  color: #6b7280;
}

.help-layout {
  display: block;
}

.help-catalog {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.08);
  padding: 18px 16px;
  position: relative;
  top: auto;
  max-width: none;
  width: 100%;
}

.catalog-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog-group {
  padding: 10px 6px 6px;
  border-radius: 12px;
  background: transparent;
}

.catalog-parent {
  font-weight: 800;
  color: #0b1b3a;
  margin: 0 0 10px;
  font-size: 22px;
}

.catalog-head h2 {
  margin: 10px 0 6px;
  font-size: 24px;
  font-weight: 900;
}
.catalog-title-main {
  margin: 6px 0 0;
  font-size: 30px;
  font-weight: 900;
  color: #0b1b3a;
  letter-spacing: 0.2px;
}

.catalog-head p {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
  font-size: 15px;
}

.catalog-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #dbeafe;
  color: #0f172a;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.catalog-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog-group .catalog-list {
  margin-top: 8px;
}

.catalog-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid rgba(3, 105, 161, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: #0f172a;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  font-size: 16px;
}

.catalog-list li a:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 28px rgba(3, 105, 161, 0.12);
  border-color: rgba(3, 105, 161, 0.35);
}

.catalog-index {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(180deg, #0ea5e9, #0284c7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex: 0 0 auto;
}

.catalog-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.catalog-title {
  font-weight: 700;
  color: #0b1b3a;
  line-height: 1.4;
}

.catalog-date {
  color: #6b7280;
  font-size: 12px;
}

.catalog-arrow {
  margin-left: auto;
  color: #0f172a;
  font-weight: 700;
}

.empty-catalog {
  margin: 12px 0 0;
  color: #6b7280;
}

#help-center .help-card-grid {
  display: none;
}

.help-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.help-section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0b1b3a;
}

.help-section-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-list-item {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.08);
  overflow: hidden;
}

.help-list-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

.help-list-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(3, 105, 161, 0.12);
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.help-list-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.help-list-title {
  font-weight: 800;
  font-size: 17px;
  color: #0b1b3a;
  line-height: 1.4;
}

.help-list-date {
  color: #6b7280;
  font-size: 13px;
}

.help-list-excerpt {
  margin: 6px 0 0;
  color: #4b5563;
  line-height: 1.6;
  grid-column: 1 / -1;
}

.help-list-arrow {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e0f4ff;
  color: #0369a1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.help-pagination {
  margin-top: 12px !important;
}

@media (max-width: 1180px) {
  .help-catalog {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .catalog-list li a {
    align-items: flex-start;
  }

  .catalog-parent {
    margin-bottom: 6px;
  }

  .catalog-arrow {
    display: none;
  }

  .catalog-index {
    width: 30px;
    height: 30px;
  }

  .help-list-link {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }

  .help-list-arrow {
    margin-top: 6px;
    justify-self: flex-start;
  }
}

/* ============================================
     Exhibitions styles (migrated from page-exhibitions.php)
     ============================================ */
#exhibitions-root {
  width: 100%;
  padding: 40px 0;
  background: transparent;
}

#exhibitions-root .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-family: "Inter", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #071232;
}

#exhibitions-root .page-header {
  text-align: center;
  margin-bottom: 24px;
}

#exhibitions-root .page-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

#exhibitions-root .page-header p {
  color: #6b7280;
  margin: 8px 0 0;
}

.exhibitions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px;
}

.exhibition-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: transform .12s ease, box-shadow .12s ease;
  padding: 0;
}

.exhibition-card .media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 100%;
}

.exhibition-card .media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform .22s ease !important;
  border-radius: 0 !important;
  margin: 0 auto;
}

/* placeholder svg sizing */
.placeholder-svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
}

/* Ensure thumbnails fill the card area */
#exhibitions-root .exhibitions-grid img,
#exhibitions-root .exhibition-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exhibition-card .body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.exhibition-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.exhibition-card .meta {
  color: #6b7280;
  font-size: 13px;
  margin-top: 4px;
}

.exhibition-card p.excerpt {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  height: 68px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.exhibition-card .cta {
  padding: 14px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.exhibition-card .cta .btn {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(180deg, #0b84a5, #0369a1);
  color: #fff;
  border: none;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(3, 105, 161, 0.12);
}

.exhibition-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.12);
}

/* make title links more prominent */
.exhibition-card h3 a {
  color: #0369a1;
  text-decoration: none;
}

.exhibition-card h3 a:hover {
  text-decoration: underline;
  color: #024b63;
}

/* Single exhibition page */
#exhibition-single {
  width: 100%;
  padding: 48px 0;
  background: transparent;
}

#exhibition-single .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

#exhibition-single .back-link {
  color: #374151;
  margin-bottom: 18px;
  display: inline-block;
}

#exhibition-single .single-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

#exhibition-single .single-hero .featured {
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

#exhibition-single .single-hero .featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

#exhibition-single h1 {
  font-size: 28px;
  margin: 0 0 8px;
  font-weight: 800;
  color: #071232;
}

#exhibition-single .exhibition-meta {
  color: #6b7280;
  margin-bottom: 16px;
  font-size: 14px;
}

#exhibition-single .exhibition-content {
  color: #334155;
  line-height: 1.8;
  font-size: 16px;
}

@media (max-width:980px) {
  .exhibitions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #exhibition-single .single-hero .featured {
    height: 320px;
  }
}

@media (max-width:640px) {
  .exhibitions-grid {
    grid-template-columns: 1fr;
  }

  .exhibition-card .media {
    height: 140px
  }

  #exhibition-single .single-hero .featured {
    height: 220px;
  }
}

/* QR / App download / official accounts section */
.qr-section {
  background: #00a0e9;
  padding: 56px 24px 72px;
  color: #f8fbff;
}

.home .qr-section {
  margin-top: 0;
  padding-top: 64px;
}

.qr-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  background: transparent;
  padding: 0 16px;
  border-radius: 0;
  box-shadow: none;
  transition: none;
}

.qr-intro {
  text-align: left;
}

.qr-intro h2 {
  margin: 0 0 10px;
  font-size: 2.25rem;
  color: #f8fbff;
  letter-spacing: 0.4px;
}

.qr-intro p {
  margin: 0 0 16px;
  color: rgba(248, 251, 255, 0.86);
  font-size: 1.05rem;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.qr-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  min-height: 260px;
  justify-content: space-between;
  position: relative;
  color: #f8fbff;
}

.qr-image {
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  align-self: center;
}

.qr-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qr-label {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  align-self: center;
  margin-top: 10px;
  letter-spacing: 0.2px;
}

/* make the qr container look like the screenshot: white inner surface */
.qr-section {
  position: relative;
}

/* remove floating white container; keep simple center content */
.qr-section .qr-container {
  margin-top: 0;
}

.qr-section .qr-container:hover {
  transform: none;
}

@media (min-width: 1200px) {
  .qr-section .qr-container {
    width: 100%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
  }

  .qr-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }

  .qr-card {
    min-height: 320px;
  }

  .qr-image {
    width: 220px;
    height: 220px;
    padding: 12px;
  }
}

.qr-section::before {
  display: none;
}

.qr-intro {
  padding-bottom: 6px;
}

.qr-intro h2 {
  font-size: 2.3rem;
  color: #f8fbff;
  margin-bottom: 6px;
  font-weight: 800;
}

.qr-intro p {
  color: rgba(248, 251, 255, 0.82);
  font-size: 1rem;
  margin-bottom: 8px;
}

@media (max-width:980px) {
  .qr-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

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

  .hero-container {
    grid-template-columns: 1fr;
  }

  .brand-title {
    font-size: 2rem;
  }
}

/* Feature strip: display provided transparent PNG on a white rounded card */
.feature-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-top: 18px;
  padding: 0 12px;
}

.feature-inner {
  width: 100%;
  display: block;
  box-sizing: border-box;
  position: relative;
  background: linear-gradient(180deg, #ffffff, #ffffff);
  border-radius: 16px;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-inner::after {
  /* small accent bar under the image to add polish */
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  width: 84px;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(0, 160, 233, 0.95), rgba(3, 105, 161, 0.9));
  box-shadow: 0 6px 20px rgba(3, 105, 161, 0.08);
}

.feature-inner img {
  display: block;
  width: 92%;
  max-width: 980px;
  height: auto;
  object-fit: contain;
}

@media (min-width: 1200px) {
  .feature-strip {
    margin-top: 32px;
  }

  .feature-inner {
    padding: 28px 36px;
  }
}

@media (max-width: 980px) {
  .feature-inner {
    padding: 14px 16px;
  }

  .feature-strip {
    margin-top: 12px;
  }
}

/* App download area (below QR section) */
.app-download {
  background: transparent;
  padding: 36px 24px 64px;
}

.app-download .qr-container {
  align-items: center;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: center;
}

.app-download .qr-intro {
  text-align: center;
}

.download-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  text-align: center;
}

.download-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Ensure app-download area buttons stack and use red style */
.app-download .download-buttons {
  flex-direction: column !important;
  gap: 14px !important;
  align-items: center !important;
}

.app-download .download-btn {
  background: linear-gradient(180deg, #ff4d4f, #d9363e) !important;
  color: #fff !important;
  border: none !important;
  width: 260px !important;
  padding: 16px 24px !important;
  box-shadow: 0 12px 28px rgba(217, 54, 62, 0.22) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  font-size: 1.15rem !important;
  gap: 16px !important;
}

.app-download .download-btn .icon {
  background: transparent !important;
  color: #fff !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  font-size: 24px !important;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.download-btn .icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  font-size: 18px;
}

.download-btn-apple {
  background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.download-btn-android {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}

.download-btn:hover {
  transform: translateY(-3px);
}

.contact-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 14px 18px 14px 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 160, 233, 0.16);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  text-align: left;
  z-index: 1050;
  color: #0f172a;
  margin: 0;
  width: auto;
  max-width: 420px;
  transition: bottom 0.18s ease, box-shadow 0.2s ease;
}

.contact-text {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.4;
  white-space: normal;
  max-width: 170px;
  text-align: center;
}

.contact-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  color: #4b5563;
}

.contact-phone {
  color: var(--primary-dark);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.contact-phone:hover {
  color: #005c8a;
}

.contact-block.contact-block--lift {
  bottom: 140px;
}

@media (max-width: 640px) {
  .contact-block {
    position: static;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 360px;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-top: 14px;
  }

  .contact-text {
    white-space: normal;
    text-align: left;
  }

  .contact-right {
    width: 100%;
  }

  .contact-icon {
    flex-shrink: 0;
  }
}

.download-btn-apple {
  background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-md);
  padding-left: 16px;
  padding-right: 20px;
}

.download-btn-apple .icon {
  background: #fff;
  color: var(--primary-color);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 20px;
  display: inline-grid;
  place-items: center;
}

.download-btn-android {
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding-left: 14px;
  padding-right: 18px;
}

.download-btn-android .icon {
  background: transparent;
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 18px;
  display: inline-grid;
  place-items: center;
}

.contact-phone::before {
  content: none;
}

@media (max-width:980px) {
  .download-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .contact-block {
    right: 16px;
    bottom: 20px;
    align-items: center;
    width: auto;
    max-width: calc(100% - 32px);
  }
}

/* ===== Overrides: enlarge feature image and align card to hero text ===== */
.hero-lead {
  max-width: 720px;
  /* constrain text width so feature card aligns to it */
}

.hero-feature {
  width: 100%;
  display: flex;
  align-items: center;
  margin-top: 18px;
}

.feature-inner {
  max-width: 1400px;
  /* enlarge white card only (option A) */
  width: 100%;
  padding: 64px 80px;
  border-radius: 28px;
  box-shadow: 0 56px 112px rgba(3, 105, 161, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-inner img {
  width: 100%;
  height: auto;
  /* expand image to better fill the enlarged card while keeping aspect */
  object-fit: contain;
  display: block;
  border-radius: 12px;
  max-width: 1320px;
}

/* phone overlay that sits on top of the white card and is centered */
.feature-phone {
  position: absolute;
  top: -88px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  z-index: 3;
  pointer-events: none;
}

.feature-phone img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 18px 40px rgba(3, 105, 161, 0.14);
  border-radius: 18px;
}

@media (max-width: 1200px) {
  .feature-phone {
    top: -72px;
    width: 200px;
  }
}

@media (max-width: 980px) {
  .feature-phone {
    position: static;
    transform: none;
    width: 220px;
    margin-bottom: 12px;
  }

  .feature-inner {
    padding-top: 8px;
  }
}

@media (max-width: 980px) {
  .feature-inner {
    max-width: 100%;
    padding: 12px;
    box-shadow: 0 18px 36px rgba(3, 105, 161, 0.08);
  }

  .feature-inner img {
    height: auto;
    max-height: 260px;
    object-fit: contain;
  }
}

/* Override: ensure phone sits above card (static) and not overlapping */
.feature-phone {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 260px !important;
  margin: 0 auto 16px !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

.feature-phone img {
  border-radius: 18px;
}

@media (max-width: 1200px) {
  .feature-phone {
    width: 220px !important;
  }
}

@media (max-width: 980px) {
  .feature-phone {
    width: 200px !important;
    margin-bottom: 12px !important;
  }
}

/* ===== Target: make the white feature card under the hero subtitle wider and images fill it ===== */
.hero-feature-row .feature-inner {
  width: 100%;
  max-width: min(87.5vw, 2200px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  /* keep small internal padding so rectangle tightly wraps the image */
  padding: 8px;
  border-radius: 28px;
  min-height: 320px;
  /* allow a bit shorter so rectangle tightly wraps taller images */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* ensure images cannot escape the rectangle */
}

@media (min-width: 1200px) {
  .hero-feature-row .feature-inner {
    /* slightly larger padding on very wide screens but still tight */
    padding-left: 12px;
    padding-right: 12px;
    min-height: 420px;
  }

  /* image should fill the rectangle as much as possible while remaining fully visible */
  .hero-feature-row .feature-inner img {
    /* enlarge image to fill the inner area while never cropping (contain) */
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
  }
}

@media (max-width: 980px) {
  .hero-feature-row .feature-inner {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 16px;
    border-radius: 16px;
  }

  .hero-feature-row .feature-inner img {
    height: auto;
    object-fit: contain;
    max-width: 100%;
  }
}

/* ===== Ensure standalone .feature-inner (role="img") uses same responsive gutters ===== */
.feature-inner[role="img"] {
  width: 100%;
  max-width: min(87.5vw, 2200px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 28px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .feature-inner[role="img"] {
    padding-left: 12px;
    padding-right: 12px;
    min-height: 420px;
  }

  .feature-inner[role="img"] img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
  }
}

@media (max-width: 980px) {
  .feature-inner[role="img"] {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    border-radius: 16px;
  }

  .feature-inner[role="img"] img {
    height: auto;
    object-fit: contain;
    max-width: 100%;
  }
}

/* ============================================
   Hot stories card media sizing (global fallback)
   ============================================ */
#hot-stories-root .card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  padding: 0;
  width: 240px !important;
  max-width: 240px !important;
  height: 240px !important;
  margin: 0 auto;
  overflow: hidden;
  flex: 0 0 240px !important;
}

#hot-stories-root .card-media img {
  width: 240px !important;
  height: 240px !important;
  max-width: 240px !important;
  max-height: 240px !important;
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (max-width: 960px) {
  #hot-stories-root .card-media {
    width: 200px !important;
    max-width: 200px !important;
    height: 200px !important;
    flex: 0 0 200px !important;
  }

  #hot-stories-root .card-media img {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
  }
}

@media (max-width: 640px) {
  #hot-stories-root .card-media {
    width: 180px !important;
    max-width: 180px !important;
    height: 180px !important;
    flex: 0 0 180px !important;
  }

  #hot-stories-root .card-media img {
    width: 180px !important;
    height: 180px !important;
    max-width: 180px !important;
    max-height: 180px !important;
  }
}
