/* ===================================================================
   responsive.css — Mobile / tablet responsive overrides
   Breakpoints: ≤1024px (tablet), ≤768px (mobile)
   =================================================================== */

/* ===================================================================
   ROOT VARIABLE OVERRIDES — switch from vw to px-based sizing
   =================================================================== */
@media (max-width: 768px) {
  :root {
    --shell: 92vw;
    --header-h: 56px;
    --pill-radius: 999px;
    --fs-14: 13px;
    --fs-16: 14px;
    --fs-18: 15px;
    --fs-20: 16px;
    --fs-22: 17px;
    --fs-24: 18px;
    --fs-26: 19px;
    --fs-28: 20px;
    --fs-30: 21px;
    --fs-32: 22px;
    --fs-36: 24px;
    --fs-44: 28px;
    --fs-54: 32px;
    --fs-55: 32px;
    --fs-56: 32px;
    --fs-60: 34px;
    --fs-80: 40px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --shell: 86vw;
    --header-h: 7vh;
    --fs-14: 11px;
    --fs-16: 12px;
    --fs-18: 13px;
    --fs-20: 14px;
    --fs-22: 15px;
    --fs-24: 16px;
    --fs-26: 17px;
    --fs-28: 18px;
    --fs-30: 19px;
    --fs-32: 20px;
    --fs-36: 22px;
    --fs-44: 26px;
    --fs-54: 30px;
    --fs-55: 30px;
    --fs-56: 30px;
    --fs-60: 32px;
    --fs-80: 36px;
  }
}

/* ===================================================================
   GLOBAL RESET OVERRIDES
   =================================================================== */
@media (max-width: 768px) {
  html { scroll-behavior: smooth; }
  body { overflow-x: hidden; min-width: 320px; }

  /* Fix the global img width reset */
  img { width: auto; max-width: 100%; height: auto; }

  /* Shell */
  .shell { width: var(--shell); padding-left: 4vw; padding-right: 4vw; box-sizing: border-box; }
}

/* ===================================================================
   HEADER — hamburger menu for mobile
   =================================================================== */
