/* =========================================
   Project 004 - Creative Portfolio Style (Minimalist Mono)
   ========================================= */

/* 1. Variables */
:root {
    --color-text: #111111;
    --color-text-light: #888888;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F5F5F5;
    --color-primary: #111111;
    --color-secondary: #333333;
    --color-accent: #111111;
    --color-border: #EEEEEE;

    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-en: 'Montserrat', sans-serif;

    --container-width: 1400px;
    --header-height: 120px;
}

/* 2. Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

h5 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

h6 {
    font-size: 1rem;
    margin-bottom: 10px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-en);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    color: inherit;
    transition: all 0.3s ease;
}

/* Default Text Link Style (Animated Underline) */
p a,
.text-link,
.news-title {
    position: relative;
    text-decoration: none;
    display: inline-block;
}

p a::after,
.text-link::after,
.news-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width 0.3s ease;
}

p a:hover::after,
.text-link:hover::after,
.news-row:hover .news-title::after {
    width: 100%;
}

a:hover {
    text-decoration: none;
}

/* Specific Updates related to user request */
.news-date {
    text-decoration: none !important;
    display: inline-block;
}

.news-row:hover .news-date {
    text-decoration: none !important;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

.section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

.text-center {
    text-align: center;
}

/* Margins */
.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mb-80 {
    margin-bottom: 80px;
}

.mb-100 {
    margin-bottom: 100px;
}

/* Paddings */
.pt-10 {
    padding-top: 10px;
}

.pt-20 {
    padding-top: 20px;
}

.pt-30 {
    padding-top: 30px;
}

.pt-40 {
    padding-top: 40px;
}

.pt-50 {
    padding-top: 50px;
}

.pt-60 {
    padding-top: 60px;
}

.pt-80 {
    padding-top: 80px;
}

.pt-100 {
    padding-top: 100px;
}

.pb-10 {
    padding-bottom: 10px;
}

.pb-20 {
    padding-bottom: 20px;
}

.pb-30 {
    padding-bottom: 30px;
}

.pb-40 {
    padding-bottom: 40px;
}

.pb-50 {
    padding-bottom: 50px;
}

.pb-60 {
    padding-bottom: 60px;
}

.pb-80 {
    padding-bottom: 80px;
}

.pb-100 {
    padding-bottom: 100px;
}

/* Horizontal Paddings */
.pl-10 {
    padding-left: 10px;
}

.pl-20 {
    padding-left: 20px;
}

.pl-30 {
    padding-left: 30px;
}

.pr-10 {
    padding-right: 10px;
}

.pr-20 {
    padding-right: 20px;
}

.pr-30 {
    padding-right: 30px;
}

/* Horizontal Margins */
.ml-10 {
    margin-left: 10px;
}

.ml-20 {
    margin-left: 20px;
}

.ml-30 {
    margin-left: 30px;
}

.mr-10 {
    margin-right: 10px;
}

.mr-20 {
    margin-right: 20px;
}

.mr-30 {
    margin-right: 30px;
}

/* Typography Decoration */
h3 {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 5px solid var(--color-accent);
}

h4 {
    margin-bottom: 20px;
    background: #f8f8f8;
    padding: 15px 20px;
}

h5 {
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 5px;
    display: inline-block;
}

/* Full Width Gallery Style */
.gallery-full-width {
    width: 100%;
    padding: 0 40px;
    /* Side padding for better visual */
    max-width: 100%;
}

@media (max-width: 768px) {
    .gallery-full-width {
        padding: 0 15px;
    }
}

/* Spinner for loading */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #666;
}

.loading-spinner.active {
    display: block;
}

h6 {
    margin-bottom: 15px;
    color: var(--color-text-light);
    border-left: 3px solid #ccc;
    padding-left: 15px;
}

/* Pre tag */
pre {
    background: #f4f4f4;
    padding: 20px;
    border: 1px solid #ddd;
    overflow-x: auto;
    font-family: monospace;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* 4. Header (White Fixed) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: white;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-en);
    font-size: 1.8rem;
    color: var(--color-text);
    letter-spacing: 0.05em;
}

.logo span {
    font-weight: 600;
}

.logo:hover {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-en);
    font-size: 1rem;
    color: var(--color-text);
    text-transform: capitalize;
    position: relative;
    padding-bottom: 5px;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    text-decoration: none;
}

.nav-btn-contact {
    border: 1px solid var(--color-text);
    padding: 10px 30px;
    font-family: var(--font-en);
    font-size: 0.9rem;
}

