/* =========================================================
   Landing Layout and Background
   ========================================================= */

/* =========================================================
   REVISED NATURAL SCROLL ENGINE (100% Window Fix)
   ========================================================= */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%; /* Force base HTML to match viewport limits */
    overflow-x: hidden;
    overflow-y: auto; /* Restores standard native window scrolling */
    font-family: sans-serif;
}

body{ font-family: 'Roboto', "Microsoft JhengHei", "Apple LiGothic Medium", "Apple LiGothic Medium", "Lucida Grande", "Lucida Sans Unicode", Helvetica ,'Trebuchet MS';}
.zh-hk{font-family:"PingFang TC", 'Noto Sans', "Microsoft JhengHei", "Apple LiGothic Medium", "Apple LiGothic Medium", "Lucida Grande", "Lucida Sans Unicode", Helvetica;}
.zh-cn{font-family:"PingFang SC", 'Noto Sans SC', "Microsoft YaHei", "Source Han Sans SC", "WenQuanYi Zen Hei", 'Noto Sans',"Apple LiGothic Medium","Apple LiGothic Medium","Lucida Grande", "Lucida Sans Unicode", Helvetica;}

.landing-main-scroll-container {
    width: 100%;
    position: relative;
}

/* ==========================================================================
   SLIDE BASE LAYOUT
   ========================================================================== */
.slide {
    width: 100vw;
    position: relative;
    box-sizing: border-box;
}

/* ==========================================================================
   SECTION 1 (DYNAMIC FLEXBOX LAYER)
   ========================================================================== */
.section-1 {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Keeps things clean if content shifts */
  min-height: 900px;
}

.section-1-1 {
  width: 100%;
  box-sizing: border-box;
}

.slide.section-1 .landing-wrapper {
    position: relative; 
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 1660px) {
    .section-1 {
        min-height: 800px;
    }
}

@media screen and (max-width: 1440px) {
    .section-1 {
        min-height: 720px;
    }
}

/* ==========================================================================
   DISCLAIMER FOOTER STYLING
   ========================================================================== */
.slide.section1-1.disclaimer-A {
    background: #678270;
    color: #FFFFFF;
    font-size: 10px;
    line-height: 1.2em;
    padding: 10px;
}

.slide.section1-1.disclaimer-A p {
    margin: 0;
    text-align: left;
}

/* =========================================================
   SLIDE 2: DISCLAIMER CONTAINER HOME REVISIONS
   ========================================================= */
.slide.section-2 {
    background-color: #476953; 
    color: #FFFFFF;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    padding: 40px 40px 60px 40px; 
    height: auto; /* Adapts beautifully to text content length */
    position: relative;
}

/* Removed card layout entirely to reflect the exact target layout style */
.disclaimer-container.home {
    width: 100%;
    margin: 0 auto;
    font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft JhengHei", sans-serif;
    color: #2c5e3b; /* Deep branding green tone */
    line-height: 1.75;
    text-align: left;
    z-index: 2;
}

.disclaimer-container.home h2 {
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.disclaimer-container.home p {
    font-size: 12px;
    line-height:1.2em;
    margin-bottom: 16px;
    color: #FFFFFF; 
}

.tnc-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 2;
}

.shkp-logo {
    height: 42px;
    width: auto;
}

/* Clean out old box architecture wrappers completely */
.scrollable-info-box, 
.scrollable-text-content, 
.slide-2-content {
    display: none !important;
}

/* =========================================================
   Responsive Breakpoints for the Disclaimer Section
   ========================================================= */
@media (max-width: 768px) {
    .slide.section-2 {
        padding: 40px 20px 30px 20px;
    }
    .disclaimer-container.home h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    .disclaimer-container.home p {
        font-size: 12px;
        line-height: 1.6;
    }
    .shkp-logo {
        height: 30px;
    }
}

/* =========================================================
   Corner Decos (Fixed to Viewport Edges)
   ========================================================= */