@media (max-width: 768px) {
  .site-header {
    background: transparent;
    border-bottom: 0.0521vw solid #505457;
    backdrop-filter: none;
    box-shadow: none;
    height: 56px;
  }

  .site-header.is-scrolled {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #e5e5e5;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(8, 28, 51, .08);
  }

  .site-header .brand { color: #fff; }
  .site-header .brand-name { filter: brightness(0) invert(1); }
  .site-header.is-scrolled .brand { color: var(--deep); }
  .site-header.is-scrolled .brand-name { filter: none; }
  .site-header .main-nav a { color: #fff; }

  .site-header {
    overflow: visible !important;
  }

  .header-inner {
    height: 56px; display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 0 4vw; box-sizing: border-box;
  }

  .brand > img:first-child { width: 32px; height: auto; }
  .brand-name { width: 100px; height: auto; }

  .site-header {
    overflow: visible !important;
  }

  /* Hide desktop nav */
  .main-nav {
    display: none;
    position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
    margin: 0; padding: 60px 20px 20px 20px; z-index: 200;
    background: rgba(7, 27, 51, .97); backdrop-filter: blur(12px);
    flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 0; font-size: 18px; overflow-y: auto;
  }

  .main-nav.is-open { display: flex !important; }

  .mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav a {
    height: auto; padding: 14px 0; width: 100%; text-align: center;
    color: #fff; font-size: 17px; font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .main-nav a.active { color: var(--red); }

  .language {
    width: 80px; height: 32px; font-size: 13px; margin-left: 0;
    border-radius: 999px; flex: none;
  }

  /* Hamburger toggle */
  .mobile-menu-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 44px; height: 44px; padding: 10px; border: none; background: transparent;
    cursor: pointer; z-index: 201; position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none; -webkit-user-select: none;
  }

  .mobile-menu-toggle span {
    display: block; width: 22px; height: 2px; background: var(--deep);
    border-radius: 2px; transition: transform .25s ease, opacity .25s ease;
    pointer-events: none;
  }

  .mobile-menu-toggle span + span { margin-top: 5px; }
}

@media (min-width: 769px) {
  .mobile-menu-toggle { display: none; }
}

/* Tablet header adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-inner { padding: 0 2vw; }
  .main-nav { gap: 1.5vw; margin-left: 4vw; font-size: 13px; }
  .language { width: 70px; font-size: 11px; }
  .brand > img:first-child { width: 32px; }
  .brand-name { width: 110px; }
}

/* ===================================================================
   FOOTER — stack vertically
   =================================================================== */
@media (max-width: 768px) {
  .site-footer {
    height: auto; min-height: auto; padding: 40px 4vw 20px;
    background-size: cover;
  }

  .footer-grid {
    grid-template-columns: 1fr; gap: 24px;
  }

  .footer-about { gap: 12px; }
  .footer-about-top { flex-direction: column; gap: 12px; }
  .footer-about-top > img { width: 48px; }

  .footer-contact-card {
    width: 100%; height: auto; min-height: auto; padding: 16px;
    border-radius: 8px;
  }

  .footer-contact-card h3 { margin-bottom: 8px; }
  .footer-contact-card p { margin-bottom: 8px; }

  .footer-social-block h3 { margin-bottom: 8px; }

  .social-link { width: 36px; height: 36px; }
  .social-link > img:not(.social-qr) { width: 50%; height: 50%; }
  .social-qr { width: 100px; height: 100px; }

  .contact-form {
    width: 100%; height: auto; min-height: auto; padding: 16px;
    border-radius: 8px; justify-self: stretch;
  }

  .contact-form input { height: 40px; margin-bottom: 10px; padding: 0 12px; }
  .contact-form button { height: 40px; border-radius: 8px; }

  .footer-qrcode { width: 60px; height: 60px; right: 12px; bottom: 12px; }

  .copyright {
    position: static; margin-top: 20px; padding-top: 12px;
    font-size: 13px; text-align: center;
  }

  .footer-grid nav { gap: 8px; }
  .footer-grid nav h3,
  .footer-contact-card h3,
  .contact-form h3 { margin-bottom: 10px; font-size: 16px; }
  .footer-grid nav a { font-size: 14px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .site-footer { height: auto; padding: 50px 0 20px; }
  .footer-grid { gap: 2vw; }
  .contact-form { width: 100%; height: auto; min-height: auto; padding: 12px; }
  .contact-form input { height: 32px; font-size: 12px; }
  .contact-form button { height: 32px; font-size: 12px; }
  .footer-contact-card { width: auto; height: auto; min-height: auto; padding: 12px; }
}

/* ===================================================================
   SUB-NAV — scroll horizontally or wrap
   =================================================================== */
@media (max-width: 768px) {
  .design-subnav,
  .about-subnav { height: 48px; }

  .design-subnav-inner,
  .about-subnav-inner {
    height: 48px; gap: 16px; font-size: 14px;
    overflow-x: auto; scrollbar-width: none; white-space: nowrap;
    padding: 0 4vw; box-sizing: border-box; width: 100%;
  }

  .design-subnav-inner::-webkit-scrollbar,
  .about-subnav-inner::-webkit-scrollbar { display: none; }

  .design-subnav a,
  .about-subnav a { min-width: auto; font-size: 13px; flex-shrink: 0; }

  .design-subnav span,
  .about-subnav span { display: none; }
}

/* ===================================================================
   DESIGN HERO — stack vertically for all inner pages
   =================================================================== */
@media (max-width: 768px) {
  .design-hero { min-height: auto; height: auto; }
  .design-hero-services,
  .design-hero-events,
  .design-hero-news,
  .design-hero-contact { min-height: auto; padding-bottom: 0; }

  .design-hero-inner {
    min-height: auto; flex-direction: column; gap: 20px;
    padding-top: 24px; padding-bottom: 30px;
  }

  .design-hero-copy,
  .page-hero-copy {
    margin-top: 0; max-width: 100%; flex: none; width: 100%;
  }

  .page-hero-title,
  .design-hero-title { font-size: 28px; }

  .page-hero-kicker,
  .design-hero-kicker {
    font-size: 13px; margin-bottom: 12px;
  }

  .page-hero-line,
  .design-hero-line { width: 40px; margin-bottom: 12px; }

  .page-hero-desc,
  .design-hero-desc { font-size: 14px; max-width: 100%; }

  .page-hero-card {
    margin-top: 20px; align-self: center; display: none; /* hide complex card on mobile */
  }

  .banner-bg { display: none; }
}

/* Tablet design hero */
@media (min-width: 769px) and (max-width: 1024px) {
  .design-hero-inner { gap: 3vw; }
  .design-hero-copy { flex: 0 0 35vw; }
  .page-hero-card { width: 32vw; height: auto; }
  .page-hero-title { font-size: 2.4vw; }
  .page-hero-desc { font-size: 1.3vw; }
  .banner-text-transform-block { width: 32vw; height: auto; }
}

/* ===================================================================
   TEXT-TRANSFORM CARD — simplify on mobile
   =================================================================== */
@media (max-width: 768px) {
  .banner-text-transform-block { display: none; }
  .text-transform-page-stage { padding: 20px 0; }
  .text-transform-page { padding-top: 56px; }
}

/* ===================================================================
   PAGE: INDEX (HOME)
   =================================================================== */
@media (max-width: 768px) {
  /* Hero section */
  .hero {
    height: auto; min-height: 100vh; padding-top: 0;
    background-position: center top; background-size: cover;
  }

  .hero-inner {
    min-height: auto; flex-direction: column; margin-top: 16px;
    padding-left: 4vw; padding-right: 4vw;
  }

  .hero-copy {
    flex: none; width: 100%; padding-top: 24px;
  }

  .hero h1 {
    font-size: 32px; line-height: 1.25; border-bottom: 1px solid rgba(255,255,255,.2);
    padding-bottom: 16px; margin-bottom: 20px;
  }

  .hero-copy p {
    max-width: 100%; font-size: 15px; line-height: 1.7; margin-bottom: 24px;
  }

  .outline-btn { font-size: 15px; padding: 10px 20px; }
  .consult-arrow { width: 14px; }

  /* Hero slider */
  .hero-slider-wrap {
    flex: none; width: 100%; padding-bottom: 0; margin-top: 24px;
  }

  .hero-slider { width: 100%; min-height: auto; }
  .hero-slide { width: 100%; }
  .hero-slide-link { width: 100%; border-radius: 12px; }
  .hero-slide-media { width: 100%; aspect-ratio: 16/10; border-radius: 12px; }
  .hero-slide-content {
    width: 90%; height: auto; margin-top: -20px; margin-left: 5%;
    border-radius: 10px; padding: 16px; box-sizing: border-box;
  }
  .hero-slide-content h3 { font-size: 18px; }
  .hero-slide-content .hongbox { transform: translate(6px, 6px); }

  .hero-slider-head {
    position: static; margin-top: 16px; display: flex; justify-content: center;
  }
  .slider-btn { width: 36px; height: 36px; }
  .slider-btn img { width: 10px; }

  /* Overview section */
  .overview { height: auto; padding: 40px 0; }
  .overview-grid {
    grid-template-columns: 1fr; gap: 20px; margin-top: 24px;
  }

  .section-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-heading h2 { font-size: 28px; }
  .section-heading p { max-width: 100%; font-size: 14px; line-height: 1.7; }
  .section-heading small { font-size: 14px; }
  .centered { align-items: center; text-align: center; }

  .overview-media-track { height: 220px; border-radius: 12px; }
  .overview-dots { top: -28px; margin-bottom: -16px; }
  .overview-dot { width: 8px; height: 8px; }
  .overview-dot.is-active { width: 16px; height: 16px; border-width: 3px; }

  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 16px; border-radius: 12px; }
  .feature-card h3 { margin-top: 16px; font-size: 18px; }
  .feature-card p { font-size: 14px; }
  .feature-card b { font-size: 24px; }
  .feature-icon img { width: 24px; left: auto; right: 8px; top: 8px; }
  .feature-corner-arrow { display: none; }

  /* Services coverflow */
  .services { height: auto; padding: 40px 0 180px; }
  .services-heading { padding-top: 0; }
  .services-heading h2 { font-size: 28px; }

  .service-coverflow {
    height: auto; transform: none; margin-top: 20px;
  }
  .service-coverflow-viewport {
    height: auto; perspective: none; flex-direction: column; gap: 16px;
  }

  .service-slide {
    position: relative; top: auto; left: auto; transform: none !important;
    width: 100% !important; height: 200px !important; opacity: 1 !important;
    filter: none !important; border-radius: 12px; z-index: 1;
  }
  .service-slide.is-hidden { display: none; }

  .service-slide-content { left: 16px; right: 16px; bottom: 20px; text-align: left; }
  .service-slide-content h3 { font-size: 20px; }
  .service-slide-content h3::after { margin-left: 0; }
  .service-tags { justify-content: flex-start; }
  .service-tags span { font-size: 12px; padding: 4px 10px; }

  .service-arrow { display: none; } /* hide arrows, show all cards */

  /* News section */
  .news { height: auto; padding: 40px 0; }
  .news-heading h2 { font-size: 28px; }
  .news-heading a { font-size: 14px; }
  .news-layout { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }

  .news-list { width: 100%; height: auto; gap: 12px; }
  .news-list article {
    grid-template-columns: 100px 1fr; width: 100%; height: auto; flex: none;
    padding: 12px; gap: 12px; border-radius: 8px;
  }
  .news-list img { width: 100px; height: 70px; }
  .news-list h3 { font-size: 15px; }
  .news-list time { font-size: 12px; }

  .lead-news-media { width: 100%; height: 200px; border-radius: 12px; }
  .lead-news-body {
    position: relative; left: auto; bottom: auto; width: 90%; height: auto;
    margin: -30px auto 0; padding: 16px; border-left-width: 3px;
    border-radius: 10px;
  }
  .lead-news-body h3 { font-size: 17px; }
  .lead-news-body p { font-size: 13px; }

  /* Partners */
  .partners { height: auto; padding: 24px 0; }
  .partners h2 { font-size: 18px; margin-bottom: 16px; }
  .partner-pill { flex: 0 0 100px; width: 100px; height: 60px; }
  .partner-pill img { width: 80px; height: auto; }
  .partner-row button { width: 24px; font-size: 24px; }
}

/* Tablet home */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero { height: auto; min-height: 70vh; }
  .hero-inner { margin-top: 10vh; flex-wrap: wrap; }
  .hero-copy { flex: 0 0 100%; padding-top: 0; }
  .hero h1 { font-size: 5vw; line-height: 1.2; }
  .hero-slider-wrap { flex: none; width: 100%; margin-top: 20px; }
  .hero-slider { width: 100%; min-height: auto; }
  .hero-slide { width: 100%; }
  .hero-slide-link { width: 100%; }
  .hero-slide-media { width: 70%; aspect-ratio: 16/9; }
  .overview { height: auto; padding: 50px 0; }
  .overview-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .services { height: auto; padding: 50px 0 100px; }
  .service-arrow-prev { left: 2vw; }
  .service-arrow-next { right: 2vw; }
  .news { height: auto; padding: 50px 0; }
  .news-layout { grid-template-columns: 1fr; }
  .lead-news { margin-top: 20px; }
  .lead-news-body { left: 5%; width: 80%; }
}

/* ===================================================================
   PAGE: ABOUT
   =================================================================== */
@media (max-width: 768px) {
  /* 覆盖 common.css 中 body.about-page-shell main.about-page { padding-top:0 } */
  /* 手机端必须留出 header 高度，否则 hero 内容被导航栏压住 */
  body.about-page-shell main.about-page { padding-top: 56px; }

  .about-hero { min-height: auto; padding-bottom: 0; }
  .about-hero-inner {
    min-height: auto; flex-direction: column; gap: 20px;
    padding-top: 24px; padding-bottom: 24px;
  }
  .about-hero-copy { max-width: 100%; flex: none; width: 100%; }
  .about-hero-desc { max-width: 100%; font-size: 14px; }
  .about-hero-desc::before { width: 30px; height: 3px; }

  /* 手机端：subnav 脱离 hero 内部的 absolute 定位，变为普通流元素紧跟在 hero 下方 */
  .about-subnav {
    position: relative;
    bottom: auto; left: auto; right: auto;
    z-index: 3;
  }

  /* Profile */
  .about-profile { min-height: auto; padding: 40px 0; }
  .about-profile-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-profile-bg { opacity: .15; }
  .about-profile-copy h2 { font-size: 26px; }
  .about-profile-copy h3 { margin-top: 20px; font-size: 20px; }

  .about-value-cards {
    grid-template-columns: 1fr; gap: 12px; padding-top: 0;
  }
  .about-value-card { padding: 16px; border-radius: 10px; }
  .about-value-card:nth-child(2),
  .about-value-card:nth-child(4) { transform: none; }
  .about-value-icon { font-size: 24px; }
  .about-value-card h3 { font-size: 16px; }
  .about-value-card p { font-size: 13px; }

  /* Honors */
  .about-honors { min-height: auto; padding: 40px 0; }
  .about-cert-row {
    gap: 12px; width: auto; flex-wrap: nowrap; overflow-x: auto;
    margin-top: 24px; margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
  }
  .about-cert-row figure { width: 200px; height: 260px; flex: 0 0 200px; }
  .about-honor-controls button { width: 32px; height: 32px; }

  /* Supporters */
  .about-supporters { min-height: auto; padding: 40px 0; }
  .about-logo-stage { width: 100%; margin-top: 24px; }
  .about-logo-stage::before,
  .about-logo-stage::after { top: 50px; width: 30px; height: 60px; }
  .about-logo-grid { gap: 8px; }
  .about-logo-grid a { width: 100px; height: 60px; flex: 0 0 100px; }
  .about-logo-grid img { width: 100%; height: 100%; }
}

/* Tablet about */
@media (min-width: 769px) and (max-width: 1024px) {
  .about-hero-inner { flex-wrap: wrap; }
  .about-profile-grid { gap: 3vw; }
}

/* ===================================================================
   PAGE: SERVICES
   =================================================================== */
@media (max-width: 768px) {
  .service-block { min-height: auto; padding: 40px 0; }
  .service-block-grid {
    grid-template-columns: 1fr !important; gap: 20px;
  }
  .service-block-grid.is-reverse article { order: 1; }
  .service-block-grid.is-reverse img { order: 2; }

  .service-block-grid > img {
    width: 100% !important; height: 200px !important; object-fit: cover;
    border-radius: 12px;
  }

  .service-block article h2 { font-size: 24px; }
  .service-block article h3 { font-size: 15px; margin-bottom: 12px; }
  .service-block article p { font-size: 14px; }
  .service-block article b { width: 36px; height: 36px; margin-top: 20px; }
  .service-block article b img { width: 10px; height: auto; }

  .service-tags-row {
    grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px;
  }
  .service-tags-row span {
    width: auto; height: 80px; font-size: 13px; gap: 8px;
    border-radius: 10px;
  }
  .service-tag-icon { width: 28px; height: 28px; }

  /* Modal */
  .service-modal-container { width: 95%; max-height: 90vh; border-radius: 12px; }
  .service-modal-content { padding: 24px 16px; }
  .service-modal-title { font-size: 20px; }
  .service-modal-tags { font-size: 13px; }
  .service-modal-body { font-size: 14px; line-height: 1.7; }
}

/* Tablet services */
@media (min-width: 769px) and (max-width: 1024px) {
  .service-block-grid { gap: 2vw; }
  .service-tags-row { grid-template-columns: repeat(4, 1fr); gap: 1vw; }
  .service-tags-row span { width: auto; height: 100px; font-size: 13px; }
}

/* ===================================================================
   PAGE: NEWS / EVENTS (list pages)
   =================================================================== */
@media (max-width: 768px) {
  .newslist-page-section { padding: 40px 0 100px; }

  .news-feature { grid-template-columns: 1fr; gap: 20px; }
  .news-feature > img { width: 100%; height: 200px; border-radius: 12px; }
  .news-feature h2 { font-size: 18px; margin-bottom: 12px; }
  .news-feature p { font-size: 14px; margin-bottom: 20px; }
  .news-feature a { min-width: auto; padding: 8px 20px; font-size: 14px; height: auto; border-radius: 999px; }

  .news-card-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
  .news-tile img { width: 100%; height: 180px; border-radius: 10px; }
  .news-tile h3 { font-size: 16px; white-space: normal; }
  .news-tile p { font-size: 13px; }

  .event-pagination { gap: 8px; margin-top: 30px; flex-wrap: wrap; }
  .event-pagination a { min-width: 32px; height: 32px; font-size: 13px; }
  .event-pagination .page-arrow { min-width: 60px; padding: 0 12px; }
}

/* Tablet news/events */
@media (min-width: 769px) and (max-width: 1024px) {
  .news-card-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 2vw; }
  .news-tile img { width: 100%; }
}

