/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Lato:wght@300;400&display=swap');

/* Apply smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Adjust this value based on your navbar height */
}

body {
    font-family: 'Lato', sans-serif;
    color: #333;
}

/* Typography */
h1, .navbar-brand {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
}

h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #5a5a5a;
}

h3 {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #444;
}

/* Navbar */
.navbar-brand {
    font-size: 1.75rem;
}

/* Hero Section */
#home {
    height: 100vh;
    background: url('../img/hero-background.jpg') no-repeat center center/cover;
    position: relative;
    color: white;
}

/* Add a dark overlay to make text readable */
#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* Ensure content is on top of the overlay */
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 6rem;
}

.hero-content h2 {
    color: white;
    font-size: 2.5rem;
}

/* Section Padding */
section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.content-wrapper {
    margin-top: -50px; /* Pulls content up slightly for a nice overlap effect */
    background-color: white;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.bg-light-tint {
    background-color: #fdfdfd;
}

/* Carousel Styling */
.carousel-item img {
    max-height: 600px;
    object-fit: cover; /* Ensures images fill the space without distortion */
    border-radius: 8px;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 10px;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 4rem;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    h2 {
        font-size: 2.5rem;
    }
}
/* --- Language Specific Font Adjustments --- */

/* Use Noto Sans for body text in Chinese */
body.lang-zh {
    font-family: 'Noto Sans SC', 'Lato', sans-serif;
}

/* For headings in Chinese, try Noto Sans first, then fall back to the script font */
body.lang-zh h1,
body.lang-zh h2,
body.lang-zh .navbar-brand {
    font-family: 'Noto Sans SC', 'Dancing Script', cursive;
}

/* Make dropdown items clickable */
.dropdown-item {
    cursor: pointer;
}