.nav-btn-contact:hover {
    background: var(--color-text);
    color: white;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 5. Footer (Horizontal Layout) */
footer {
    background: #FAFAFA;
    padding: 80px 0 30px;
    font-family: var(--font-heading);
    color: var(--color-text);
    border-top: 1px solid var(--color-border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 60px;
    gap: 40px;
}

.footer-info {
    max-width: 400px;
}

.footer-logo {
    font-family: var(--font-en);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: block;
}

.footer-address {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.footer-sitemap {
    flex: 1;
    text-align: right;
}

.footer-menu {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-end;
}

.footer-menu a {
    font-size: 0.95rem;
    color: var(--color-text);
    white-space: nowrap;
}

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

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 30px;
    font-family: var(--font-heading);
}

/* 6. Buttons */
.btn {
    display: inline-block;
    padding: 16px 50px;
    background: var(--color-text);
    color: white !important;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    border: 1px solid var(--color-text);
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn:hover {
    background: white;
    color: var(--color-text) !important;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-text);
    color: var(--color-text) !important;
}

.btn-outline:hover {
    background: var(--color-text);
    color: white !important;
    text-decoration: none;
}

/* CTA Button White Outline */
.btn-white-outline {
    background: transparent;
    border: 1px solid white;
    color: white !important;
    padding: 16px 50px;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-white-outline:hover {
    background: white;
    color: #333 !important;
}

/* White Button (Shadow) */
.btn-white {
    background: #f8f8f8;
    color: #333 !important;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: #eee;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    color: #000 !important;
}


/* 7. Hero & Page Header */
.hero-slider {
    position: relative;
    height: 100vh;
    margin-top: 0;
}

.slider-container {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-family: var(--font-en);
    font-size: 4rem;
    margin-bottom: 10px;
    color: white !important;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    color: white !important;
}

.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: var(--font-en);
    z-index: 10;
}

/* Page Header */
.page-header {
    height: 400px;
    /* Increased height */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center in the container */
    align-items: center;
    position: relative;
    margin-top: 0;
    text-align: center;
    color: white;
    padding-top: 60px;
    /* Push content down slightly for visual balance below nav */
}

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

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-family: var(--font-en);
    font-size: 1rem;
    color: white !important;
    margin-bottom: 10px;
}

/* 8. News Ticker (Slide Up Animation) */
.news-ticker-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    z-index: 20;
    border-top: 1px solid #eee;
}

.news-ticker-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    height: 30px;
    /* Fixed height for mask */
    overflow: hidden;
}

.news-label {
    font-family: var(--font-en);
    color: var(--color-accent);
    font-weight: bold;
    margin-right: 30px;
    flex-shrink: 0;
}