/* ===================================================================
   PAGE: CONTACT
   =================================================================== */
@media (max-width: 768px) {
  .contact-main { padding: 40px 0 100px; }
  .contact-main-grid { grid-template-columns: 1fr; gap: 30px; }

  .contact-copy h2 { font-size: 26px; margin-bottom: 24px; }
  .contact-copy h3 { font-size: 18px; margin-bottom: 12px; }
  .contact-copy p { font-size: 14px; margin-bottom: 12px; }
  .contact-qr-row { gap: 20px; margin-top: 20px; }
  .contact-qr-row figure { font-size: 12px; }
  .contact-qr-row span { width: 80px; height: 80px; }

  .contact-message-form { padding: 24px 16px; }
  .contact-message-form p { font-size: 16px; margin-bottom: 16px; }
  .contact-form-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact-message-form input,
  .contact-message-form select { height: 44px; font-size: 15px; padding: 0 12px; }
  .contact-message-form textarea { min-height: 120px; font-size: 15px; }
  .form-field > span { right: 12px; font-size: 15px; }

  .captcha-row {
    grid-template-columns: 1fr 100px 36px; gap: 8px;
  }
  .captcha-image { width: 100px; }
  .captcha-row button { font-size: 20px; }

  .privacy-check { font-size: 13px; gap: 6px; }
  .privacy-check input { width: 16px; height: 16px; }

  .contact-submit {
    width: 100%; height: 44px; font-size: 16px; border-radius: 999px;
  }
}

