/* ==========================================
   1. GLOBAL STYLES & RESET
   ========================================== */
   * { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
/* This applies the buffer to the specific list items */
#about,
#recruitment, 
#staffing, 
#training {
    scroll-margin-top: 150px; /* Adjust this value until it looks perfect */
}

/* Optional: Makes the jump smooth instead of a sudden snap */
html {
    scroll-behavior: smooth;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    line-height: 1.6; 
    color: #333; 
    scroll-behavior: smooth; 
}

/* ==========================================
   2. HEADER & NAVIGATION
   ========================================== */
.top-bar {
    background-color: #0A1A3C;
    color: white;
    padding: 10px 10%;
    display: flex;
    justify-content: flex-end;
    font-size: 14px;
}

.top-bar span { margin-left: 25px; }
.top-bar a { color: white; text-decoration: none; }

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5% 0 0; /* Keeps logo left, pushes menu in slightly */
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-container img {
    height: 150px; 
    width: auto;
    display: block;
    mix-blend-mode: multiply; 
    opacity: 0.95;
}

nav { margin-right: 50px; }

nav ul { 
    display: flex; 
    list-style: none; 
    align-items: center; 
}

nav ul li { 
    position: relative; 
    margin-left: 35px; 
}

nav ul li a { 
    text-decoration: none; 
    color: #333; 
    font-weight: 600; 
    font-size: 18px; 
    transition: 0.3s;
}

nav ul li a:hover { color: #0078d4; }

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    top: 100%;
    left: 0;
    border-top: 4px solid #0078d4;
    padding: 10px 0;
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    font-size: 16px;
}

nav ul li:hover .dropdown-content { display: block; }

/* ==========================================
   3. HERO SECTION
   ========================================== */
.hero-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-bottom: 6px solid #0078d4;
}

.hero-img-file {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================
   4. CONTENT SECTIONS (About, Offerings, etc.)
   ========================================== */
.section { 
    padding: 80px 15%; 
    max-width: 1200px; 
    margin: 0 auto;    
}

h2 { 
    font-size: 2.5rem; 
    color: #0A1A3C; 
    margin-bottom: 30px; 
    border-bottom: 4px solid #0078d4; 
    display: inline-block; 
    padding-bottom: 5px; 
}

h3 {
    color: #0A1A3C;
    margin: 20px 0 15px;
    font-size: 1.8rem;
}

p, .about-list li { 
    font-size: 1.15rem; 
    color: #555; 
    margin-bottom: 20px;
    font-family: inherit;
}

.about-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.about-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.about-list li strong { color: #0078d4; }

/* ==========================================
   5. CONTACT SECTION
   ========================================== */
   .contact-grid { 
    display: grid; 
    /* Increase 280px to 320px. This makes the cards wider 
       on mobile so the email has room to stay in one line. */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}

.contact-card { 
    background: #f4f7fa; 
    padding: 30px; 
    border-radius: 8px; 
    border-left: 6px solid #0078d4; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    
    /* FIX: Prevents content from pushing the card's boundaries */
    overflow: hidden; 
    word-wrap: break-word;
}

.contact-card a { 
    color: #0078d4; 
    text-decoration: none; 
    font-weight: bold; 
    
    /* FIX: Force long links to break into a new line if they hit the edge */
    word-break: break-all; 
    display: block; 
    max-width: 100%;
}

/* ==========================================
   6. FOOTER
   ========================================== */
footer { 
    background: #0A1A3C; 
    color: white; 
    text-align: center; 
    padding: 40px 10%; 
    margin-top: 50px;
}

/* ==========================================
   7. MOBILE RESPONSIVENESS (Media Queries)
   ========================================== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px 5%;
    }

    nav {
        margin-right: 0;
        margin-top: 15px;
    }

    nav ul li { 
        margin-left: 15px; 
        margin-right: 15px; 
    }
    
    .hero-container { height: 300px; }
    
    h2 { font-size: 1.8rem; }
    
    .section { padding: 40px 8%; }

    .email-link {
        /* This forces the text to stay on one single line */
        white-space: nowrap; 
        
        /* This ensures it doesn't poke out of the card; 
           it will shrink the text size if needed */
        font-size: 14px; 
        display: inline-block;
    }
    
    @media (max-width: 400px) {
        .email-link {
            /* On very small phones, we shrink it just enough to fit */
            font-size: 12px !important; 
        }
    }
}