/*
Theme Name: Hostinger Affiliate
Theme URI: https://hostinger.com
Author: Hostinger
Author URI: https://hostinger.com/
Description: Hostinger Affiliate
Version: 1.0.21
Requires at least: 5.6
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hostinger-affiliate-theme
*/

/* DRC article shell CSS deployed 2026-06-01 */
body.single-post {
  background: #f8f7f1;
  color: #16231f;
}

body.single-post .site-header {
  background: #fbfaf6;
  border-bottom: 1px solid #deded8;
  box-shadow: none;
}

body.single-post .site-header .container {
  width: min(1292px, calc(100% - 48px));
}

body.single-post .header-inner {
  min-height: 55px;
  display: flex;
  align-items: center;
}

body.single-post .site-logo {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: flex-start;
  padding-left: 54px;
  flex-direction: column;
  justify-content: center;
}

body.single-post .site-logo::before {
  content: "DRC";
  position: absolute;
  left: 0;
  top: 8px;
  width: 42px;
  height: 34px;
  border-radius: 0 0 7px 7px;
  background: #2f735f;
  color: #fff;
  font-size: 15px;
  line-height: 34px;
  font-weight: 800;
  text-align: center;
  letter-spacing: .01em;
}

body.single-post .site-logo a {
  font-size: 0;
  line-height: 1;
  color: #16231f;
  text-decoration: none;
}

body.single-post .site-logo a::after {
  content: "Discover Real China";
  display: block;
  font-size: 15px;
  line-height: 18px;
  font-weight: 800;
}

body.single-post .site-logo::after {
  content: "Practical travel guides";
  display: block;
  margin-top: 4px;
  color: #56635e;
  font-size: 13px;
  line-height: 16px;
  font-weight: 400;
}

body.single-post .header-navigation-wrapper {
  display: none;
}

body.single-post .drc-header-contact {
  display: grid;
  gap: 6px;
  max-width: 560px;
  margin-left: auto;
  color: #56635e;
  text-align: right;
}

body.single-post .drc-header-contact-note {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

body.single-post .drc-header-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.single-post .drc-header-contact-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #dbe2df;
  border-radius: 8px;
  background: #fff;
  color: #16735f;
  font-size: 14px;
  line-height: 18px;
  font-weight: 800;
  text-decoration: none;
}

body.single-post .drc-header-contact-actions a:hover {
  border-color: rgba(22, 115, 95, 0.34);
  background: #eef3ef;
}

body.single-post .mobile-nav-toggle,
body.single-post .menu-modal {
  display: none;
}

body.single-post .default-header {
  background: #f8f7f1;
  padding: 54px 0 24px;
}

body.single-post .default-header .container {
  position: relative;
  width: min(960px, calc(100% - 48px));
}