.landing-deco-top-left,
.landing-deco-top-right,
.landing-deco-bottom-left,
.landing-deco-bottom-right {
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    width: 30vw;
    height: 45vw;
    z-index: 0;
    max-height: 50vh;
    pointer-events: none;
}

.landing-deco-top-left     { 
    top: 0; left: 0; background-image: url('../images/landing/main_bg_deco_1.png'); background-position: top left;
}
.landing-deco-top-right    { 
    top: 0; right: 0; background-image: url('../images/landing/main_bg_deco_2.png'); background-position: top right;
}
.landing-deco-bottom-left  { 
    bottom: 0; left: 0; background-image: url('../images/landing/main_bg_deco_4.png'); background-position: bottom left;
}
.landing-deco-bottom-right { 
    bottom: 0; right: 0; background-image: url('../images/landing/main_bg_deco_3.png'); background-position: bottom right;

}
@media (min-width: 1660px) {
  .landing-deco-top-left,
  .landing-deco-top-right,
  .landing-deco-bottom-left,
  .landing-deco-bottom-right {
      min-height: 200px;
  }
}

@media (max-width: 768px) {
  .landing-deco-top-left,
  .landing-deco-top-right,
  .landing-deco-bottom-left,
  .landing-deco-bottom-right {
      width: 45vw;
      height: 45vw;
  }
  .landing-deco-bottom-left{
    width: 45vw;
  }
}

/* =========================================================
   Central Layout Content Stack
   ========================================================= */

.landing-content-container {
    position: relative;
    display: flex;
    flex-direction: column; /* Stacks elements safely from top to bottom */
    align-items: center;    /* Anchors all children dead-center horizontally */
    justify-content: flex-start;/* Vertically centers the entire layout stack */
    width: 100%;
    height: 100vh;          /* Fills the viewport height perfectly */
    box-sizing: border-box;
    padding-top: 35px;
    z-index: 10;            /* Keeps text and buttons stacked safely above corner decos */
    gap: 0;              /* Sets uniform spacing between logo, animation, and slogan */
}

/* 1. Main Logo (On top of animation) */
.landing-main-logo {
    width: 100%; 
    height: 150px;
    min-height: 100px;
    background: url('../images/landing/main_logo.png') no-repeat center center;
    background-size: contain;
    margin: 0 auto; /* Extra insurance for alignment */
    margin-top:20px;
}
@media (max-width: 1440px) {
    .landing-content-container{
        padding-top: 0;
    }
    .landing-main-logo {
        width: 65%; 
        height: 130px;
    }
}
@media (max-width: 1024px) {
    .landing-content-container{
        padding-top: 30px;
    }
    .landing-main-logo {
        width: 65%; 
        height: 110px;
    }
}

@media (max-width: 768px) {
    .landing-content-container{
        padding-top: 80px;
    }
    .landing-main-logo {
        width: 50%; 
        height: 90px;
    }
}

