/* ==========================================
   Pages CSS - Secondary Pages Styles
   For /company/ and /business/ pages
   ========================================== */

/* Override fullpage scrolling - Enable normal scroll */
html, body {
    overflow: auto !important;
    height: auto !important;
}

/* Header color override for secondary pages */
header {
    background: transparent;
}

/* Use the existing header dark mode mechanism from main site */
header.dark .logo,
header.dark .hamburger span {
    /* Inherits black color from main CSS */
}

/* Page wrapper */
.page-wrapper {
    width: 100%;
    min-height: 100vh;
}

/* Page sections */
.page-section {
    width: 100%;
    min-height: 100vh;
    padding: 100px 60px 80px;
    position: relative;
}

.page-section.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 60px;
}

/* Hero section - Split Layout Design */
.page-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    max-height: 900px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    background: #ffffff;
}

/* Text column (left) */
.page-hero__text-column {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 80px 60px 80px 120px;
    background: #ffffff;
}

.page-hero__text-wrapper {
    max-width: 600px;
    width: 100%;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s var(--entry-easing),
                transform 1s var(--entry-easing);
    transition-delay: 0.2s;
}

.page-hero__text-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Title (large English serif) */
.page-hero__title {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(5rem, 10vw, 9rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: #000000;
    margin-bottom: 2rem;
    word-break: break-word;
}

/* Subtitle (Japanese) */
.page-hero__subtitle {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 2.5rem;
    letter-spacing: 0.1em;
}

/* Description text */
.page-hero__description {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.9;
    color: #666666;
    margin: 0;
}

/* Image column (right) */
.page-hero__image-column {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.page-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s var(--entry-easing),
                transform 1.2s var(--entry-easing);
    transition-delay: 0.4s;
}

.page-hero__image.visible {
    opacity: 1;
    transform: scale(1);
}

/* Remove old hero content styles */
.page-hero::before,
.page-hero-content {
    display: none;
}

/* Header width override for secondary pages */
header.dark {
    max-width: 1400px;
    width: calc(100% - 80px); /* 40px padding on each side */
    padding: 0 20px;
}

/* Bottom Breadcrumb Navigation - Same design as hero breadcrumb */
.breadcrumb {
    padding: 40px 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    flex-wrap: wrap;
}

.breadcrumb .breadcrumb-icon {
    display: flex;
    align-items: center;
    color: #333;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #666;
}

.breadcrumb .breadcrumb-separator {
    color: #999;
    font-weight: 300;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

/* Content sections */
.content-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 60px;
}

.content-section.gray {
    background: #f5f5f5;
}

.content-section.white {
    background: #fff;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 80px;
}

/* Content section typography - Improved readability */
.content-section.white h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.content-section.white h2:first-child {
    margin-top: 0;
}

.content-section.white p {
    line-height: 1.75;
    margin-bottom: 1.2rem;
    color: #333;
    font-size: 0.8rem;
}

.content-section.white ul {
    margin-bottom: 2rem;
    margin-left: 1.5rem;
}

.content-section.white li {
    line-height: 1.75;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.8rem;
}

/* Section title */
.section-title {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #333;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 0.9;
}

.section-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 3rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Two column grid */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Text content */
.text-content h2 {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.1;
}

.text-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #333;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.text-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

.text-content ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.text-content li {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.text-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ff6b6b;
}

/* Image container */
.image-container {
    position: relative;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.image-container.rotated {
    transform: rotate(-3deg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.image-container.rotated img {
    transform: rotate(3deg) scale(1.1);
}

/* President's message section */
.president-message {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
}

.president-photo {
    position: relative;
    height: 500px;
    overflow: hidden;
    transform: rotate(-3deg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.president-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.president-content h3 {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #333;
    margin-bottom: 2rem;
    font-weight: 400;
}

.president-signature {
    margin-top: 3rem;
    text-align: right;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

/* Company details table */
.company-table {
    width: 100%;
    border-collapse: collapse;
    margin: 3rem 0;
}

.company-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.company-table th {
    text-align: left;
    padding: 1.5rem 2rem 1.5rem 0;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    width: 200px;
}

.company-table td {
    padding: 1.5rem 0;
    color: #666;
    line-height: 1.8;
}

/* Company History Timeline - Visual Design with Green Line */
.timeline-visual {
    position: relative;
    padding-left: 60px;
    margin: 0 0;
}

/* Vertical black line */
.timeline-visual::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 20px;
    bottom: 20px;
    width: 3px;
    background-color: #333333;
}

.timeline-visual .timeline-item {
    position: relative;
    padding: 1rem 0 3rem 0;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
}

.timeline-visual .timeline-item:last-child {
    padding-bottom: 0;
}

/* Black dot */
.timeline-visual .timeline-item::before {
    content: '';
    position: absolute;
    left: -48px;
    top: 8px;
    width: 16px;
    height: 16px;
    background-color: #333333;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #333333;
}

.timeline-visual .timeline-year {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
}

.timeline-visual .timeline-heading {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 0.75rem 0;
}

.timeline-visual .timeline-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

/* Legacy timeline styles (kept for other pages if needed) */
.timeline {
    margin: 3rem 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-year {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.timeline-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
}

/* Certifications Table (2-column) */
.certifications-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 3rem 0;
    border-top: 1px solid #e0e0e0;
}

.certification-item {
    display: grid;
    grid-template-columns: 1fr 80px;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.certification-item:nth-child(even) {
    border-right: none;
}

.certification-name {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
}

.certification-count {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff6b6b;
    text-align: right;
}

/* Professional Memberships */
.memberships-list {
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.memberships-list li {
    padding: 1rem 0;
    padding-left: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
    position: relative;
}

.memberships-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: #ff6b6b;
}

/* Company Hero Top - Full Width Container (Title & Subtitle only) */
.company-hero-top {
    width: 100%;
    position: relative;
    background-color: #f8f8f8;
    overflow: visible;
    /* Graph paper pattern - subtle grid overlay */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 25px 25px;
    background-position: 0 0, 0 0;
}

.company-hero-top-content {
    max-width: 1400px;
    margin: 0;
    padding: 120px 80px 60px;
    position: relative;
    z-index: 2;
    overflow: visible;
}


/* Breadcrumb Section - Separate from background */
.company-breadcrumb-section {
    width: 100%;
    background-color: #ffffff;
}

.company-breadcrumb-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

/* Company Page Hero Section */
.company-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

/* Hero Breadcrumb */
.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 2rem;
    margin-bottom: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.breadcrumb-icon {
    display: flex;
    align-items: center;
    color: #333;
}

.breadcrumb-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #000;
}

.breadcrumb-separator {
    color: #999;
}

.breadcrumb-current {
    color: #000;
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.breadcrumb-current::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #000;
}

/* Company Hero Title */
.company-hero__title {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(3rem, 7.5vw, 7rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: #000000;
    margin: 0 0 0.75rem 0;
}

/* Company Hero Subtitle (Japanese) */
.company-hero__subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    color: #666666;
    margin: 0;
    letter-spacing: 0.1em;
}

/* Company Tab Navigation */
.company-tabs {
    display: flex;
    justify-content: center;
    gap: 3rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0;
    flex-wrap: wrap;
}

.company-tab {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    color: #666;
    text-decoration: none;
    padding-bottom: 1rem;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.company-tab:hover {
    color: #333;
}

.company-tab.active {
    color: #000;
    font-weight: 500;
}

.company-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #000;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 0;
}

.section-header__title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    font-weight: 700;
    color: #000;
    margin: 0;
}

.section-header__subtitle {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(0.6rem, 1vw, 0.75rem);
    color: #999;
    font-weight: 400;
}

/* Animation classes for Intersection Observer */
.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s var(--entry-easing),
                transform 1s var(--entry-easing);
}

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

/* Responsive - Tablet Width Consistency (768px-1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    header.dark {
        width: calc(100% - 60px) !important; /* 30px padding on each side */
        padding: 0 20px !important;
    }

    .breadcrumb {
        padding: 40px 60px 20px !important;
    }
}

/* Responsive - Tablet (1024px) */
@media (max-width: 1024px) {
    .company-hero-top-content {
        padding: 100px 60px 50px;
    }

    .company-breadcrumb-content {
        padding: 0 60px;
    }

    .company-hero {
        padding: 0 60px;
    }

    .company-hero__title {
        font-size: clamp(3rem, 7vw, 6rem);
        margin-bottom: 0.75rem;
    }

    .company-hero__subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .hero-breadcrumb {
        font-size: 0.85rem;
        margin-bottom: 3rem;
    }

    .company-tabs {
        gap: 2rem;
    }

    .section-header__title {
        font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    }

    .section-header__subtitle {
        font-size: clamp(0.55rem, 1vw, 0.7rem);
    }

    .page-hero__text-column {
        padding: 60px 40px 60px 60px;
    }

    .page-hero__title {
        font-size: clamp(4rem, 9vw, 6rem);
        margin-bottom: 1.5rem;
    }

    .page-hero__subtitle {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }

    .page-hero__description {
        font-size: 0.95rem;
        line-height: 1.8;
    }
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    header.dark {
        width: calc(100% - 40px); /* 20px padding on each side */
        padding: 0 15px;
    }

    .company-hero-top-content {
        padding: 80px 40px 50px;
    }

    .company-breadcrumb-content {
        padding: 0 40px;
    }

    .company-hero {
        padding: 0 40px;
    }

    .breadcrumb {
        padding: 40px 40px 20px;
    }

    .company-hero__title {
        font-size: clamp(2.5rem, 8vw, 5rem);
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .company-hero__subtitle {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .hero-breadcrumb {
        font-size: 0.8rem;
        gap: 0.6rem;
        padding-top: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .breadcrumb-icon svg {
        width: 16px;
        height: 16px;
    }

    .company-tabs {
        gap: 1.5rem;
    }

    .company-tab {
        font-size: 0.9rem;
    }

    .section-header {
        margin-top: 1.5rem;
        gap: 0.75rem;
    }

    .section-header__title {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    .section-header__subtitle {
        font-size: clamp(0.65rem, 2vw, 0.8rem);
    }

    .page-hero {
        height: auto;
        min-height: 100vh;
        max-height: none;
        grid-template-columns: 1fr;
        grid-template-rows: auto 50vh;
    }

    .page-hero__text-column {
        padding: 100px 40px 60px 40px;
        justify-content: center;
    }

    .page-hero__text-wrapper {
        max-width: 100%;
    }

    .page-hero__title {
        font-size: clamp(3.5rem, 12vw, 5rem);
        margin-bottom: 1.5rem;
    }

    .page-hero__subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .page-hero__description {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .page-hero__image-column {
        min-height: 50vh;
    }

    .page-section {
        padding: 80px 40px 60px;
    }

    .content-section {
        padding: 0 40px;
    }

    .content-section.white {
        padding: 40px 30px;
    }

    /* Timeline responsive */
    .timeline-visual .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .timeline-visual .timeline-year {
        font-size: 1.3rem;
    }

    .timeline-visual .timeline-year span {
        font-size: 2rem !important;
    }

    .timeline-visual .timeline-heading {
        font-size: 1.1rem;
    }

    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .president-message {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .president-photo {
        height: 400px;
    }

    .company-table th {
        width: 150px;
    }
}

/* Responsive - Medium Tablet (iPad, Tablet Landscape) */
@media (min-width: 769px) and (max-width: 1024px) {
    .section-header {
        margin-top: 1.5rem;
        gap: 0.75rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    header.dark {
        width: calc(100% - 24px); /* 12px padding on each side */
        padding: 0 12px;
    }

    .company-hero-top-content {
        padding: 60px 15px 40px;
        max-width: 100%;
    }

    .company-breadcrumb-content {
        padding: 0 15px;
    }

    .company-hero {
        padding: 0 15px;
        max-width: 100%;
    }

    .company-hero__title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        margin-top: 2rem;
        margin-bottom: 0.5rem;
    }

    .company-hero__subtitle {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .hero-breadcrumb {
        font-size: 0.625rem;
        gap: 0.4rem;
        padding-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .breadcrumb-icon svg {
        width: 12px;
        height: 12px;
    }

    /* Horizontal scrolling tabs wrapper for mobile */
    .company-tabs-wrapper {
        position: relative;
        margin-left: -15px;
        margin-right: -15px;
        margin-bottom: 1rem;
    }

    .company-tabs-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 60px;
        background: linear-gradient(270deg, #ffffff 0%, #ffffff 15%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
        pointer-events: none;
        z-index: 2;
    }

    .company-tabs {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        gap: 0;
        padding-bottom: 2px;
        padding-left: 15px;
        padding-right: 15px;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    .company-tabs::-webkit-scrollbar {
        display: none;  /* Chrome, Safari, Opera */
    }

    .company-tab {
        font-size: 0.8rem;
        padding: 0 1rem 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }

    .section-header {
        margin-top: 0.75rem;
        gap: 0.5rem;
    }

    .section-header__title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .section-header__subtitle {
        font-size: clamp(0.5rem, 2.5vw, 0.7rem);
    }

    .page-hero__text-column {
        padding: 80px 30px 50px 30px;
    }

    .page-hero__title {
        font-size: clamp(3rem, 14vw, 4rem);
        margin-bottom: 1.2rem;
    }

    .page-hero__subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }

    .page-hero__description {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .page-hero__image-column {
        min-height: 40vh;
    }

    .page-section {
        padding: 60px 15px 40px;
    }

    .page-section.hero {
        padding: 0 15px;
    }

    .content-section {
        padding: 0 20px;
        max-width: 95%;
    }

    .content-section.white {
        padding: 30px 15px;
    }

    .section-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .text-content h2 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .text-content h3 {
        font-size: 1.25rem;
    }

    .text-content p {
        font-size: 0.875rem;
        line-height: 1.7;
    }

    .text-content li {
        font-size: 0.875rem;
        line-height: 1.7;
    }

    .president-photo {
        height: 300px;
        transform: rotate(0deg);
    }

    .company-table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .company-table tbody {
        display: block;
    }

    .company-table tr {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #e0e0e0;
        padding: 1.5rem 0;
    }

    .company-table tr:first-child {
        padding-top: 0;
    }

    .company-table th {
        width: 100%;
        padding: 0 0 0.5rem 0;
        font-size: 0.75rem;
        text-align: left;
        border-bottom: none;
        color: #999;
        font-weight: 600;
    }

    .company-table td {
        width: 100%;
        padding: 0;
        font-size: 0.9rem;
        border-bottom: none;
        line-height: 1.7;
    }

    .breadcrumb {
        padding: 0px 15px;
        font-size: 0.625rem;
        gap: 0.4rem;
    }

    .breadcrumb .breadcrumb-icon svg {
        width: 12px;
        height: 12px;
    }

    .fade-in-up {
        transform: translateY(40px);
    }

    /* Timeline Visual - Mobile */
    .timeline-visual {
        padding-left: 40px;
    }

    .timeline-visual::before {
        left: 12px;
    }

    .timeline-visual .timeline-item::before {
        left: -34px;
        width: 12px;
        height: 12px;
    }

    .timeline-visual .timeline-year {
        font-size: 1.2rem;
    }

    .timeline-visual .timeline-heading {
        font-size: 1rem;
    }

    .timeline-visual .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
}

/* ==========================================
   Footer Overrides for Secondary Pages
   ========================================== */

/* Footer spacing */
.section-footer {
    padding: 80px 0;
    margin-top: 30px;
}

/* Override active class requirement from main site */
.section-footer .footer-container {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ==========================================
   Greeting Page Content Layout
   ========================================== */

.greeting-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 80px 80px;
    background-color: #ffffff;
}

.greeting-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.greeting-text {
    /* Text column */
}

.greeting-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.greeting-subtitle {
    font-family: 'Abril Fatface', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
}

.greeting-paragraph {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

.greeting-paragraph:last-of-type {
    margin-bottom: 2rem;
}

.greeting-signature {
    margin-top: 3rem;
}

.greeting-signature-title {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.greeting-signature-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

.greeting-image-wrapper {
    position: relative;
}

.greeting-image-animate {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.greeting-image-animate img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Greeting Page Responsive */
@media (max-width: 1024px) {
    .greeting-content {
        padding: 40px 40px 60px;
    }

    .greeting-grid {
        grid-template-columns: 1.3fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .greeting-content {
        padding: 30px 20px 40px;
    }

    .greeting-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .greeting-image-wrapper {
        order: -1;
    }

    .greeting-title {
        font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    }
}

/* ==========================================
   Scrolling Text for Secondary Pages
   ========================================== */

/* Greeting Page Scrolling Text */
.greeting-scroll-text {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    padding: 0 0;
    margin: 0;
}

.greeting-scroll-text .scroll-text-inner {
    display: inline-flex;
    white-space: nowrap;
    animation: scrollText 120s linear infinite;
    will-change: transform;
}

.greeting-scroll-text .scroll-text-inner span {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(3rem, 7.5vw, 6rem);
    color: rgba(0, 0, 0, 0.08);
    font-weight: 200;
    font-style: italic;
    padding-right: 3rem;
    letter-spacing: -0.02em;
    display: inline-block;
}

@keyframes scrollText {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Greeting Page Image Animation */
.greeting-image-animate {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.greeting-image-animate.visible {
    opacity: 1;
    transform: scale(1);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .greeting-scroll-text {
        padding: 40px 0;
        margin: 60px 0 0 0;
    }
}

/* ==========================================
 * Breadcrumb Icon (Common SVG)
 * ==========================================*/
.breadcrumb-icon svg,
.hero-breadcrumb .breadcrumb-icon svg {
    /* SVG is now defined via CSS instead of inline HTML */
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* Alternative: Use CSS background-image if removing SVG from HTML */
.breadcrumb-icon-bg {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8L12 3L21 8V19C21 19.5304 20.7893 20.0391 20.4142 20.4142C20.0391 20.7893 19.5304 21 19 21H5C4.46957 21 3.96086 20.7893 3.58579 20.4142C3.21071 20.0391 3 19.5304 3 19V8Z' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* ==========================================
   News Archive Page Styles
   ========================================== */

/* News Archive Section Container */
.news-archive-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 80px 120px;
    background-color: #ffffff;
}

/* Category Filter Buttons */
.news-archive-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #666;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 0.45rem 0.85rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.filter-button:hover {
    background: #e0e0e0;
    color: #333;
}

.filter-button.active {
    background: #333;
    color: #ffffff;
    border-color: #333;
}

/* News Archive Table */
.news-archive-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.news-archive-table thead th {
    text-align: left;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #333;
    background: #f8f8f8;
}

.news-archive-table thead th:first-child {
    width: 15%;
}

.news-archive-table thead th:nth-child(2) {
    width: 60%;
}

.news-archive-table thead th:last-child {
    width: 25%;
    text-align: right;
}

.news-archive-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.news-archive-table tbody tr:hover {
    background-color: #f8f8f8;
}

.news-archive-table tbody td {
    padding: 1.5rem 1.5rem;
    color: #666;
    line-height: 1.6;
    vertical-align: middle;
}

.news-archive-table .news-category {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.news-archive-table .news-title {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.news-archive-table .news-date {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #999;
    text-align: right;
}

/* Loading State */
.news-loading {
    text-align: center;
    padding: 4rem 2rem !important;
    color: #999;
}

.news-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.news-loading p {
    font-size: 1rem;
    margin: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.news-empty {
    text-align: center;
    padding: 4rem 2rem !important;
    color: #999;
    font-size: 1rem;
}

/* Error State */
.news-error {
    text-align: center;
    padding: 4rem 2rem !important;
}

.news-error p {
    color: #ff6b6b;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.retry-button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    background: #333;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.retry-button:hover {
    background: #000;
}

/* News Archive Responsive - Tablet */
@media (max-width: 768px) {
    .news-archive-section {
        padding: 40px 40px 80px;
    }

    .news-archive-filters {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .filter-button {
        font-size: 0.7rem;
        padding: 0.5rem 0.9rem;
    }

    .news-archive-table thead th {
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }

    .news-archive-table tbody td {
        padding: 1.2rem 1rem;
    }

    .news-archive-table .news-category {
        font-size: 0.75rem;
    }

    .news-archive-table .news-title {
        font-size: 0.95rem;
    }

    .news-archive-table .news-date {
        font-size: 0.85rem;
    }
}

/* News Archive Responsive - Mobile */
@media (max-width: 480px) {
    .news-archive-section {
        padding: 30px 20px 60px;
    }

    .news-archive-filters {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .filter-button {
        font-size: 0.7rem;
        padding: 0.45rem 0.85rem;
    }

    /* Stack table for mobile */
    .news-archive-table {
        display: block;
    }

    .news-archive-table thead {
        display: none;
    }

    .news-archive-table tbody {
        display: block;
    }

    .news-archive-table tbody tr {
        display: block;
        padding: 1.5rem 1rem;
        margin-bottom: 0.5rem;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
    }

    .news-archive-table tbody td {
        display: block;
        padding: 0.3rem 0;
        text-align: left !important;
        border-bottom: none;
    }

    .news-archive-table .news-category {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .news-archive-table .news-title {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .news-archive-table .news-date {
        font-size: 0.75rem;
        text-align: left !important;
    }
}

/* ==========================================
   Construction Examples Section
   ========================================== */

/* Construction Examples Section */
.construction-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 80px 120px;
    background-color: #ffffff;
}

/* Category Filters */
.construction-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Reuse .filter-button styles from News Archive */

/* Construction Examples Grid */
.construction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Empty State */
.construction-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

/* Construction Card */
.construction-card {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.construction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.construction-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.construction-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.construction-card:hover .construction-card-image {
    transform: scale(1.05);
}

.construction-card-content {
    padding: 1.5rem;
}

.construction-card-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.construction-card-count {
    font-size: 0.75rem;
    font-weight: 400;
    color: #999;
    margin-left: 0.5em;
}

/* Lightbox Modal */
.construction-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.construction-lightbox.active {
    visibility: visible;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(90vh - 80px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.construction-lightbox.active .lightbox-image {
    opacity: 1;
    transform: scale(1);
}

.lightbox-title {
    margin-top: 1.5rem;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
}

.construction-lightbox.active .lightbox-title {
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10002;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lightbox-close svg {
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.lightbox-close:hover svg {
    transform: rotate(90deg);
}

.lightbox-close:active {
    transform: scale(0.98);
}

/* Lightbox Navigation Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    font-weight: 300;
    width: 50px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10002;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lightbox-nav svg {
    transition: transform 0.3s ease;
}

.lightbox-prev {
    left: 20px;
    border-radius: 8px 4px 4px 8px;
}

.lightbox-next {
    right: 20px;
    border-radius: 4px 8px 8px 4px;
}

.construction-lightbox.active .lightbox-nav {
    opacity: 1;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.lightbox-prev:hover svg {
    transform: translateX(-3px);
}

.lightbox-next:hover svg {
    transform: translateX(3px);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.98);
}

.lightbox-nav.hidden {
    display: none;
}

/* Lightbox Indicators (dots) */
.lightbox-indicators {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    justify-content: center;
}

.lightbox-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

.lightbox-indicator.active {
    background: #ffffff;
    transform: scale(1.2);
}

.lightbox-indicators.hidden {
    display: none;
}

/* Construction Examples Responsive - Tablet */
@media (max-width: 768px) {
    .construction-section {
        padding: 40px 40px 80px;
    }

    .construction-filters {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .construction-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .construction-card-content {
        padding: 1.2rem;
    }

    .construction-card-title {
        font-size: 0.95rem;
    }

    .lightbox-title {
        font-size: 1rem;
        margin-top: 1rem;
    }
}

/* Construction Examples Responsive - Mobile */
@media (max-width: 480px) {
    .construction-section {
        padding: 30px 20px 60px;
    }

    .construction-filters {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .construction-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .construction-card-content {
        padding: 1rem;
    }

    .construction-card-title {
        font-size: 0.9rem;
    }

    .lightbox-close {
        top: -40px;
        font-size: 2rem;
    }

    .lightbox-title {
        font-size: 0.9rem;
        margin-top: 0.75rem;
    }
}
