/* ========================================================================
   LOCAL GOOGLE FONTS - Noto Sans TC & Noto Serif TC
   ======================================================================== */

/* Noto Sans SC - Light 300 */
@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/noto-sans-sc-v38-chinese-simplified_latin-300.woff2') format('woff2');
}

/* Noto Sans SC - Regular 400 */
@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/noto-sans-sc-v38-chinese-simplified_latin-regular.woff2') format('woff2');
}

/* Noto Serif SC - Light 300 */
@font-face {
    font-family: 'Noto Serif SC';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/noto-serif-sc-v33-chinese-simplified_latin-300.woff2') format('woff2');
}

/* Noto Serif SC - Regular 400 */
@font-face {
    font-family: 'Noto Serif SC';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/noto-serif-sc-v33-chinese-simplified_latin-regular.woff2') format('woff2');
}


/* ========================================================================
   1. CSS VARIABLES & ROOT STYLES
   ======================================================================== */
:root {
    --primary-color: #87744e;     /* Gold accent */
    --dark-color: #261f18;        /* Dark brown for navbar and footer */
    --light-color: #ffffff;       /* White text for dark backgrounds */
    --light-bg: #e8e7e2;         /* Light gray background for content */
    --links: #87744e;             /* Gold for links/buttons */
    --content: #666666;           /* Light Grey */
}

/* ========================================================================
   2. BASE BODY STYLES
   ======================================================================== */
body {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    font-weight: 300;
    background-color: var(--light-color);
    color: var(--content);
    overflow-x: hidden;
    margin: 0;
    scroll-behavior: smooth;
}

/* Global paragraph justify styling */
p {
    text-align: justify;
   /*  text-align-last: left;  */
}

/* ========================================================================
   PARAGRAPH LINK COLOR MATCHING
   ======================================================================== */

/* Make links within paragraphs inherit the paragraph's text color */
p a,
p a:link,
p a:visited {
    color: inherit !important; /* Inherits the paragraph's color */
    text-decoration: underline; /* Keep underline for accessibility */
    text-decoration-color: currentColor; /* Use the inherited color for underline */
}

/* Hover state - you can choose to keep gold or inherit */
p a:hover {
    color: var(--primary-color) !important; /* Gold hover color */
    /* OR use: color: inherit !important; to keep same color on hover */
}

/* Focus and active states */
p a:focus,
p a:active {
    color: inherit !important;
    outline: 1px dotted currentColor; /* Accessible focus indicator */
}


/* Exceptions for centered paragraphs */
.intro-section p,
.video-section p,
.video-caption p,
.hero-subtitle {
    text-align: center;
    text-align-last: center;
}

/* .footer p,
.footer-left p {
    text-align: left;
    text-align-last: left;
}
*/

/* ========================================================================
   3. NAVBAR STYLES
   ======================================================================== */

/* 3.1 BASE NAVBAR */
.transition-navbar {
    background-color: transparent;
    padding: 15px 0;
    height: 123px;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transition: none !important;
    box-shadow: none !important;
}

.navbar-scrolled {
    background: transparent;
    height: 100px;
    border-radius: 0;
    overflow: visible;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: none !important;
    box-shadow: none !important;
}

.navbar .container {
  width: 100%;
  max-width: 1399px;
  margin: 0 auto;
  padding: 0;
}

.top-nav-row {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.top-nav {
    margin: 0;
    padding: 0;
}

/* Remove transitions globally */
.transition-navbar,
.navbar,
.navbar * {
    transition: none !important;
    box-shadow: none !important;
}

.navbar-collapse,
.navbar-collapse.show {
    box-shadow: none !important;
}

/* 3.2 NAVBAR LINKS & BRAND */
.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 45px;
    transition: height 0.3s ease;
}

.nav-link {
    color: var(--light-color);
    font-weight: 300;
    padding: 5px 15px;
    margin: 0;
    transition: color 0.3s ease;
    font-family: 'Noto Sans SC', sans-serif;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
	color: var(--light-color);
    width: 80%;
    left: 10%;
}