/* Tablet contact */
@media (min-width: 769px) and (max-width: 1024px) {
  .contact-main-grid { gap: 4vw; }
}

/* ===================================================================
   PAGE: ARTICLE DETAIL
   =================================================================== */
@media (max-width: 768px) {
  .article-design-hero { min-height: auto; padding-top: 24px; padding-bottom: 40px; }

  .article-crumbs {
    position: static; transform: none; padding: 0 4vw; margin-bottom: 12px;
    font-size: 13px; justify-content: space-between; width: 100%;
  }
  .article-crumbs img { width: 10px; }

  .article-design-card {
    width: 100%; grid-template-columns: 1fr; gap: 0;
    margin-top: 0; margin-bottom: 40px; padding: 24px 4vw;
    border-radius: 0; box-shadow: none;
  }

  .article-design-head h1 { max-width: 100%; font-size: 22px; }
  .article-design-head p { font-size: 12px; margin-bottom: 16px; }

  .article-lead,
  .article-design-content p { font-size: 15px; line-height: 1.8; text-indent: 2em; }

  .article-design-cover {
    width: 100%; height: 200px; margin: 16px 0 20px; border-radius: 8px;
  }

  .article-design-content img { max-width: 100%; }

  .article-design-foot { margin-top: 30px; }
  .article-design-foot p,
  .article-design-foot a { font-size: 13px; }

  .article-design-side {
    padding-top: 20px; border-top: 1px solid #e4e8ee;
  }

  .article-design-side h2 { font-size: 16px; }
  .article-design-side ul { padding-left: 16px; }
  .article-design-side li { font-size: 13px; }

  .side-news { grid-template-columns: 100px 1fr; gap: 12px; }
  .side-news img { width: 100px; height: 70px; }
  .side-news span { font-size: 13px; }
}