/* 4. Language Buttons */
.enter-site-wrapper{
  text-align: center;
  padding-top: 30px;
  padding-bottom: 20px;
}
.enter-site-wrapper a{
    text-decoration: none;
}
.subtitle-enter-site{
    font-family: sans-serif;
    font-size: 20px;
    color: #2c5e3b;
    padding: 10px 20px;
    border-radius: 100px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
.subtitle-enter-site:hover{
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.subtitle-enter-site .tc{
  letter-spacing: 10%;
}

.landing-enter-wrapper {
    position: absolute;
    top: 20px;
    right: 30px;
    height: 50px;
    width: 206px;
    text-align: right;
    z-index: 99999;
}

.tnc-footer .landing-enter-wrapper {
    position: relative;
    top: auto;
    right: auto;
    margin-left: 70px;
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    align-items: center;
    height: 50px;
    width: 206px;
    flex: 0 0 auto;
}

.lang-btn {
    display: inline-block;
    width: 60px;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    font-family: sans-serif;
    color: #000000;
    background-color: rgba(255,255,255,0.8);
    border: 2px solid transparent;
    border-radius: 3px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.0);
}
.lang-btn.current{
    cursor: inherit;
    opacity: 0.6;
}

.lang-btn:hover {
    background-color: #ffffff;
    color: #c97f25;
    border-color: #ffffff;
    border-radius: 3px 15px 3px 3px;
    /* border-radius: 15px 3px 15px 15px; */
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.lang-btn.current:hover {
    background-color: rgba(255,255,255,0.8);
    color: #000000;
    border-color: transparent;
    border-radius: 3px;
    transform: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.0);
}

.tnc-footer{
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 10px;
}

.shkp-logo{
    height: 50px;
}

@media screen and (max-width: 768px) {
    .section-2 .enter-site-wrapper{
        display: none;
    }
    .tnc-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .tnc-footer .landing-enter-wrapper{
        margin-left: 0;
        margin-top: 30px;
        text-align: left;
    }
}

.slide-2-content{
  z-index: 10;
}

.section-2 .landing-deco-top-left,
.section-2 .landing-deco-bottom-right {
  z-index: 0;
}

/* ==========================================================================
   SEQUENTIAL POPUP MODAL STYLES
   ========================================================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Set higher than main content layers */
    opacity: 1;
    transition: all 0.3s ease;
}

.popup-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    width: 90%;
    max-width: 1024px;
    height: 60vh;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Scrollable Container inside the Popup */
.popup-scroll-content {
    flex-grow: 1;
    overflow-y: auto; /* Forces vertical scrollbar when paragraphs overflow */
    padding: 50px;
}

.popup-scroll-content h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2c5e3b;
    text-align: left;
}

.popup-scroll-content p {
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    text-align: left;
}

.popup-scroll-content a {
    color: #2b5b44;
    text-decoration: underline;
    transition: color 0.3s ease;
}

/* Top-Right Close Button */
.popup-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #666666;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.popup-close-btn:hover {
    color: #000000;
}

/* Utility Class to hide elements */
.popup-hidden {
    display: none !important;
}

/* ==========================================================================
   ANIMATION & VISIBILITY TIMING CONTROL
   ========================================================================== */
/* 1. Pause animations on load across all key elements */
.main-animation-wrapper,
.main-animation-wrapper .intro-animate,
.main-animation-wrapper .transport-swipe-animate,
.landing-main-slogan,
.enter-site-wrapper {
    animation-play-state: paused !important;
}

/* 2. Lock slogan and entry button to completely hidden while popups are active */
body:not(.start-animations) .landing-main-slogan,
body:not(.start-animations) .enter-site-wrapper {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 3. Setup a smooth, hardware-accelerated CSS transition for opacity and visibility.
   JavaScript will handle changing these values inline after the specified delays. */
.landing-main-slogan,
.enter-site-wrapper {
    transition: opacity 2.5s ease-in-out, visibility 2.5s ease-in-out !important;
}

/* 4. Release and play the core background landscape animations when popups are closed */
.start-animations .main-animation-wrapper,
.start-animations .main-animation-wrapper .intro-animate,
.start-animations .main-animation-wrapper .transport-swipe-animate {
    animation-play-state: running !important;
}


.image-annotation{
    position: absolute;
    color: #476953;
    font-size: 11px;
    text-align: right;
}

.image-annotation.building-annotation{
    right: 0;
    bottom: 15%;
}
.image-annotation.animation-annotation{
    right: 5%;
    bottom: -70%;
}

@media (max-width: 1024px) {
    .image-annotation.building-annotation{
        right: 0;
        bottom: 20%;
    }
    .image-annotation.animation-annotation{
        right: 5%;
        bottom: -100%;
    }
}

.sitelastmodified{
    list-style: none;
    padding: 0;
    font-size: 12px;
    color: #ffffff;
}

.disclaimer-container a{
    color: #FFFFFF;
    text-decoration: none;
}

.disclaimer-container a:hover{
    color: #e9e9e9;
}

.page-header h1{
    font-weight: bold;
}