/* 3.3 MOBILE NAVBAR TOGGLE */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.75rem;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler-icon:hover {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2387744e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-width='2' d='M7 7l16 16M23 7L7 23'/%3e%3c/svg%3e");
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:hover {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2387744e' stroke-linecap='round' stroke-width='2' d='M7 7l16 16M23 7L7 23'/%3e%3c/svg%3e");
}

/* Remove all browser default link styling */
.nav-link,
.nav-link:link,
.nav-link:visited,
.nav-link:hover,
.nav-link:active,
.nav-link:focus {
    text-decoration: none !important;
    outline: none !important;
}

/* Mobile navbar links - force white */
@media (max-width: 991px) {
    .navbar-collapse .nav-link,
    .navbar-collapse .nav-link:link,
    .navbar-collapse .nav-link:visited,
    .navbar-collapse .nav-link:active,
    .navbar-collapse .nav-link:focus {
        color: var(--light-color) !important;
    }
    
    /* Only change color on hover */
    .navbar-collapse .nav-link:hover {
        color: var(--primary-color) !important;
    }
}


/* ========================================================================
   4. HERO SECTION STYLES
   ======================================================================== */

/* 4.1 HORIZONTAL HERO (INDEX PAGE) */
.hero-carousel {
    position: relative;
    height: 100vh;
    z-index: 1;
}

.carousel-item {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 0;
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 2;
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 100%, 100%;
    width: 30px;
    height: 30px;
}

/* 4.2 VERTICAL HERO (INSIDE PAGES) - HTML Picture Element Support */
.vertical-hero-container {
    position: relative;
    height: auto;
}

.hero-slide {
    position: relative;
    height: 50vh;
    width: 100%;
    background-color: var(--light-color) !important;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden; /* Ensure proper image containment */
}

/* Remove background overlay for inside pages */
.hero-slide::before {
    display: none !important;
}

/* HTML Picture Element Hero Styling */
.hero-slide-picture {
    background-image: none !important; /* Override any background images */
    position: relative;
}

.hero-picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-responsive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block; /* Ensure proper display */
}

/* Ensure content stays above the image */
.hero-slide-picture .container {
    position: relative;
    z-index: 2;
}

/* 4.3 HERO CONTENT & TYPOGRAPHY */
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--light-color);
    text-align: center;
    padding: 20px;
    width: 100%;
}

.hero-title {
    font-family: 'Noto Serif SC', serif;
    font-weight: 300;
    font-size: 5rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.hero-title2 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 300;
    font-size: 4rem;
    margin-bottom: -3rem;
    color: var(--light-color);
}

.hero-subtitle {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--light-color);
}

.hero-content h1.break-on-mobile span {
    display: inline;
}

/* ========================================================================
   5. CONTENT SECTION STYLES
   ======================================================================== */

/* 5.1 INTRODUCTION SECTION */
.intro-section {
    padding: 60px 0;
    background-color: var(--light-bg);
    color: var(--content);
    position: relative;
    z-index: 2;
}

.intro-section h2 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 300;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.intro-section .lead {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 300;
}

/* 5.2 FEATURED CONTENT */
.featured-content {
    padding: 20px 0;
    position: relative;
    z-index: 2;
    background-color: var(--light-color);
    margin-top: 60px;
    min-height: 900px;
    display: flex;
    align-items: flex-start;
}

.featured-content .row {
    --bs-gutter-x: 0.5rem;
}

.featured-content .container {
    max-width: 1280px;
    margin: 0 auto;
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
}

/* 5.3 FEATURE ITEMS */
.feature-item {
    text-align: left;
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease;
    border-radius: 15px;
    opacity: 0;
    transform: translateY(30px);
    transition-delay: calc(0.1s * var(--item-index, 0));
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.00);
}

.fade-in-section.is-visible .feature-item {
    opacity: 1;
    transform: translateY(0);
}

.feature-item .feature-icon img {
    max-width: 550px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 15px;
    transition: transform 0.5s ease;
}

.feature-item:hover .feature-icon img {
    transform: scale(1.02);
}

.feature-item h5 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 300;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item p {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    font-size: 1.2rem;
    color: var(--content);
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 300;
}

/* 5.4 INSIDE PAGE CONTENT */
.image-wrapper img {
    max-width: 550px;
    width: 100%;
    border-radius: 15px;
}

.text-content {
    padding: 20px;
}

.breadcrumb {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 300;
}