.news-ticker-scroll {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.news-ticker-items {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slide Up Logic managed by JS class additions, but basic styles here */
.news-ticker-item {
    position: absolute;
    top: 30px;
    /* Start below */
    left: 0;
    width: 100%;
    height: 30px;
    line-height: 30px;
    white-space: nowrap;
    overflow: hidden;
    margin-right: 20px;
    font-family: var(--font-en);
    color: #888;
}

/* SNS Icons */
.sns-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sns-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #333;
    color: white !important;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.sns-icon::after {
    display: none !important;
    /* Disable underline */
}

.sns-icon:hover {
    background: white;
    color: #111 !important;
    transform: translateY(-3px);
}

/* White Underline for Dark Backgrounds */
.footer-nav a,
.text-white-link {
    position: relative;
    text-decoration: none;
    display: inline-block;
}

.footer-nav a::after,
.text-white-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.footer-nav a:hover::after,
.text-white-link:hover::after {
    width: 100%;
}

/* 9. Section Headings (Centered) */
.section-header {
    margin-bottom: 70px;
    text-align: center;
}

/* Always center */
.section-subtitle {
    display: block;
    font-family: var(--font-en);
    color: var(--color-accent);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0;
}

/* 10. Zigzag Full Width Layout (Expertise) */
.zigzag-section {
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
}

.zigzag-row {
    display: flex;
    width: 100%;
    min-height: 500px;
    /* Ensure sufficient height */
}

.zigzag-content {
    width: 50%;
    /* Default Padding */
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

/* PC Alignment Logic:
   Align content to the container edge (1200px max width).
   Window center - 600px = Distance to container edge.
*/
@media (min-width: 1200px) {

    /* Text on Left (Row 1, 3...) */
    .zigzag-row:nth-child(odd) .zigzag-content {
        padding-left: calc(50vw - 600px + 30px);
        /* +30px matches container padding */
        padding-right: 60px;
    }

    /* Text on Right (Row 2...) */
    .zigzag-row:nth-child(even) .zigzag-content {
        padding-right: calc(50vw - 600px + 30px);
        padding-left: 60px;
    }
}

.zigzag-image {
    width: 50%;
    position: relative;
    overflow: hidden;
}

.zigzag-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zigzag-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* Reverse alternate rows */
.zigzag-row:nth-child(even) .zigzag-content {
    background: #fafafa;
}

/* Alt bg for text */

.biz-title-en {
    font-family: var(--font-en);
    color: var(--color-accent);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 10px;
}

.biz-title-ja {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 20px;
}

/* 11. News List Section (Index) */
.news-list-index {
    max-width: 900px;
    margin: 0 auto;
}

.news-item-index {
    display: flex;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.news-item-index .news-date {
    width: 120px;
    font-family: var(--font-en);
    color: #888;
    flex-shrink: 0;
}

.news-item-index .news-title {
    transition: color 0.3s;
    font-size: 1.1rem;
}

.news-item-index:hover .news-title {
    color: var(--color-accent);
}

/* 12. Products Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-item {
    background: #F9F9F9;
    padding: 30px;
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-name {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.product-img-placeholder {
    width: 100%;
    height: 200px;
    background: #ddd;
    margin-bottom: 20px;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* 13. Top Page Recruit (Distinct Design) */
.recruit-section-top {
    position: relative;
    padding: 120px 0;
    background: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
    color: white;
    text-align: center;
}

.recruit-section-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.recruit-content-top {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.recruit-title-top {
    color: white !important;
    font-size: 3rem;
    margin-bottom: 20px;
}

.recruit-lead-top {
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.recruit-text-top {
    margin-bottom: 40px;
    font-size: 1rem;
    opacity: 0.9;
}

/* 14. Contact Form (Horizontal Layout) */
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-wrapper {
    background: white;
    padding: 0;
    /* Remove padding for clean look */
}

.contact-form-horizontal {
    width: 100%;
    border-top: 2px solid var(--color-text);
}

.form-row {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.form-label-col {
    width: 300px;
    background: #f9f9f9;
    padding: 30px;
    display: flex;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
}

.form-input-col {
    flex: 1;
    padding: 30px;
    background: white;
}

.form-label-col span {
    font-size: 0.8rem;
    color: white;
    background: #cc0000;
    padding: 2px 6px;
    margin-left: 10px;
    border-radius: 2px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .form-label-col {
        width: 100%;
        padding: 15px 20px;
        background: #eee;
    }

    .form-input-col {
        padding: 20px;
    }
}

/* Business Page: Zigzag Contained */
.zigzag-row-contained {
    display: flex;
    width: 100%;
    margin-bottom: 60px;
    border: 1px solid #eee;
    /* Light border for definition */
}

.zigzag-row-contained .zigzag-content {
    width: 50%;
    padding: 60px;
    /* Standard padding without calc */
    background: white;
}

.zigzag-row-contained .zigzag-image {
    width: 50%;
    height: auto;
    min-height: 400px;
}

.zigzag-row-contained:nth-child(even) {
    flex-direction: row-reverse;
}

.zigzag-row-contained:nth-child(even) .zigzag-content {
    background: #fafafa;
}

/* Responsive for Contained */
@media (max-width: 768px) {
    .zigzag-row-contained {
        flex-direction: column !important;
    }

    .zigzag-row-contained .zigzag-content,
    .zigzag-row-contained .zigzag-image {
        width: 100%;
    }

    .zigzag-row-contained .zigzag-image {
        height: 300px;
    }

    .zigzag-row-contained .zigzag-content {
        padding: 40px 20px;
    }
}

/* 15. CTA Layout (Revised) */
.cta-section {
    padding: 100px 0;
    background: #333;
    color: white;
    text-align: center;
}

.cta-title {
    color: white !important;
    font-size: 2rem;
    margin-bottom: 40px;
}

.cta-content {
    margin-bottom: 50px;
}

.cta-flex-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    /* Space between Tel and Button */
}

/* Tel Block */
.cta-tel-block {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.cta-tel-upper {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.cta-tel-label {
    font-size: 1.2rem;
    font-family: var(--font-en);
    font-weight: bold;
    color: white;
}

.cta-tel-number {
    font-family: var(--font-en);
    font-size: 3.5rem;
    /* Doubled size */
    line-height: 1;
    color: white;
}

.cta-tel-hours {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
    padding-left: 60px;
    /* Align roughly under number */
}

/* 16. Map Placeholder */
.map-placeholder {
    width: 100%;
    height: 400px;
    background: #E2E2E2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-family: var(--font-en);
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .zigzag-row {
        flex-direction: column !important;
        min-height: auto;
    }

    .zigzag-content,
    .zigzag-image {
        width: 100%;
    }

    .zigzag-image {
        height: 300px;
    }

    .zigzag-content {
        padding: 40px 20px;
    }

    .cta-flex-box {
        flex-direction: column;
        gap: 40px;
    }

    .cta-tel-block {
        text-align: center;
        align-items: center;
    }

    .cta-tel-hours {
        padding-left: 0;
    }



    .cta-tel-number {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        flex-direction: column;
        padding: 0px;
        /* User Request: 0px padding on mobile */
    }

    /* Privacy Policy Mobile Menu Item */
    .mobile-only {
        display: block;
    }
}

/* Global Mobile Only Class - Hidden by default on Desktop */
.mobile-only {
    display: none;
}

/* Desktop: Hide mobile-only items */


/* About Intro Text Mobile Alignment */
@media (max-width: 768px) {
    .about-intro-text {
        text-align: left !important;
    }

    .cta-content {
        text-align: left !important;
    }
}

/* Company Profile Table Classes (Replacements for Inline) */
.company-profile-list {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.company-profile-dt {
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    /* User Request: Lines for all items */
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.company-profile-dd {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

@media (max-width: 768px) {
    .company-profile-list {
        grid-template-columns: 80px 1fr;
        /* User Request: Narrower header */
        gap: 15px;
    }

    /* Ensure borders line up or just block them? User asked for narrower header, implies keeping grid */
    .company-profile-dt,
    .company-profile-dd {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
}

/* News Ticker Mobile Fix */
/* News Ticker Mobile Fix (Flexbox Approach) */
@media (max-width: 768px) {
    .news-ticker-inner {
        height: 50px;
        /* Reduced from 50 to 50 (keep) or use auto? 50 is fine if flex works */
        display: flex;
        /* Force Flex */
        align-items: center;
        /* Vertical Center */
        line-height: normal;
        /* Reset line-height */
        padding: 5px 20px;
        /* Add padding for breathing room */
    }

    .news-label {
        margin-top: 2px;
        /* User Request: Nudge down 2px */
    }

    .news-ticker-scroll {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
        /* Center text vertically */
    }

    .news-ticker-item {
        height: 50px;
        /* Fill container */
        top: 50px;
        /* Start below (50px) matches container height */
        line-height: normal;
        display: flex;
        /* Use flex to center text */
        align-items: center;
        white-space: nowrap;
        transform: none;
        /* Remove previous transform hack */
    }

    .news-ticker-item.active {
        top: 0;
        /* Active at 0 */
    }

    .news-ticker-item.exit {
        top: -50px;
        /* Exit above */
    }

    .news-btn-mobile-fix {
        margin-left: 10px !important;
        padding: 6px 15px !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
        height: auto;
        line-height: 1.2;
        display: inline-block;
        flex-shrink: 0;
        /* Prevent shrinking */
    }
}

/* Mobile Navigation (Right Drawer) - Added */
@media (max-width: 1000px) {
    .menu-toggle {
        display: block;
        z-index: 1100;
        /* Above nav */
        position: absolute;
        right: 20px;
        top: 42%;
        /* Visually adjusted up from 50% */
        transform: translateY(-50%);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        /* Fully hidden */
        width: 280px;
        /* Drawer width */
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 100px;
        /* Space for toggle */
        padding-left: 20px;
        padding-right: 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        font-size: 1.1rem;
        display: block;
        padding: 10px 0;
    }

    .nav-btn-contact {
        display: inline-block;
        margin-top: 20px;
    }

    /* Privacy Policy Link - Show on Mobile */
    .mobile-only {
        display: block !important;
    }
}

/* ==========================================================================
   Employee Carousel (Auto-scroll)
   ========================================================================== */
.staff-carousel-section {
    background: var(--color-bg-alt);
    padding: 100px 0;
    overflow: hidden;
}

.staff-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.staff-carousel {
    display: flex;
    gap: 30px;
    animation: scroll-left 25s linear infinite;
    width: max-content;
}

.staff-carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.staff-card {
    flex-shrink: 0;
    width: 280px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.staff-card-img {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.staff-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.staff-card:hover .staff-card-img img {
    transform: scale(1.05);
}

.staff-card-body {
    padding: 20px;
    text-align: center;
}

.staff-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.staff-card-dept {
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.staff-card-year {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
}

.faq-question {
    width: 100%;
    padding: 25px 50px 25px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '−';
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 20px 25px;
}

.faq-answer p {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ==========================================================================
   Recruit-specific Buttons
   ========================================================================== */
.btn-primary {
    background: var(--color-primary);
    color: white !important;
    border: 2px solid var(--color-primary);
    padding: 16px 50px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-primary) !important;
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary);
    padding: 16px 50px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white !important;
}

/* ==========================================================================
   Staff People List (Grid)
   ========================================================================== */
.people-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 900px) {
    .people-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .people-grid {
        grid-template-columns: 1fr;
    }
}

.people-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    text-decoration: none;
    display: block;
}

.people-card:hover {
    transform: translateY(-5px);
}

.people-card-img {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.people-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.people-card-body {
    padding: 25px;
}

.people-card-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
}

.people-card-info {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.people-card-dept {
    color: var(--color-primary);
    font-weight: 500;
}

/* ==========================================================================
   Number Stats
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-family: var(--font-en);
    font-size: 3.5rem;
    color: var(--color-primary);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-unit {
    font-size: 1.2rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   Refined Stats Section (Luxurious & Visual)
   ========================================================================== */
.stats-visual-section {
    padding: 120px 0;
    background: var(--color-bg);
}

.stats-visual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

@media (max-width: 900px) {
    .stats-visual-grid {
        grid-template-columns: 1fr;
    }
}

.stat-box {
    padding: 40px;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
}

.stat-box-large {
    grid-column: span 2;
    background: var(--color-bg-alt);
    border: none;
    border-radius: 8px;
    align-items: center;
    text-align: center;
}

@media (max-width: 900px) {
    .stat-box-large {
        grid-column: span 1;
    }
}

.stat-label-en {
    font-family: var(--font-en);
    font-size: 1.4rem;
    color: var(--color-text-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.stat-value-large {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 8rem;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 20px;
}

.stat-unit-large {
    font-size: 2rem;
    font-weight: 500;
    margin-left: 10px;
}

.stat-desc {
    font-size: 1.1rem;
    color: var(--color-text);
}

/* Circle Graph Simulation */
.circle-graph-container {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: conic-gradient(var(--color-primary) 92%, #eee 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.circle-graph-inner {
    width: 220px;
    height: 220px;
    background: white;
    /* or bg-alt depending on parent */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Bar Graph Simulation */
.bar-graph-container {
    width: 100%;
    margin-top: 30px;
}

.bar-graph-row {
    margin-bottom: 20px;
}

.bar-graph-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.bar-graph-bar {
    height: 15px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.bar-graph-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 10px;
}

/* ==========================================================================
   Refined Carousel (Staggered & Larger)
   ========================================================================== */
.staff-carousel-section {
    padding: 150px 0;
    /* More space */
}

.staff-carousel-wrapper {
    height: 600px;
    /* Taller Wrapper */
    padding: 50px 0;
}

.staff-card {
    width: 350px;
    /* Larger */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.staff-card-img {
    height: 350px;
    /* More vertical */
}

/* Stagger Effect */
.staff-carousel .staff-card:nth-child(odd) {
    margin-top: 60px;
}

.staff-carousel .staff-card:nth-child(even) {
    margin-top: -30px;
}

.staff-card-name {
    font-size: 1.4rem;
}

.staff-card-dept {
    font-size: 1rem;
}

/* ==========================================================================
   File Upload Style
   ========================================================================== */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 150px;
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.file-upload-wrapper:hover {
    border-color: var(--color-primary);
    background: #fff;
}

.file-upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text {
    text-align: center;
    color: var(--color-text-light);
}

.file-upload-icon {
    font-size: 2rem;
    color: var(--color-border);
    margin-bottom: 10px;
}

/* ==========================================================================
   Zigzag Layout (Job Types & Growth)
   ========================================================================== */
.zigzag-section {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.zigzag-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.zigzag-row:nth-child(even) {
    flex-direction: row-reverse;
}

.zigzag-content {
    flex: 1;
}

.zigzag-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.zigzag-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.zigzag-row:hover .zigzag-image img {
    transform: scale(1.03);
}

.biz-title-en {
    font-family: var(--font-en);
    color: var(--color-primary);
    font-size: 1rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .zigzag-row {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .zigzag-row:nth-child(even) {
        flex-direction: column-reverse;
    }
}

/* ==========================================================================
   Refined Adjustments (User Feedback 2)
   ========================================================================== */

/* 1. Impactful Headings */
.page-title {
    font-size: 4rem;
    /* Doubled from typical 2-2.5rem */
    font-weight: 700;
}

.section-title {
    font-size: 3rem;
    /* Larger */
}

/* 2. Wider Layout */
:root {
    --container-width: 1400px;
    /* Increased from 1200px */
}

/* 3. Color Corrections (Wine Red Overrides) */
.text-gold {
    color: var(--color-primary) !important;
}

.bg-gold {
    background: var(--color-primary) !important;
}

/* 4. Carousel Fixes */
.staff-carousel {
    align-items: center;
    /* Prevent stretching */
    height: 600px;
    /* Fixed height container */
    padding-top: 50px;
}

.staff-card {
    height: 450px;
    /* Fixed height for all cards */
    width: 350px;
    margin: 0;
    /* Reset */
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Stagger Logic using Transform instead of Margin to correspond to height */
.staff-carousel .staff-card:nth-child(odd) {
    transform: translateY(40px);
}

.staff-carousel .staff-card:nth-child(even) {
    transform: translateY(-40px);
}

/* Hover effect needs to account for transform */
.staff-carousel .staff-card:nth-child(odd):hover {
    transform: translateY(35px);
}

.staff-carousel .staff-card:nth-child(even):hover {
    transform: translateY(-45px);
}

/* 5. Stats Animation Classes */
.stat-box {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.stat-box.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Circle Graph Animation */
.circle-graph-container {
    background: conic-gradient(var(--color-bg-alt) 0%, var(--color-bg-alt) 100%);
    /* Start empty */
    transition: --progress 2s ease-out;
    /* requires Houdini or JS manipulation of background */
}

/* We will use JS to update the gradient */

/* Bar Graph Animation */
.bar-graph-fill {
    /* width: 0 - Removed !important to allow JS control */
    transition: width 1.5s ease-out;
}

/* JS will set the width style for .bar-graph-fill */

/* 6. Image Fixes for Zigzag */
.zigzag-image {
    min-height: 300px;
    /* Ensure height even if image fails load partially */
    background: #f0f0f0;
    /* Placeholder bg */
}

/* ==========================================================================
   Office Image Fixes
   ========================================================================== */
.office-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.office-img {
    width: 100%;
    height: 350px;
    /* Fixed height */
    object-fit: cover;
    /* Crop to fit */
    border-radius: 8px;
}

@media (max-width: 768px) {
    .office-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   URGENT IMPACT UPDATES
   ========================================================================== */

/* 1. HUGE STATS */
.stat-value-large {
    font-size: clamp(6rem, 12vw, 12rem) !important;
    /* HUGE */
    line-height: 1;
    font-weight: 800;
}

.stat-box {
    padding: 60px 40px !important;
}

.stat-desc {
    font-size: 1.5rem !important;
    font-weight: 700;
    margin-top: 20px;
}

/* Gender Bar Visual */
.gender-bar-container {
    width: 100%;
    height: 60px;
    /* Thick bar */
    background: #f0f0f0;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    margin: 30px 0;
    display: flex;
}

.gender-bar-male {
    height: 100%;
    background: #333;
    /* Dark/Black for Male */
    width: 0;
    /* JS animates this */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    white-space: nowrap;
    transition: width 1.5s ease-out;
}

.gender-bar-female {
    height: 100%;
    background: var(--color-primary);
    /* Wine Red for Female */
    width: 0;
    /* JS animates this */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    white-space: nowrap;
    transition: width 1.5s ease-out;
}

/* 2. FULL WIDTH ZIGZAG (Edge to Edge) */
.zigzag-fw-section {
    width: 100%;
    overflow: hidden;
}

.zigzag-fw-row {
    display: flex;
    width: 100%;
    height: 700px;
    /* Tall rows for impact */
    position: relative;
}

.zigzag-fw-img {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-width: 50%;
    /* Ensure half width */
}

.zigzag-fw-content {
    flex: 1;
    padding: 80px;
    /* Huge padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-bg);
}

.zigzag-fw-row:nth-child(even) {
    flex-direction: row-reverse;
}

.zigzag-fw-content h3 {
    font-size: 3.5rem;
    /* Huge Heading */
    margin-bottom: 30px;
    font-family: var(--font-heading);
}

.zigzag-fw-content p {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .zigzag-fw-row {
        flex-direction: column !important;
        height: auto;
    }

    .zigzag-fw-img {
        height: 300px;
        width: 100%;
    }

    .zigzag-fw-content {
        padding: 40px;
    }
}

/* 3. CAROUSEL FIXES */
.staff-carousel-wrapper {
    height: 800px;
    /* Increase to ensure no cutoff */
    padding-top: 100px;
    /* Push down to clear header */
    overflow: hidden;
    /* Hide horizontal scrollbar but allow vertical content if height is enough */
}

.staff-card {
    height: 550px;
    /* Taller card */
    width: 400px;
    /* Wider card */
    overflow: visible;
    /* Allow content to spill if needed */
}

.staff-card-img {
    height: 400px;
    /* Taller image */
}

/* Ensure dropped card doesn't get cut */
.staff-carousel .staff-card:nth-child(odd) {
    transform: translateY(60px);
}

/* Ensure even card fits */
.staff-carousel .staff-card:nth-child(even) {
    transform: translateY(-60px);
}

.staff-carousel {
    padding-bottom: 100px;
    /* Extra space at bottom */
}


/* ==========================================================================
   FINAL POLISH (Carousel & Stats)
   ========================================================================== */

/* Carousel Radius */
.staff-card {
    border-radius: 16px;
    /* Rounded corners top and bottom */
    overflow: hidden;
    /* Ensure image clips */
    background: white;
    /* Ensure bg is white */
}

/* Infinite Loop Fix */
/* Assuming 5 items of 400px each = 2000px per set */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-2000px);
        /* Scroll exactly one set width */
    }
}

.staff-carousel {
    /* Use the new animation */
    animation: scroll-left 40s linear infinite;
    width: max-content;
    /* Ensure it fits all items */
    display: flex;
}

/* Pause on hover */
.staff-carousel:hover {
    animation-play-state: paused;
}

/* Stats Logic for Grid Balance */
.stats-visual-grid {
    /* Ensure 2 columns */
    /* Ensure 2 columns - REMOVED !important to allow responsive */
    grid-template-columns: repeat(2, 1fr);
}

/* Mid-Career Box styling similar to standard box or specific */
.stat-box-midcareer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   FINAL POLISH ANIMATIONS & LAYOUT
   ========================================================================== */

/* Fade Up Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Indicator Animation */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

/* CTA Split Layout */
.cta-split-section {
    display: flex;
    background: var(--color-primary);
    padding: 0 !important;
    /* Override standard section padding */
    width: 100%;
}

.cta-split-text {
    flex: 1;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: white;
}

.cta-split-text h2 {
    color: white !important;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: left;
}

.cta-split-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.cta-split-img {
    flex: 1;
    background-image: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?w=800&q=80');
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

@media (max-width: 768px) {
    .cta-split-section {
        flex-direction: column;
    }

    .cta-split-img {
        height: 300px;
        min-height: 300px;
    }

    .cta-split-text {
        padding: 40px;
    }
}

/* =========================================
   GENERIC PAGE HEADER
   ========================================= */
.page-header {
    background: #111;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    /* Offset for fixed header if needed */
}

/* Footer Buttons */
.footer-links-row {
    margin-top: 20px;
}

.footer-btn-link {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.1);
}

.footer-btn-link:hover {
    background: white;
    color: var(--color-primary);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 4px;
    /* Square with slight radius */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background-color: var(--color-secondary);
}


/* ==========================================================================
   FINAL FINAL CORRECTIONS
   ========================================================================== */

/* Hero Slideshow Animation */
@keyframes heroFade {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    43% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroFade 15s infinite;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 5s;
}

.hero-slide:nth-child(3) {
    animation-delay: 10s;
}



/* Footer Button - Red Border Style */
.footer-btn-link {
    background: transparent !important;
    color: var(--color-primary) !important;
    font-weight: 700;
    border: 2px solid var(--color-primary) !important;
    padding: 12px 30px !important;
    border-radius: 4px;
    box-shadow: none;
}

.footer-btn-link:hover {
    background: var(--color-primary) !important;
    color: white !important;
    transform: translateY(-2px);
}




/* Fix Hero Content Centering */
.slider-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Graph Animation - Clean Rule */
.bar-graph-fill {
    transition: width 1.5s ease-out;
    /* Removed width:0 - it was overriding inline JS styles */
}

/* Ensure overridden by inline style if needed, but transition persists */

/* FIX: Ensure Bar Graph Fill has transition and properties */
.bar-graph-fill {
    height: 100%;
    background-color: var(--color-primary);
    transition: width 1.5s ease-out !important;
    /* Force transition to exist */
}

/* Note: I am re-adding !important to transition because user says it doesn't move.
   Earlier I removed it to allow JS transition 'none' to work.
   BUT JS 'none' is only needed for reset. 
   If I rely on simple Timeout approach (0% -> wait -> Target), 
   I need the transition to be ACTIVE when the Change happens.
   !important ensures it is active.
   The JS "0%" set happens initially.
   Then Timeout set happens.
   So !important is safe with the Simple Timeout approach.
*/

/* FIX: Footer Button Design (Red Border) */
.footer-btn-link {
    background: transparent !important;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary) !important;
    box-shadow: none !important;
    font-weight: 700;
    padding: 12px 30px !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-btn-link:hover {
    background: var(--color-primary) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   LINE GRAPH STYLES
   ========================================================================== */
.line-graph-container {
    width: 100%;
    padding: 20px 0;
}

.line-graph-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
    padding: 0 5px;
}

.line-graph-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
}

.line-graph-svg {
    width: 100%;
    height: 100%;
}

.line-graph-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease-out;
}

.stat-box.animate .line-graph-path {
    stroke-dashoffset: 0;
}

.line-graph-point {
    opacity: 0;
    transform-origin: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.stat-box.animate .line-graph-point {
    opacity: 1;
}

.stat-box.animate .line-graph-point:nth-child(4) {
    transition-delay: 0.4s;
}

.stat-box.animate .line-graph-point:nth-child(5) {
    transition-delay: 0.8s;
}

.stat-box.animate .line-graph-point:nth-child(6) {
    transition-delay: 1.2s;
}

.stat-box.animate .line-graph-point:nth-child(7) {
    transition-delay: 1.6s;
}

.stat-box.animate .line-graph-point:nth-child(8) {
    transition-delay: 2s;
}

.line-graph-values {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 15px;
    padding: 0 5px;
}

/* ==========================================================================
   VERTICAL BAR CHART STYLES
   ========================================================================== */
.vbar-graph-container {
    width: 100%;
    padding: 20px 0;
}

.vbar-graph-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 300px;
    gap: 20px;
    padding: 0 20px;
}

.vbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.vbar-bar-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.vbar-bar {
    width: 100%;
    max-width: 60px;
    background: linear-gradient(180deg, var(--color-primary), #a83d5a);
    border-radius: 6px 6px 0 0;
    height: 0;
    transition: height 1.5s ease-out;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
}

.stat-box.animate .vbar-bar[data-height="25%"] {
    height: 25% !important;
}

.stat-box.animate .vbar-bar[data-height="35%"] {
    height: 35% !important;
}

.stat-box.animate .vbar-bar[data-height="45%"] {
    height: 45% !important;
}

.stat-box.animate .vbar-bar[data-height="55%"] {
    height: 55% !important;
}

.stat-box.animate .vbar-bar[data-height="70%"] {
    height: 70% !important;
}

.stat-box.animate .vbar-bar[data-height="85%"] {
    height: 85% !important;
}

.stat-box.animate .vbar-bar[data-height="100%"] {
    height: 100% !important;
}

/* Grid lines for vertical bar chart */
.vbar-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    z-index: 0;
}

.vbar-grid-line {
    border-bottom: 1px dashed #ddd;
    position: relative;
}

.vbar-grid-line span {
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 0.75rem;
    color: #999;
    font-family: var(--font-en);
}

.vbar-graph-container {
    position: relative;
}

.vbar-graph-wrapper {
    position: relative;
    z-index: 1;
}

.vbar-bar-highlight {
    background: linear-gradient(180deg, #6d1f33, var(--color-primary));
    box-shadow: 0 0 20px rgba(139, 41, 66, 0.4);
}

.vbar-value {
    font-family: var(--font-en);
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.vbar-label {
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 10px;
}

@media (max-width: 768px) {
    .vbar-graph-wrapper {
        height: 150px;
        gap: 8px;
    }

    .vbar-bar {
        max-width: 40px;
    }

    .vbar-value {
        font-size: 0.7rem;
    }

    .vbar-label {
        font-size: 0.75rem;
    }

    .line-graph-labels span,
    .line-graph-values span {
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   DUAL GRAPH LAYOUT (Side by Side)
   ========================================================================== */
.stat-box-wide {
    grid-column: span 2;
    min-height: 400px;
}

.dual-graph-container {
    display: flex;
    gap: 40px;
    width: 100%;
    height: 100%;
}

.dual-graph-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dual-graph-item .stat-label-en {
    margin-bottom: 15px;
}

.dual-graph-item .line-graph-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dual-graph-item .line-graph-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dual-graph-item .line-graph-svg {
    width: 100%;
    height: 100%;
}

/* V2 Vertical Bar Chart (Fixed positioning) */
.vbar-graph-container-v2 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vbar-graph-area {
    flex: 1;
    position: relative;
    display: flex;
    min-height: 200px;
}

.vbar-grid-v2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.vbar-grid-line-v2 {
    border-bottom: 1px dashed #ddd;
    position: relative;
    height: 0;
}

.vbar-grid-line-v2 span {
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 0.7rem;
    color: #999;
    font-family: var(--font-en);
}

.vbar-bars-v2 {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    flex: 1;
    padding-left: 35px;
    padding-bottom: 25px;
}

.vbar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}

.vbar-bar-v2 {
    width: 30px;
    background: linear-gradient(180deg, var(--color-primary), #a83d5a);
    border-radius: 4px 4px 0 0;
    height: 0;
    transition: height 1.5s ease-out;
}

.stat-box.animate .vbar-bar-v2[data-height="40%"] {
    height: 40% !important;
}

.stat-box.animate .vbar-bar-v2[data-height="55%"] {
    height: 55% !important;
}

.stat-box.animate .vbar-bar-v2[data-height="70%"] {
    height: 70% !important;
}

.stat-box.animate .vbar-bar-v2[data-height="85%"] {
    height: 85% !important;
}

.stat-box.animate .vbar-bar-v2[data-height="100%"] {
    height: 100% !important;
}

.vbar-lbl {
    font-family: var(--font-en);
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 8px;
}

@media (max-width: 900px) {
    .dual-graph-container {
        flex-direction: column;
        gap: 30px;
    }

    .stat-box-wide {
        grid-column: span 1;
    }
}

/* ==========================================================================
   V3 LINE GRAPH (Separate Box, 7 Years)
   ========================================================================== */
.line-graph-container-v3 {
    width: 100%;
    padding: 20px;
    overflow: visible;
}

.line-graph-wrapper-v3 {
    width: 100%;
    height: auto;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.line-graph-svg-v3 {
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: visible;
}

.line-graph-labels-v3,
.line-graph-values-v3 {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-en);
    font-size: 1rem;
    padding: 0 10px;
}

.line-graph-labels-v3 {
    color: var(--color-text-light);
    margin-top: 10px;
}

.line-graph-values-v3 {
    color: var(--color-primary);
    font-weight: 700;
    margin-top: 5px;
}

/* ==========================================================================
   V3 VERTICAL BAR CHART (Separate Box, 7 Years, Grid Behind)
   ========================================================================== */
.vbar-container-v3 {
    width: 100%;
    padding: 10px 0;
}

.vbar-area-v3 {
    position: relative;
    height: 250px;
    margin-left: 40px;
}

/* Grid lines - positioned behind bars with z-index */
.vbar-grid-v3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}

.vbar-gridline-v3 {
    border-bottom: 1px dashed #ddd;
    position: relative;
}

.vbar-gridline-v3 span {
    position: absolute;
    left: -50px;
    top: -10px;
    font-size: 1rem;
    color: #999;
    font-family: var(--font-en);
    width: 45px;
    text-align: right;
}

/* Bars container - positioned in front with higher z-index */
.vbar-bars-v3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 25px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    z-index: 2;
}

.vbar-column-v3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    flex: 1;
    position: relative;
}

.vbar-fill-v3 {
    width: 28px;
    background: linear-gradient(180deg, var(--color-primary), #a83d5a);
    border-radius: 4px 4px 0 0;
    height: 0;
    transition: height 1.5s ease-out;
}

.vbar-fill-highlight {
    background: linear-gradient(180deg, #6d1f33, var(--color-primary));
    box-shadow: 0 0 15px rgba(139, 41, 66, 0.4);
}

.vbar-column-v3 span {
    font-family: var(--font-en);
    font-size: 1rem;
    color: var(--color-text-light);
    margin-top: 10px;
    position: absolute;
    bottom: -30px;
}

/* Animation triggers for v3 bars */
.stat-box.animate .vbar-fill-v3[data-height="25%"] {
    height: 25% !important;
}

.stat-box.animate .vbar-fill-v3[data-height="35%"] {
    height: 35% !important;
}

.stat-box.animate .vbar-fill-v3[data-height="45%"] {
    height: 45% !important;
}

.stat-box.animate .vbar-fill-v3[data-height="60%"] {
    height: 60% !important;
}

.stat-box.animate .vbar-fill-v3[data-height="75%"] {
    height: 75% !important;
}

.stat-box.animate .vbar-fill-v3[data-height="90%"] {
    height: 90% !important;
}

.stat-box.animate .vbar-fill-v3[data-height="100%"] {
    height: 100% !important;
}

/* ==========================================================================
   Responsive Adjustments for V3 Graphs
   ========================================================================== */
@media (max-width: 768px) {
    .stat-box {
        padding: 25px 15px;
        /* Reduce padding on mobile */
        min-height: auto;
    }

    .vbar-area-v3 {
        margin-left: 30px;
        /* Reduce left margin space for axis labels */
    }

    .vbar-gridline-v3 span {
        left: -35px;
        width: 30px;
        font-size: 0.8rem;
        /* Smaller axis labels */
    }

    .vbar-fill-v3 {
        width: 14px;
        /* Thinner bars to fit 7 items */
    }

    .vbar-column-v3 span {
        font-size: 0.7rem;
        /* Smaller year labels */
        bottom: -25px;
        width: 100%;
        /* Ensure centering */
        text-align: center;
        white-space: nowrap;
        letter-spacing: -0.5px;
        /* Tighter spacing */
    }

    .line-graph-labels-v3 span,
    .line-graph-values-v3 span {
        font-size: 0.7rem;
        /* Smaller font for line graph labels */
    }

    .line-graph-container-v3 {
        padding: 20px 0;
        /* Reduce horizontal padding */
    }

    /* FIX: Force 1 column for Stats Visual Grid on Mobile */
    .stats-visual-grid {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr !important;
        gap: 30px;
        width: 100%;
    }

    .stat-box-large {
        width: 100%;
        min-height: auto;
    }
}

/* =========================================
   MASONRY GRID STYLES (CSS Columns)
   ========================================= */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    display: inline-block;
    width: 100%;
    border-radius: 8px;
    /* Optional rounded corners */
}

@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry-item:hover .masonry-caption {
    opacity: 1;
}

/* 11. Zigzag Full Width Layout (Services) */
.zigzag-fw-section {
    width: 100%;
    overflow: hidden;
}

.zigzag-fw-row {
    display: flex;
    width: 100%;
    height: 600px;
    position: relative;
}

.zigzag-fw-img {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-width: 50%;
}

.zigzag-fw-content {
    flex: 1;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.zigzag-fw-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* Gray background for alternate rows */
.zigzag-fw-row:nth-child(even) .zigzag-fw-content {
    background: #fafafa;
}

.zigzag-fw-content h3 {
    font-size: 3rem;
    margin-bottom: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.zigzag-fw-content p {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .zigzag-fw-row {
        flex-direction: column !important;
        height: auto;
    }

    .zigzag-fw-img {
        height: 300px;
        width: 100%;
    }

    .zigzag-fw-content {
        padding: 40px 20px;
    }

    .zigzag-fw-content h3 {
        font-size: 2rem;
    }
}