/* Revue font-face: If not available, use fallback */
@font-face {
    font-family: 'Revue';
    src: local('Revue'), url('fonts/Revue.woff2') format('woff2'), url('fonts/Revue.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 96px; /* fallback spacing before JS calculates exact header height */
    line-height: 1.6;
    color: #333;
    background-color: #f7f7f7;
}

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}
/* Header layout */
header.site-header {
    display: block;
    background-color: #ffffff;
    padding: 0;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.nav-bar {
    background-color: #FFB400;
    padding: 10px 16px;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
    display: block;
}
.company-name {
    text-align: center;
    margin: 0 0 8px;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.company-name-main,
.company-name-sub {
    display: block;
    font-weight: 700;
    line-height: 1.15;
}
.company-name-main {
    color: #ff2a2a;
    font-size: 24px;
    font-family: 'Revue', Arial, sans-serif;
}
.company-name-sub {
    color: #1f4e79;
    font-size: 18px;
}
.nav-bar ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 32px;
}
.nav-bar li {
    margin: 0;
}
.nav-bar a {
    display: inline-block;
    background: #1E3A5F;
    color: #FFFFFF;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.nav-bar a.active,
.nav-bar a:hover {
    background: #0c6811;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    border-color: #fff;
}
.hero {
    margin-bottom: 14px;
}
.hero h1 {
    margin-bottom: 8px;
}
.hero-company-name,
.hero-company-name strong {
    color: #f00f0f !important;
}
.hero-company-name {
    margin: 0 0 10px;
}
.info-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 14px;
    margin: 14px 0;
}
footer {
    text-align: center;
    padding: 20px;
    background-color: #f1f1f1;
    margin-top: 40px;
}
.container {
    padding: 10px 5px;
    max-width: 1000px;
    margin: 12px auto 0;
    background: #fff;
    min-height: 65vh;
    box-sizing: border-box;
}
/* Product sub-items styling */
.container ul ul {
    margin-left: 30px;
    margin-top: 8px;
    margin-bottom: 8px;
    list-style-type: circle;
}
.container ul ul li {
    margin: 4px 0;
    color: #555;
    font-size: 0.95em;
}
/* Slider */
.slider-container {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    gap: 20px;
    align-items: flex-start;
}
.slider-text,
.slider-images {
    width: 48%;
    overflow: hidden;
}
.slider-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.slider-images {
    display: flex;
    justify-content: center;
    align-items: center;
}
.slider-content {
    display: none;
}
/* Ensure all slider images have uniform size */
.slider-images .slider-content {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Gallery thumbnails */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.gallery img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    margin: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
table th,
table td {
    border: 1px solid #ddd;
    padding: 8px;
}
table th {
    background-color: #f4f4f4;
    text-align: left;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 3px;
    justify-items: stretch;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}
.contact-grid section {
    max-width: 100%;
    width: 100%;
    padding: 6px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.contact-grid section h2 {
    color: #1f4e79;
    border-bottom: 1px solid #FFB400;
    padding-bottom: 3px;
    margin: 0 0 6px 0;
    font-size: 0.95em;
    word-wrap: break-word;
    word-break: break-word;
}
.contact-grid address {
    font-style: normal;
    margin: 3px 0;
    padding: 3px 0 3px 5px;
    line-height: 1.5;
    font-size: 0.95em;
    background: #fff;
    border-left: 1px solid #FFB400;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}
.contact-grid address:first-of-type {
    margin-top: 0;
}
.contact-grid address.contact-info {
    background: #f0f8ff;
    border-left-color: #1f4e79;
}
.contact-grid form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 14px;
}
.contact-grid input,
.contact-grid textarea,
.contact-grid button {
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
}
.contact-grid input,
.contact-grid textarea {
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 8px;
}
.contact-grid button {
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
}
.contact-grid button:hover {
    background: #b71c1c;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .slider-container {
        flex-direction: column;
    }
    .slider-text,
    .slider-images {
        width: 100%;
    }
    .nav-bar {
        width: 100%;
        margin-top: 0;
        padding: 10px;
    }
    .nav-bar ul {
        max-width: 100%;
        justify-content: center;
        gap: 8px;
    }
    .nav-bar a {
        padding: 6px 10px;
        font-size: 14px;
    }
    .company-name {
        font-size: inherit;
    }
    .company-name-main {
        font-size: 20px;
    }
    .company-name-sub {
        font-size: 15px;
    }
    .gallery img {
        width: 45%;
        margin: 5px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .nav-bar {
        width: 100%;
        margin-top: 0;
        padding: 8px;
    }
    .nav-bar ul {
        max-width: 100%;
        justify-content: center;
        gap: 8px;
    }
    .nav-bar a {
        padding: 6px 8px;
        font-size: 13px;
    }
    .company-name {
        font-size: inherit;
    }
    .company-name-main {
        font-size: 16px;
    }
    .company-name-sub {
        font-size: 13px;
    }
    .gallery img {
        width: 100%;
        margin: 5px 0;
    }
}
/* lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.lightbox img {
    max-width: 85%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
}
/* Logo style for navbar */
.navbar-logo {
    height: 56px;
    width: auto;
    cursor: pointer;
    user-select: none;
}

.lightbox .prev,
.lightbox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    font-size: 40px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    user-select: none;
    z-index: 2;
    opacity: 0.85;
    transition: background 0.2s, opacity 0.2s;
}
.lightbox .prev { left: 24px; }
.lightbox .next { right: 24px; }
.lightbox .prev:hover, .lightbox .next:hover {
    background: rgba(0,0,0,0.8);
    opacity: 1;
}