.breadcrumb a {
    color: var(--links);
    text-decoration: none;
    font-weight: 300;
}

.text-content h3 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 300;
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.text-content p {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    font-size: 1.2rem;
    color: var(--content);
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 300;
}

.text-content ul {
    list-style-type: none;
    padding-left: 0;
}

.text-content ul li {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    font-size: 1.25rem;
    color: var(--content);
    line-height: 1.6;
    margin-bottom: 10px;
    font-weight: 300;
    position: relative;
    padding-left: 30px;
}

.text-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background-image: url('../images/li.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.more-link {
    position: relative;
    display: inline-block;
    font-family: 'Noto Sans SC', Arial, sans-serif;
    color: var(--links);
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 1;
    padding-bottom: 2px;
    font-weight: 300;
}

.more-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.more-link:hover::after {
    width: 100%;
}

/* Terms & Conditions text styles */
.text-content p.tc-text {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    font-size: 1rem;
    color: var(--content);
    line-height: 1.5;
    margin-bottom: 12px;
    font-weight: 300;
}

.text-content p.tc-small {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    font-size: 0.9rem;
    color: var(--content);
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 300;
}

.text-content p.tc-emphasis {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    font-size: 1rem;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 12px;
    font-weight: 400;
}

/* ========================================================================
   6. VIDEO SECTION STYLES
   ======================================================================== */
.video-section {
    padding: 80px 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.floating-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    background-image: url(../images/dot.png);
    background-size: contain;
    opacity: 0.3;
    z-index: 1;
}

.floating-decoration.left {
    left: 10%;
    top: -10%;
    animation: float 6s ease-in-out infinite;
}

.floating-decoration.right {
    right: 10%;
    bottom: -15%;
    animation: float 6s ease-in-out infinite;
}

.floating-decoration.inside {
    left: -10%;
    top: 77%;
    animation: float 6s ease-in-out infinite;
}

.floating-decoration.inside1 {
    left: -10%;
    top: 83%;
    animation: float 6s ease-in-out infinite;
}

.floating-decoration.inside2 {
    left: -10%;
    top: 64%;
    animation: float 6s ease-in-out infinite;
}

.floating-decoration.inside3 {
    left: -10%;
    top: 68%;
    animation: float 6s ease-in-out infinite;
}

.floating-decoration.inside4 {
    left: -10%;
    top: 49%;
    animation: float 6s ease-in-out infinite;
}

.video-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
    position: relative;
}

.video-caption {
    text-align: center;
    margin-top: 0;
}

.video-caption h2 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 300;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.video-caption p {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-top: 10px;
    font-weight: 300;
}

/* ========================================================================
   7. FOOTER STYLES
   ======================================================================== */