/* Tablet article */
@media (min-width: 769px) and (max-width: 1024px) {
  .article-design-card { width: 90vw; }
}

/* ===================================================================
   INNER PAGES GENERIC (Category, Partners)
   =================================================================== */
@media (max-width: 768px) {
  .inner-hero { min-height: auto; padding: 60px 0 30px; }
  .inner-hero h1 { font-size: 26px; }
  .inner-hero p { max-width: 100%; font-size: 14px; }
  .inner-hero small { font-size: 12px; }

  .inner-section,
  .article-page { padding: 30px 0; }
  .inner-main,
  .article-shell { max-width: 100%; }

  .content-grid { grid-template-columns: 1fr; gap: 16px; }
  .content-card img { height: 160px; }
  .content-card h2 { font-size: 16px; }
  .content-card p { font-size: 13px; }
  .content-card time { font-size: 12px; }

  .rich-content { font-size: 14px; }

  .contact-info-panel { max-width: 100%; border-radius: 12px; padding: 20px; }
}

/* ===================================================================
   MOBILE SAFARI FIX — ensure body scroll works above fixed header
   =================================================================== */
@media (max-width: 768px) {
  body { padding-top: 0; }
  .topline { display: none; }

  /* All page main content should account for fixed header */
  main { padding-top: 56px; padding-bottom: 80px; }

  .design-hero { padding-top: 0; }

  /* Ensure buttons/pagination have breathing room before footer */
  .newslist-page-section,
  .service-block:last-of-type { padding-bottom: 60px; }
}
