/* ============================================================
   English localization fixes for ZYGJ static site
   ============================================================ */

/* Better font stack for English content */
html, body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* ---------- Header: flexbox layout so logo + nav stay on one line (all pages) ---------- */
/* index.html uses .head-menu as the header row container */
.head-menu,
/* sub-pages use .head3-top-1 > .width1200 as the header row container */
.head3-top-1 > .width1200 {
    display: flex;
    align-items: center;
}

.head-logo {
    flex-shrink: 0;
    width: 170px;
    padding-top: 0;
}

.head-logo img {
    width: 100%;
    height: auto;
    max-width: 170px;
}

.head-menu-text {
    flex: 1;
    float: none !important;
    padding-top: 0;
    white-space: nowrap;
    color: white;
    text-align: center;
    overflow: visible;
}

/* Fix banner display */
.carousel-inner .item img {
    min-width: 1200px;
    display: block;
    margin: 0 auto;
}

.carousel-inner > .item {
    display: none;
    position: relative;
    -webkit-transition: .6s ease-in-out left;
    transition: .6s ease-in-out left;
}

.carousel-inner > .active {
    display: block;
}

.carousel-inner > .active,
.carousel-inner > .next,
.carousel-inner > .prev {
    display: block;
}

/* English text spacing fixes - Why Choose Us section */
.home-spec-1200 .item-1 {
    width: 200px;
    height: auto;
    min-height: 250px;
}

.home-spec-1200 .detail {
    line-height: 1.45;
    min-height: 48px;
    font-size: 13px;
    text-align: center;
}

.home-spec-1200 .title {
    font-size: 16px;
    height: auto;
    min-height: 40px;
    padding-top: 10px;
}

.lc-step-detail {
    line-height: 1.6;
    max-width: 220px;
}

.news-list-title-2 {
    line-height: 1.5;
    max-height: 70px;
    overflow: hidden;
}

/* Fix news layout */
.home-new-list {
    width: 460px;
    min-height: 240px;
}

/* Make sure about text flows properly */
.about-left .font-16 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fix footer links and prevent text overflow */
.home-foot-1200 .title {
    line-height: 1.8;
    font-size: 13px;
}

.home-foot-1200 .title div:last-child {
    max-width: 700px;
    overflow-wrap: break-word;
}

/* Fix btn-3 (Service Terms) for English text */
.search-body-1200 .btn-3 {
    width: auto !important;
    min-width: 140px;
    padding-left: 30px !important;
    padding-right: 12px;
    background-position-x: 10px !important;
}

/* ---------- Pricing page tabs: widen for English ---------- */
.feestd-menu .on-service,
.feestd-menu .noactive {
    width: 160px !important;
    font-size: 14px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    box-sizing: border-box;
}

.feestd-menu {
    width: 720px !important;
}

/* ---------- Dropdown menu ---------- */
/* Anchor the absolutely-positioned dropdown to its parent <li> */
.head-menu-text-1 ul li,
.head-menu-text-3-1 ul li {
    position: relative;
}

.help-menu-child {
    display: none;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 4px 4px;
    min-width: 200px;
    overflow: hidden;
}

/* CSS hover for desktop */
.help-menu-top:hover .help-menu-child {
    display: block;
}

.help-menu-child ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-menu-child ul li {
    padding: 0 !important;
    display: block !important;
}

.help-menu-child ul li a {
    display: block;
    padding: 10px 20px;
    color: #333 !important;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    outline: none;
    cursor: pointer;
}

.help-menu-child ul li a:hover {
    background: #f0f4ff;
    color: #1e51c1 !important;
    border: none !important;
    padding-bottom: 10px !important;
}

a:focus, a:active {
    outline: none;
}

/* ---------- Nav menu width for English ---------- */
.head-menu-text-1 {
    width: 680px !important;
}

.head-menu-text-2 {
    width: 260px;
}

.head-menu-text-3-1 {
    width: 680px !important;
}

/* ---------- Pricing table: prevent cell text overflow ---------- */
.feestd-box table {
    table-layout: fixed;
    width: 100% !important;
}

.feestd-box table td {
    padding: 10px 6px !important;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.feestd-box table td:nth-child(1) { width: 18%; }
.feestd-box table td:nth-child(2) { width: 20%; }
.feestd-box table td:nth-child(3) { width: 22%; }
.feestd-box table td:nth-child(4) { width: 18%; }
.feestd-box table td:nth-child(5) { width: 22%; }

.feestd-box table tr:first-child td {
    font-weight: bold;
    background: #f5f6fa;
    font-size: 13px;
    white-space: nowrap;
}

/* Fix about-us bg image */
.about-us-bg img {
    width: 1920px;
    display: block;
    margin: 0 auto;
}

/* Search bar improvements */
.search-body-1200 .text {
    font-size: 14px;
    outline: none;
}

/* Pricing table improvements */
.feestd-box table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

/* Help section line height */
.help-right {
    line-height: 1.8;
}

.help-right h3 {
    margin-top: 20px;
}

/* News list items */
.new-list {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-dt {
    width: 100px;
    float: left;
    text-align: center;
}

.news-dt .font-20 {
    font-size: 20px;
    font-weight: bold;
    color: #1e51c1;
}

/* Fix carousel indicator position */
.carousel-indicators {
    bottom: 20px;
    z-index: 15;
}

.carousel-indicators li {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 4px;
    background-color: rgba(255,255,255,0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.carousel-indicators .active {
    background-color: #fff;
}

/* ---------- Banner overlay: English text ---------- */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    background: rgba(0,0,0,0.35);
}

.banner-overlay-text {
    text-align: center;
    padding: 40px 60px;
    color: #fff;
}

.banner-overlay-text h1 {
    font-size: 44px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    line-height: 1.2;
    letter-spacing: 1px;
}

.banner-overlay-text p {
    font-size: 20px;
    font-weight: 400;
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    line-height: 1.5;
}