.footer {
    background-color: var(--dark-color);
    color: var(--primary-color);
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

.footer h5 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 300;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.footer-left p {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.8;
    font-weight: 300;
}

.footer-left p:last-child {
    font-size: 0.85rem;
    font-weight: 300;
}

.footer a {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    font-size: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
}

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

.list-unstyled li {
    margin-bottom: 5px;
}

.footer .row.mt-4 p {
    font-size: 0.85rem;
    font-weight: 300;
	text-align: center;
}

/* ========================================================================
   9. MEDIA QUERIES
   ======================================================================== */

/* Language switcher styling in mobile footer */
.mobile-language-switcher {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    border-bottom: none !important;
}

.mobile-language-switcher .language-link {
    border-bottom: none !important;
    font-size: 1rem !important;
    color: var(--light-color);
    transition: color 0.3s ease;
    padding: 0 !important;
    margin: 0;
    width: auto;
    text-align: left;
}

.mobile-language-switcher .language-link:hover {
    color: var(--primary-color);
}

.language-separator {
    color: var(--light-color);
    font-size: 1rem;
    margin: 0 8px;
    opacity: 0.7;
}

/* 9.1 MOBILE STYLES (max-width: 991px) */
@media (max-width: 991px) {
    /* Container adjustments */
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .intro-section, .video-section, .featured-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .feature-item {
        padding: 15px 10px !important;
    }

    .featured-content {
        padding: 10px 10px !important;
        min-height: 800px;
    }

    .hero-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
	
	.text-content {
	margin-top: 15px;
    padding: 20px;
}

    /* Mobile navbar */
    .navbar-brand img {
        content: url("../images/ncb_logo_gold.png");
        padding-left: 10px;
    }

    .transition-navbar {
        background-color: #261f18;
        height: auto;
    }

    .navbar-scrolled {
        height: auto;
    }

    .navbar .container {
        flex-direction: row;
        padding-left: 0;
        padding-right: 0;
    }

    .navbar-brand {
        margin-left: 0;
    }

    /* Ensure body/page can scroll when menu is closed */
    body, html {
        overflow: auto !important;
        position: static !important;
    }

    /* FIXED: Mobile menu scrolling solution */
    .navbar-collapse {
        background-color: var(--dark-color);
        border-radius: 0 0 15px 15px;
        padding: 15px 0;
        height: calc(100vh - 60px) !important;
        max-height: calc(100vh - 60px) !important;
        overflow-y: auto !important;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        width: 100%;
        box-shadow: none !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;
        -webkit-overflow-scrolling: touch;
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        border-radius: 0 !important;
        height: calc(100vh - 60px) !important;
        max-height: calc(100vh - 60px) !important;
        overflow-y: auto !important;
        position: fixed !important;
    }

    .navbar-nav-container {
        margin-right: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-link {
        color: var(--light-color);
        display: flex;
        align-items: center;
        padding: 10px 15px;
        margin: 0;
        width: 100%;
        text-align: left;
        font-size: 1.3rem;
        transform: translateX(-10px);
        opacity: 0.8;
        transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
    }

    .navbar-collapse.show .nav-link {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-link.home-link,
    .nav-link.login-link {
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .top-nav-row .nav-link {
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .top-nav-row .nav-link:last-child {
        border-bottom: none;
    }

    .top-nav {
        order: 1;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .main-nav {
        order: 2;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .top-nav-row {
        order: 3;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        align-items: flex-start;
        justify-content: flex-start;
    }

    .top-nav-row .nav-link {
        padding: 10px 15px;
    }

    .nav-link::after {
        display: none;
    }

    .footer-nav-link {
        font-size: 1rem;
    }

    /* Hero Section Mobile Adjustments */
    .hero-slide {
        height: 40vh; /* Reduced height for mobile */
    }

    .hero-picture {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .hero-responsive-img {
        object-fit: cover;
        object-position: center;
        width: 100%;
        height: 100%;
    }

    .hero-title {
        font-size: 3rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .hero-title2 {
        font-size: 3rem;
        line-height: 1.2;
        margin-bottom: -2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .hero-content h1.break-on-mobile span {
        display: block;
    }

    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Change from padding-top method to absolute positioning like hero */
  .feature-icon {
    position: relative;
    width: 100%;
    height: 280px; /* Fixed height instead of padding-top percentage */
    overflow: hidden !important;
    margin-bottom: 20px;
    border-radius: 15px !important;
    background-color: transparent;
    -webkit-clip-path: inset(0 round 15px);
    clip-path: inset(0 round 15px);
    isolation: isolate;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .feature-icon img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0 !important;
    display: block;
    transition: transform 0.5s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

    .feature-item .feature-icon {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform;
    }

    .feature-item:hover .feature-icon img {
        transform: scale(1.02) translateZ(0);
    }

    .feature-item {
        padding: 20px 15px;
        order: 0;
    }

    .featured-content {
        margin-top: 20px;
        padding: 15px 15px;
    }

    /* Mobile reordering */
    .feature-item[style*="--item-index: 0"] { order: 1; }
    .feature-item[style*="--item-index: 3"] { order: 2; }
    .feature-item[style*="--item-index: 1"] { order: 3; }
    .feature-item[style*="--item-index: 4"] { order: 4; }
    .feature-item[style*="--item-index: 2"] { order: 5; }
    .feature-item[style*="--item-index: 5"] { order: 6; }

    .featured-content .row {
        display: flex;
        flex-direction: column;
        --bs-gutter-x: 0.5rem;
    }

    .featured-content .col-12.col-md-6 {
        display: contents;
    }

    /* Inside page image wrapper */
    .image-wrapper {
        position: relative;
        width: 100%;
        padding-top: 68.5714%;
        overflow: hidden !important;
        border-radius: 15px !important;
        -webkit-clip-path: inset(0 round 15px);
        clip-path: inset(0 round 15px);
    }

    .image-wrapper img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 0 !important;
    }

    /* Video Section */
    .video-section {
        padding: 80px 0 40px 0;
    }

    /* Footer */
    .footer-links {
        display: none;
    }

    /* General Mobile Adjustments */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .intro-section, .video-section, .featured-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* 9.2 SMALL MOBILE (max-width: 479px) */
@media (max-width: 479px) {
    .hero-slide {
        height: 45vh;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-title2 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-content {
        padding: 15px 10px !important;
    }

    .hero-title {
        margin-bottom: 10px;
    }

    .hero-title2 {
        margin-bottom: -25px;
    }

	.featured-content {
        margin-top: 30px;
        padding: 15px 15px;
		min-height: 600px;
    }

    /* Very small screens - further optimize spacing */
    .hero-content {
        padding: 15px 10px !important;
    }

    .intro-section {
        padding: 30px 5px !important;
    }

    .feature-item {
        padding: 15px 5px !important;
        margin-bottom: 15px;
    }

    .video-section {
        padding: 30px 10px !important;
    }

    .text-content {
        padding: 10px 5px;
    }

    .footer {
        padding: 30px 0;
    }

    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* 9.3 VERY SMALL MOBILE (max-width: 393px) */
@media (max-width: 393px) {
    .navbar-brand img {
        height: 28px !important;
        content: url("../images/ncb_logo_gold.png") !important;
        padding-left: 10px !important;
    }

    .navbar-collapse {
        height: calc(100vh - 50px) !important;
        max-height: calc(100vh - 50px) !important;
        padding-top: 10px !important;
        padding-bottom: 50px !important;
    }

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        height: calc(100vh - 50px) !important;
        max-height: calc(100vh - 50px) !important;
    }

    .mobile-menu-open body {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }

    .nav-link {
        padding: 12px 15px !important;
        font-size: 1.1rem !important;
    }
	
		.featured-content {
        margin-top: 30px;
        padding: 15px 15px;
		min-height: 600px;
    }
}

/* 9.4 TABLET RANGE (768px - 820px) */
@media (min-width: 768px) and (max-width: 820px) {
    .feature-icon,
    .image-wrapper {
        -webkit-clip-path: inset(0 round 15px) !important;
        clip-path: inset(0 round 15px) !important;
        border-radius: 15px !important;
        overflow: hidden !important;
        isolation: isolate !important;
        transform: translateZ(0) !important;
    }

    .feature-icon img,
    .image-wrapper img {
        border-radius: 0 !important;
        transform: translateZ(0);
        will-change: transform;
    }

    .intro-section {
        padding: 35px 20px !important;
    }

	.featured-content {
        margin-top: 30px;
        padding: 15px 15px;
		min-height: 600px;
    }
	
    .feature-item {
        padding: 20px 15px !important;
    }

    .video-section {
        padding: 50px 20px !important;
    }
}

@media (max-width: 1199px) {
    .navbar-brand img {
        height: 40px;
    }

    .featured-content .container {
        max-width: 100%;
        margin: 0;
        padding: 15px;
        border-radius: 0;
        box-shadow: none;
    }

    .floating-decoration {
        display: none;
    }

    .video-container {
        max-width: 100%;
        margin: 0;
    }
}

/* 9.5 DESKTOP STYLES (min-width: 992px) */
@media (min-width: 992px) {
    .hero-slide {
        height: 60vh;
    }

    .hero-responsive-img {
        object-fit: cover;
        object-position: center;
    }

    .transition-navbar {
        background: transparent;
        height: 100px;
        border-radius: 0;
        padding: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        transition: none !important;
        box-shadow: none !important;
    }

    .transition-navbar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 35px;
        background-color: #261f18;
        z-index: 1;
    }

    .transition-navbar::after {
        content: '';
        position: absolute;
        top: 35px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 1399px;
        height: 65px;
        background-color: #e8e7e2;
        border-radius: 0 0 60px 60px;
        z-index: 1;
    }

    .navbar-scrolled {
        display: none !important;
    }

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 1399px;
        padding: 0;
    }

    .navbar-brand {
        margin-left: 50px;
    }

    .navbar-collapse {
        display: flex !important;
        flex: 0 1 auto;
    }

    .navbar-nav-container {
        margin-right: 50px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .top-nav-row {
        margin-bottom: 0;
        display: none;
    }

    .top-nav, .main-nav {
        flex-direction: row;
        margin: 0;
        padding: 0;
    }

    .transition-navbar .container {
  max-width: 1399px; /* Fixed width as in screenshot */
  width: 100%;
  margin: 0 auto; /* Center the container */
  padding-left: 45px;
  padding-right: 45px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  position: relative;
  z-index: 10;
}

    .transition-navbar .navbar-brand {
  margin-left: 5px;
  margin-top: 43px;
  height: 50px;
  display: flex;
  align-items: center;
  z-index: 10;
}

    .transition-navbar .navbar-brand img {
        height: 38px;
    }

    .transition-navbar .navbar-nav-container {
  margin-right: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  z-index: 10;
}

    .transition-navbar .top-nav {
        opacity: 1 !important;
        height: 35px !important;
        overflow: visible !important;
        margin: 0;
        padding: 0;
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
    }

    .transition-navbar .top-nav .nav-item {
        height: 35px;
        display: flex;
        align-items: center;
    }

    .transition-navbar .top-nav .nav-link {
        color: var(--light-color);
        font-size: 0.9rem;
        padding: 0 10px;
        height: 35px;
        display: flex;
        align-items: center;
        margin: 0;
        white-space: nowrap;
    }

    .transition-navbar .top-nav .nav-link:hover {
        color: var(--primary-color);
    }

    .transition-navbar .main-nav {
        height: 65px;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
    }

    .transition-navbar .main-nav .nav-item {
        height: 65px;
        display: flex;
        align-items: center;
    }

    .transition-navbar .main-nav .nav-link {
        color: #666666;
        font-size: 1rem;
        padding: 0 10px;
        height: 65px;
        display: flex;
        align-items: center;
        margin: 0;
        white-space: nowrap;
        position: relative;
        font-family: 'Noto Sans SC', sans-serif;
    }

    .transition-navbar .main-nav .nav-link:hover {
        color: var(--primary-color);
    }

    .transition-navbar .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 1px;
        bottom: 8px;
        left: 50%;
        background-color: var(--primary-color);
        transition: width 0.3s ease, left 0.3s ease;
    }

    .transition-navbar .nav-link:hover::after {
        width: 80%;
        left: 10%;
    }

    .transition-navbar .top-nav-row {
        display: none;
    }

    /* Desktop feature styles */
    .feature-item {
        max-width: 580px;
        margin: 0 auto;
    }

    .featured-content .row .col-md-6:first-child {
        position: relative;
        top: -80px;
    }

    .feature-icon img {
        border-radius: 15px;
    }
	
	.image-wrapper {
    margin-top: -70px; /* Move up by approximately 1/6 of intro section visual space */
    position: relative;
    z-index: 10; /* Ensure it appears above the intro section */
  }
	
	.footer .row.mt-4 p {
        text-align: center;
    }
	
}



/* ========================================================================
   10. FONT SIZE ADJUSTMENTS
   ======================================================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .hero-title2 {
        font-size: 3rem;
        line-height: 1.2;
        margin-bottom: -2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .intro-section h2,
    .video-caption h2,
    .text-content h2 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .text-content h3 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .feature-item h5 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .intro-section .lead {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .feature-item p,
    .text-content p {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .text-content ul li {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .text-content p.tc-text {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .text-content p.tc-small {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

@media (max-width: 479px) {
    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
    }

    .hero-title2 {
        font-size: 3rem;
        line-height: 1.1;
    }

    .intro-section h2,
    .video-caption h2 {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    .text-content h3 {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    .feature-item h5 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
}

/* ========================================================================
   11. SPACING OPTIMIZATIONS
   ======================================================================== */
.intro-section + .featured-content,
.featured-content + .video-section {
    margin-top: 0;
}

@media (max-width: 991px) {
    .hero-carousel + .intro-section {
        margin-top: 0;
    }

    .vertical-hero-container + .featured-content {
        margin-top: 0;
    }
	
	.intro-section + .featured-content,
.featured-content + .video-section {
    margin-top: 20px;
}
	
	.footer p:last-child {
        text-align: left !important;
    }
}
