:root {
    --primary: #004a99;
    --bg-grey: #e5e5e5;
    --header-grey: #dadada;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-standard: #333;
    --border: #cccccc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    color: var(--text-standard); 
    line-height: 1.6; 
    background-color: var(--bg-grey); 
}

.container { max-width: 1100px; margin: auto; padding: 0 20px; }

/* FIX: Offset scroll position for sticky header */
/* We apply scroll-margin-top to the ID'd sections so they stop 120px early */
section[id] {
    scroll-margin-top: 120px;
    padding: 60px 0; /* Standardized spacing */
}

/* Header & Nav */
header { 
    background: var(--header-grey); 
    border-bottom: 1px solid var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    padding: 12px 0; 
}

nav { display: flex; justify-content: space-between; align-items: center; }
nav ul { list-style: none; display: flex; gap: 20px; align-items: center; }
nav ul li a { text-decoration: none; color: var(--text-dark); font-weight: 700; font-size: 0.95rem; }
nav ul li a:hover { color: var(--primary); }

/* Hero */
.hero-image-overlay {
    background-image: url('hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 140px 0;
    text-align: center;
    color: var(--white);
}
.hero-image-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero-content-overlay { position: relative; z-index: 2; }
.hero-content-overlay h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.hero-content-overlay p { font-size: 1.4rem; color: #eee; }

/* Content Titles */
.section-title { text-align: left; font-size: 2.2rem; margin-bottom: 30px; color: var(--primary); }

/* Services */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: 0.3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: var(--primary); }
.service-img { width: 100%; height: 200px; object-fit: cover; }
.service-content { padding: 25px; }
.service-content h3 { font-size: 1.2rem; margin-bottom: 15px; }
.service-content i { color: var(--primary); margin-right: 8px; }

/* Labeling Section */
.labeling-detail { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: stretch; }
.labeling-image-container { display: flex; align-items: stretch; }
.label-crop-img { 
    width: 100%; height: 100%; 
    object-fit: cover; 
    border-radius: 10px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}
.labeling-text ul { padding-left: 20px; margin-top: 15px; }

/* Staff */
.staff-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.staff-card { display: grid; grid-template-columns: 140px 1fr; gap: 25px; align-items: center; background: var(--white); padding: 20px; border-radius: 8px; border: 1px solid var(--border); }
.staff-img-container { width: 140px; height: 140px; }
.circular-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.staff-actions { display: flex; gap: 10px; margin-top: 15px; }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); padding: 6px 14px; text-decoration: none; border-radius: 4px; font-size: 0.85rem; font-weight: 600; }
.btn-outline:hover { background: var(--primary); color: white; }

/* About Us Layout */
.about { background: var(--bg-grey); }
.about-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 50px; }
.acronym-lead { font-size: 1.1rem; color: var(--primary); margin-bottom: 10px; }
.about-acronym p { margin-bottom: 15px; font-style: italic; font-size: 0.95rem; }

/* Footer */
footer { background: var(--header-darker-grey); padding: 50px 0 20px; border-top: 1px solid var(--border); }
.footer-wrapper { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
footer h3 { font-size: 1.3rem; margin-bottom: 20px; color: var(--primary); }
.footer-contact p { margin-bottom: 10px; font-size: 1.1rem; }
.footer-contact a { color: var(--text-standard); text-decoration: none; font-weight: bold; }
.footer-contact i { width: 25px; color: var(--primary); }

.social-links { display: flex; gap: 20px; }
.social-links a { 
    background: var(--white); color: var(--primary); 
    width: 50px; height: 50px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 1.4rem; box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    transition: 0.3s;
}
.social-links a:hover { transform: translateY(-3px); background: var(--primary); color: var(--white); }

.copyright { text-align: center; padding-top: 20px; border-top: 1px solid #bbb; font-size: 0.85rem; color: #666; }

@media (max-width: 900px) {
    .grid-3, .grid-split, .staff-wrapper, .about-grid, .footer-wrapper { grid-template-columns: 1fr; flex-direction: column; }
    .labeling-image-container { height: 300px; }
}