body.single-post .default-header .container::before {
  display: none;
  margin: 0 0 36px;
  color: #41544e;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

body.single-post .default-header .container::before {
  content: "Home / Planning / Article";
}

body.single-post.postid-8 .default-header .container::before {
  content: "Home / Planning / Can Foreigners Use WeChat Pay in China?";
}

body.single-post.postid-10 .default-header .container::before {
  content: "Home / Planning / Best eSIM for China Travel";
}

body.single-post.postid-12 .default-header .container::before {
  content: "Home / Planning / 10-Day China Itinerary for First-Time Visitors";
}

body.single-post.postid-16 .default-header .container::before {
  content: "Home / Planning / 7-Day China Itinerary for First-Time Visitors";
}

body.single-post.postid-19 .default-header .container::before {
  content: "Home / Planning / 15-Day China Itinerary for First-Time Visitors";
}

body.single-post.postid-21 .default-header .container::before {
  content: "Home / Planning / 30-Day China Itinerary for First-Time Visitors";
}

body.single-post.postid-25 .default-header .container::before {
  content: "Home / Planning / How Foreigners Can Use Alipay in China";
}

body.single-post.postid-30 .default-header .container::before {
  content: "Home / Planning / China 144-Hour Visa-Free Transit";
}

body.single-post.postid-49 .default-header .container::before {
  content: "Home / Planning / How to Book High-Speed Rail Tickets in China";
}

body.single-post.postid-51 .default-header .container::before {
  content: "Home / Planning / Best VPN for China Travel";
}

body.single-post.postid-80 .default-header .container::before {
  content: "Home / City Guides / Beijing in Three Days";
}

body.single-post.postid-88 .default-header .container::before {
  content: "Home / Planning / First Trip to China";
}

body.single-post.postid-82 .default-header .container::before {
  content: "Home / City Guides / Shanghai First-Time Guide";
}

body.single-post.postid-84 .default-header .container::before {
  content: "Home / City Guides / Xi'an Guide";
}

body.single-post.postid-86 .default-header .container::before {
  content: "Home / City Guides / Chengdu Travel Guide";
}

body.single-post .default-header .category {
  margin: 0 0 22px;
}

body.single-post .default-header .category a {
  color: #56635e;
  font-size: 22px;
  line-height: 24px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

body.single-post .default-header .title {
  max-width: 820px;
  margin: 0;
  color: #16231f;
  font-size: 62px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

body.single-post .default-header .title::after {
  display: block;
  max-width: 720px;
  margin-top: 22px;
  color: #53645f;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 400;
}

body.single-post.postid-8 .default-header .title::after {
  content: "A realistic guide to using WeChat Pay as a foreign visitor, including card setup, QR payments, limits, and backup options.";
}

body.single-post.postid-10 .default-header .title::after {
  content: "A practical guide to choosing mobile data for China, with realistic notes on eSIMs, roaming, app access, and backup plans.";
}

body.single-post.postid-12 .default-header .title::after {
  content: "A classic first China route through Beijing, Xi'an, and Shanghai, with enough time to breathe between major travel days.";
}

body.single-post.postid-16 .default-header .title::after {
  content: "A realistic one-week route for first-time visitors, focused on Beijing, Xi'an, Shanghai, and the logistics that matter.";
}

body.single-post.postid-19 .default-header .title::after {
  content: "A balanced two-week first China route with major cities, food, history, transport planning, and room for slower travel.";
}

body.single-post.postid-21 .default-header .title::after {
  content: "A slower month-long China route for first-time visitors who want major cities, regional variety, and more breathing room.";
}

body.single-post.postid-25 .default-header .title::after {
  content: "A practical payment setup guide for foreign visitors using Alipay in China, including card linking, QR payments, and backup options.";
}

body.single-post.postid-30 .default-header .title::after {
  content: "A plain-English guide to China's transit visa-free rules, route planning, documents, and the confusing 144-hour versus 240-hour wording.";
}

body.single-post.postid-49 .default-header .title::after {
  content: "A foreign visitor's guide to booking China high-speed rail tickets, choosing stations, using passports, and avoiding common travel-day mistakes.";
}

body.single-post.postid-51 .default-header .title::after {
  content: "A realistic internet planning guide for China travel, including VPN timing, eSIM backups, hotel Wi-Fi, and blocked app expectations.";
}

body.single-post.postid-80 .default-header .title::after {
  content: "A balanced Beijing route for the Forbidden City, hutongs, the Great Wall, parks, food, and practical first-time transport.";
}

body.single-post.postid-88 .default-header .title::after {
  content: "A practical starting guide for independent travelers covering routes, payments, trains, translation, safety, and first-trip mistakes.";
}

body.single-post.postid-82 .default-header .title::after {
  content: "A practical first-time Shanghai guide covering neighborhoods, skyline views, food, museums, hotels, and local transport.";
}

body.single-post.postid-84 .default-header .title::after {
  content: "How to plan Xi'an without missing the Terracotta Warriors, city walls, Muslim Quarter food, and old-town atmosphere.";
}

body.single-post.postid-86 .default-header .title::after {
  content: "A practical Chengdu guide for travelers who want pandas, Sichuan food, teahouses, side trips, and a slower rhythm.";
}

body.single-post .default-header .meta {
  margin-top: 24px;
  color: transparent;
  font-size: 0;
}

body.single-post .default-header .meta .posted-on {
  display: none;
}

body.single-post .default-header .meta::before {
  color: #53645f;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

body.single-post.postid-8 .default-header .meta::before {
  content: "May 19, 2026   8 min read";
}

body.single-post.postid-10 .default-header .meta::before,
body.single-post.postid-12 .default-header .meta::before,
body.single-post.postid-16 .default-header .meta::before,
body.single-post.postid-19 .default-header .meta::before,
body.single-post.postid-21 .default-header .meta::before,
body.single-post.postid-25 .default-header .meta::before,
body.single-post.postid-27 .default-header .meta::before,
body.single-post.postid-30 .default-header .meta::before,
body.single-post.postid-49 .default-header .meta::before,
body.single-post.postid-51 .default-header .meta::before {
  content: "May 20, 2026   8 min read";
}

body.single-post.postid-80 .default-header .meta::before,
body.single-post.postid-88 .default-header .meta::before,
body.single-post.postid-82 .default-header .meta::before,
body.single-post.postid-84 .default-header .meta::before,
body.single-post.postid-86 .default-header .meta::before {
  content: "May 20, 2026   8 min read";
}

body.single-post #content-wrapper.container {
  width: min(1120px, calc(100% - 48px));
}

body.single-post #content-wrapper.flex {
  display: block;
}

body.single-post .entry-content {
  max-width: none;
  flex-basis: auto;
  width: 100%;
  color: #2f3432;
  font-size: 18px;
  line-height: 1.55;
}

body.single-post .entry-content .banner {
  display: none;
}

body.single-post .entry-content .post-thumbnail {
  width: 100%;
  margin: 0 0 54px;
}

body.single-post .entry-content .post-thumbnail img {
  display: block;
  width: 100%;
  height: clamp(260px, 48vw, 560px);
  object-fit: cover;
  border-radius: 7px;
}

body.single-post .entry-content > p,
body.single-post .entry-content > h2,
body.single-post .entry-content > h3,
body.single-post .entry-content > ul,
body.single-post .entry-content > ol,
body.single-post .entry-content > figure:not(.post-thumbnail) {
  max-width: 800px;
  margin-left: 70px;
  margin-right: auto;
}

body.single-post .entry-content > p {
  margin-top: 0;
  margin-bottom: 24px;
  color: #2f3432;
  font-size: 18px;
  line-height: 1.55;
}

body.single-post .entry-content > p:first-of-type {
  max-width: 860px;
  margin-top: 0;
  margin-bottom: 34px;
  padding: 22px 24px;
  border: 1px solid rgba(22, 115, 95, 0.18);
  border-left: 5px solid #16735f;
  border-radius: 8px;
  background: #eef3ef;
  color: #24332f;
  font-size: 19px;
  line-height: 1.55;
}

body.single-post .entry-content > p:first-of-type strong:first-child {
  color: #123c33;
}

body.single-post .entry-content > p.drc-editor-note,
body.single-post .entry-content > p:has(> strong:first-child) {
  border-radius: 8px;
}

body.single-post .entry-content > p.drc-editor-note {
  max-width: 860px;
  margin-top: 34px;
  padding: 20px 22px;
  border: 1px solid #dbe2df;
  border-left: 5px solid #d99a25;
  background: #fffaf0;
  color: #34302a;
}

body.single-post .entry-content > h2 {
  margin-top: 54px;
  margin-bottom: 18px;
  color: #16231f;
  font-size: 31px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0;
}

body.single-post .entry-content > h3 {
  margin-top: 34px;
  margin-bottom: 14px;
  color: #21302c;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 800;
}

body.single-post .entry-content > ul,
body.single-post .entry-content > ol {
  margin-top: 0;
  margin-bottom: 30px;
  padding: 22px 28px 22px 44px;
  border: 1px solid #dbe2df;
  border-radius: 8px;
  background: #fff;
}

body.single-post .entry-content > ul li,
body.single-post .entry-content > ol li {
  margin: 8px 0;
  padding-left: 2px;
}

body.single-post .entry-content > figure.wp-block-table {
  max-width: 960px;
  margin-top: 24px;
  margin-bottom: 38px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #d8e0dc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(22, 35, 31, 0.05);
}

body.single-post .entry-content > figure.wp-block-table table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  color: #2f3432;
  font-size: 16px;
  line-height: 1.45;
}

body.single-post .entry-content > figure.wp-block-table thead th {
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid #cdd8d3;
  background: #dfe9e4;
  color: #123c33;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
}

body.single-post .entry-content > figure.wp-block-table tbody td {
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid #e4e9e6;
  background: #fff;
  vertical-align: top;
}

body.single-post .entry-content > figure.wp-block-table tbody tr:nth-child(even) td {
  background: #fbfaf6;
}

body.single-post .entry-content > figure.wp-block-table tbody tr:last-child td {
  border-bottom: 0;
}

body.single-post .entry-content > figure.wp-block-table tbody td:first-child {
  color: #16231f;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
}

body.single-post .entry-content a {
  color: #16735f;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.single-post .comment-respond,
body.single-post .comments-area {
  display: none;
}

body.single-post .entry-footer {
  display: none;
}

body.single-post .site-footer {
  margin-top: 64px;
  padding: 34px 24px 42px;
  border-top: 1px solid #dbe2df;
  background: #fbfaf6;
  color: #53645f;
  text-align: center;
}

body.single-post .site-footer .container {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
}

body.single-post .site-footer p {
  margin: 0;
  color: transparent;
  font-size: 0;
}

body.single-post .site-footer p::before {
  content: "Discover Real China";
  display: block;
  color: #16231f;
  font-size: 16px;
  line-height: 22px;
  font-weight: 800;
}

body.single-post .site-footer p::after {
  content: "Practical China travel guides for budget travelers, independent visitors, and tour planners.";
  display: block;
  max-width: 620px;
  margin: 8px auto 0;
  color: #53645f;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
}

@media (max-width: 767px) {
  body.single-post .site-header .container,
  body.single-post .default-header .container,
  body.single-post #content-wrapper.container {
    width: min(100% - 32px, 1120px);
  }

  body.single-post .header-inner {
    min-height: 56px;
  }

  body.single-post .header-navigation-wrapper {
    display: none;
  }

  body.single-post .drc-header-contact {
    max-width: 168px;
  }

  body.single-post .drc-header-contact-note {
    display: none;
  }

  body.single-post .drc-header-contact-actions {
    gap: 6px;
  }

  body.single-post .drc-header-contact-actions a {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
  }

  body.single-post .site-logo {
    min-height: 40px;
    padding-left: 50px;
  }

  body.single-post .site-logo::before {
    top: 6px;
  }

  body.single-post .default-header {
    padding: 34px 0 20px;
  }

  body.single-post .default-header .container::before {
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 20px;
  }

  body.single-post .default-header .category {
    margin-bottom: 18px;
  }

  body.single-post .default-header .category a {
    font-size: 16px;
    line-height: 20px;
  }

  body.single-post .default-header .title {
    font-size: 42px;
    line-height: 1.12;
  }

  body.single-post .default-header .title::after {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.55;
  }

  body.single-post .entry-content .post-thumbnail {
    margin-bottom: 34px;
  }

  body.single-post .entry-content .post-thumbnail img {
    height: 220px;
  }

  body.single-post .entry-content > p,
  body.single-post .entry-content > h2,
  body.single-post .entry-content > h3,
  body.single-post .entry-content > ul,
  body.single-post .entry-content > ol,
  body.single-post .entry-content > figure:not(.post-thumbnail) {
    max-width: none;
    margin-left: 0;
  }

  body.single-post .entry-content > p:first-of-type,
  body.single-post .entry-content > p.drc-editor-note {
    padding: 18px 18px;
    font-size: 17px;
  }

  body.single-post .entry-content > h2 {
    margin-top: 42px;
    font-size: 26px;
  }

  body.single-post .entry-content > h3 {
    font-size: 21px;
  }

  body.single-post .entry-content > ul,
  body.single-post .entry-content > ol {
    padding: 18px 20px 18px 34px;
  }

  body.single-post .entry-content > figure.wp-block-table {
    margin-right: -16px;
    padding-bottom: 2px;
    border-radius: 8px 0 0 8px;
  }

  body.single-post .entry-content > figure.wp-block-table table {
    min-width: 620px;
    font-size: 15px;
  }

  body.single-post .entry-content > figure.wp-block-table thead th,
  body.single-post .entry-content > figure.wp-block-table tbody td {
    padding: 13px 12px;
  }

  body.single-post .site-footer {
    margin-top: 48px;
    padding: 28px 16px 34px;
  }

  body.single-post .site-footer .container {
    width: min(100% - 32px, 960px);
  }
}

/* DRC affiliate product cards 2026-06-01 */
.affiliate-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0;
}
@media (min-width: 600px) {
  .affiliate-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .affiliate-cards.affiliate-cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.affiliate-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.affiliate-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}
.affiliate-card-img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.affiliate-card-body {
  padding: 16px;
}
.affiliate-card-title {
  font-size: 1.05em;
  margin: 0 0 4px;
  color: #222;
}
.affiliate-card-price {
  font-size: 1.1em;
  font-weight: 700;
  color: #2e7d32;
  margin: 0 0 12px;
}
.affiliate-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.9em;
  color: #555;
}
.affiliate-card-features li {
  padding: 3px 0 3px 20px;
  position: relative;
}
.affiliate-card-features li::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 3px;
  color: #4caf50;
  font-weight: 700;
}
.affiliate-card-btn {
  display: block;
  text-align: center;
  background: #2e7d32;
  color: #fff !important;
  text-decoration: none !important;
  padding: 10px 0;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95em;
  transition: background 0.2s ease;
}
.affiliate-card-btn:hover {
  background: #1b5e20;
}
@media (prefers-color-scheme: dark) {
  .affiliate-card {
    background: #1e1e1e;
    border-color: #333;
  }
  .affiliate-card-title { color: #eee; }
  .affiliate-card-features { color: #bbb; }
}

