/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sea-blue: #0077be;
    --dark-sea-blue: #005a87;
    --navy: #1a3a5f;
    --burgundy: #8B0000;
    --dark-burgundy: #660000;
    --shiny-gold: #FFD700;
    --light-gold: #FFEC8B;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --white: #ffffff;
    --red: #dc3545;
    --teal: #20c997;
    --indigo: #6610f2;
    --card-bg: #f8f9fa;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --dark-bg: rgba(0, 0, 0, 0.9);
    --gradient-primary: linear-gradient(135deg, var(--sea-blue) 0%, var(--dark-sea-blue) 100%);
    --gradient-secondary: linear-gradient(135deg, #1a3a5f 0%, #2a4a6f 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFEC8B 100%);
    --gradient-btn: linear-gradient(135deg, #2a6b3f 0%, #3a8c57 100%);
    --footer-gradient: linear-gradient(to bottom, #495057, #212529);
    --mobile-nav-bg: linear-gradient(to bottom, rgba(233, 236, 239, 0.98), rgba(206, 212, 218, 0.98));
    --card-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --card-header-gradient: linear-gradient(135deg, #2c5c7a 0%, #3a7ca5 100%);
    --body-gradient: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    --new-primary: linear-gradient(135deg, var(--sea-blue) 0%, var(--dark-sea-blue) 100%);
    --new-secondary: linear-gradient(135deg, #1a3a5f 0%, #2a4a6f 100%);
    --new-accent: var(--gradient-gold);
    --new-card: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    --new-card-header: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    --new-btn: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    --nav-height: 50px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--body-gradient);
    overflow-x: hidden;
    padding-top: 112px;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

/* Fixed Header - Both Stripes Always Visible */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-stripe {
    padding: 12px 0;
    border: none;
    outline: none;
    box-shadow: none;
}

.stripe-one {
    background: var(--new-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
    z-index: 1001;
    border: none;
    outline: none;
}

.stripe-two {
    background: var(--new-secondary);
    color: var(--white);
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    min-height: var(--nav-height);
    z-index: 1000;
    border: none;
    outline: none;
    box-shadow: none;
}

/* Remove any scroll hiding */
.stripe-two.hidden {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.nav-hidden {
    padding-top: 112px !important;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--new-btn);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    will-change: transform;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:hover::before {
    opacity: 1;
}

.submit-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    width: auto;
    min-width: 120px;
}

/* Header Styles */
.stripe-one::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.1) 100%);
    pointer-events: none;
}

.stripe-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.department-info {
    text-align: center;
    flex: 1;
    margin: 0 10px;
}

.department-info h1 {
    font-size: 1.7rem;
    margin-bottom: 4px;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-family: 'Merriweather', serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.department-info p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.logo-left, .logo-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.header-logo {
    height: 85px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Navigation Styles */
.main-nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav > ul > li {
    position: relative;
}

.nav-btn {
    padding: 12px 16px;
    display: block;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 4px;
    background: var(--burgundy);
    color: var(--white);
    text-align: center;
    margin: 0 2px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    border: none;
    will-change: transform;
}

.nav-btn:hover,
.nav-btn.active {
    background-color: var(--dark-burgundy);
    transform: translateY(-2px);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--burgundy);
    min-width: 220px;
    box-shadow: var(--shadow);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 4px 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--white);
    transition: var(--transition);
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--shiny-gold);
    padding-left: 25px;
}

/* Mobile Navigation Toggle */
.mobile-toggle-container {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
    will-change: transform, opacity;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation Dropdown */
.mobile-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--mobile-nav-bg);
    backdrop-filter: blur(10px);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: max-height, opacity, visibility;
    transform: translateY(-10px);
}

.mobile-nav-dropdown.active {
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav > li {
    width: 100%;
}

.mobile-nav-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    color: var(--dark-gray);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
    border: none;
}

.mobile-nav-btn:hover,
.mobile-nav-btn:active,
.mobile-nav-btn.active {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: var(--sea-blue);
}

.mobile-dropdown-menu {
    display: none;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 10px 0;
    margin: 10px 0 5px 15px;
    border-left: 3px solid var(--sea-blue);
    will-change: transform, opacity;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.mobile-dropdown-menu li {
    margin: 8px 0;
}

.mobile-dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-gray);
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
}

.mobile-dropdown-menu li a:hover,
.mobile-dropdown-menu li a:active {
    background-color: rgba(0, 119, 190, 0.1);
    color: var(--sea-blue);
    padding-left: 25px;
}

.mobile-dropdown-chevron {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    will-change: transform;
    color: var(--dark-gray);
}

.mobile-dropdown.active .mobile-dropdown-chevron {
    transform: rotate(180deg);
}

.mobile-nav-backdrop {
    position: fixed;
    top: 112px;
    left: 0;
    width: 100%;
    height: calc(100vh - 112px);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-backdrop.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Page Header */
.page-header {
    background: var(--new-primary);
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.1) 100%);
    pointer-events: none;
}

.page-header-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-family: 'Merriweather', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-in-out;
}

.page-header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Careers Section */
.careers-section {
    padding: 70px 0;
    background-color: var(--white);
}

.careers-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.careers-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
}

/* Careers Articles */
.careers-article {
    background: var(--new-card);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 30px;
    will-change: transform;
}

.careers-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-header {
    padding: 20px;
    background: var(--new-card-header);
    color: var(--white);
}

.article-header h2 {
    font-size: 1.8rem;
    font-family: 'Merriweather', serif;
    margin: 0;
}

.article-content {
    padding: 30px;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.job-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.job-header {
    background: linear-gradient(135deg, #003366, #002244);
    color: white;
    padding: 20px;
    position: relative;
}

.job-header h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
    font-weight: 600;
}

.job-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.job-meta i {
    margin-right: 5px;
}

.job-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: #28a745;
    color: white;
}

.job-status.unavailable {
    background: #dc3545;
}

.job-body {
    padding: 20px;
}

.job-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    max-height: 100px;
    overflow: hidden;
    position: relative;
}

.job-description.expanded {
    max-height: none;
}

.job-description:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

.job-description.expanded:after {
    display: none;
}

.read-more-btn {
    background: none;
    border: none;
    color: #003366;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin: 10px 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more-btn:hover {
    text-decoration: underline;
}

.job-details {
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
}

.detail-item i {
    width: 20px;
    color: #003366;
    margin-top: 3px;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.requirements-list li {
    padding: 5px 0 5px 20px;
    position: relative;
}

.requirements-list li:before {
    content: '•';
    color: #003366;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.skill-tag {
    background: #e9ecef;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #495057;
}

.deadline {
    margin: 15px 0;
    padding: 10px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.deadline.deadline-past {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.deadline.deadline-soon {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.apply-btn {
    width: 100%;
    padding: 12px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.apply-btn:hover:not(:disabled) {
    background: #002244;
    transform: translateY(-2px);
}

.apply-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* ============ FIXED TRAINING CARDS - ADJUSTABLE TO ANY IMAGE SIZE ============ */
.trainings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.training-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.training-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Fixed Image Container - Adjusts to any image size */
.training-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9/16 = 0.5625) */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    border-bottom: 3px solid var(--sea-blue);
}

/* Image inside - covers the container proportionally */
.training-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes images fit perfectly without distortion */
    object-position: center;
    transition: transform 0.5s ease;
}

.training-card:hover .training-image img {
    transform: scale(1.05);
}

/* Fallback icon when image fails to load */
.training-image i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: var(--sea-blue);
    opacity: 0.5;
}

/* For when image is missing and icon is shown */
.training-image:has(i) {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.training-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.training-content h3 {
    color: var(--navy);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.training-type {
    display: inline-block;
    padding: 5px 15px;
    background: var(--sea-blue);
    color: white;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
    align-self: flex-start;
}

.training-meta {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #555;
    flex-wrap: wrap;
}

.training-meta i {
    margin-right: 5px;
    color: var(--sea-blue);
    width: 16px;
}

.training-description {
    color: #666;
    line-height: 1.6;
    margin: 15px 0;
    font-size: 0.95rem;
    flex: 1;
}

.training-objectives {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--sea-blue);
}

.training-objectives h5 {
    color: var(--navy);
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.training-objectives p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.download-btn {
    background: transparent;
    color: var(--sea-blue);
    border: 2px solid var(--sea-blue);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-top: 15px;
    width: 100%;
    justify-content: center;
}

.download-btn:hover {
    background: var(--sea-blue);
    color: white;
}

/* Simple Notification Styles */
.notification-container {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.notification {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #28a745;
    animation: slideInRight 0.3s ease;
}

.notification i {
    font-size: 1.3rem;
    color: #28a745;
}

.notification-content {
    flex: 1;
    font-size: 0.95rem;
    color: #333;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
    padding: 0 5px;
}

.notification-close:hover {
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Status Messages */
.status-message {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
}

.status-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #adb5bd;
}

.status-message h3 {
    margin-bottom: 10px;
    color: #495057;
}

.status-message p {
    font-size: 0.95rem;
}

.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.loading-message i {
    color: #003366;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Application Form */
.application-form-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.application-form-container.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.application-form {
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.application-form h3 {
    color: #003366;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.application-form h3 span {
    color: #28a745;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* File Upload Styles */
.file-upload-container {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.file-upload-container:hover {
    border-color: #003366;
    background: #f0f7ff;
}

.custom-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #003366;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 15px;
}

.custom-upload-btn:hover {
    background: #002244;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.custom-upload-btn i {
    font-size: 1.2rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.file-info i {
    color: #003366;
    font-size: 1.2rem;
}

.file-info span {
    color: #666;
    font-style: italic;
}

.file-info.has-file {
    background: #e8f4e8;
    border-color: #28a745;
}

.file-info.has-file i {
    color: #28a745;
}

.file-info.has-file span {
    color: #28a745;
    font-weight: 500;
    font-style: normal;
}

.selected-files {
    margin-top: 15px;
}

.file-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 15px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-item:hover {
    background: #f8f9fa;
    border-color: #003366;
}

.file-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-item-left i {
    font-size: 1.5rem;
    color: #003366;
}

.file-item-details {
    flex: 1;
}

.file-item-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
}

.file-item-size {
    font-size: 0.8rem;
    color: #6c757d;
}

.remove-file {
    color: #dc3545;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.remove-file:hover {
    background: #fee;
    color: #c82333;
}

.upload-instructions {
    margin-top: 20px;
    padding: 15px;
    background: #e9ecef;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.upload-instructions i {
    font-size: 2rem;
    color: #003366;
}

.upload-instructions ul {
    list-style: disc;
    margin-left: 20px;
    color: #555;
    font-size: 0.9rem;
}

.upload-instructions ul li {
    margin: 5px 0;
}

.upload-instructions p {
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.form-note h5 {
    color: #856404;
    margin-bottom: 5px;
}

.form-note p {
    color: #856404;
    font-size: 0.9rem;
}

.apply-now-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.apply-now-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.apply-now-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.close-form-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 10px;
}

.close-form-btn:hover {
    background: #5a6268;
}

/* Process Steps */
.process-steps {
    margin: 30px 0;
}

.process-step {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: #003366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: #003366;
    margin-bottom: 5px;
}

.step-content p {
    color: #666;
}

/* Footer Styles */
footer {
    background: var(--footer-gradient);
    color: var(--white);
    padding: 50px 0 15px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.1) 100%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.footer-column h3 {
    font-size: 1.15rem;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
    font-family: 'Merriweather', serif;
    color: var(--white);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--shiny-gold);
}

.footer-column ul li {
    margin: 8px 0;
}

.footer-column ul li a {
    opacity: 0.85;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--white);
}

.footer-column ul a:hover {
    opacity: 1;
    color: var(--shiny-gold);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    color: var(--white);
    will-change: transform;
}

.social-icons a:hover {
    background-color: var(--shiny-gold);
    color: var(--dark-gray);
    transform: translateY(-3px);
}

.newsletter {
    margin-bottom: 22px;
}

.newsletter h4 {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--white);
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    padding: 10px 14px;
    background-color: var(--shiny-gold);
    color: var(--dark-gray);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

.newsletter-form button:hover {
    background-color: #e6b800;
}

.footer-logos {
    display: flex;
    gap: 15px;
    margin-top: 18px;
    align-items: center;
    justify-content: center;
}

.footer-logo-img {
    max-width: 120px;
    height: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    color: var(--white);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .department-info h1 {
        font-size: 1.4rem;
    }
    
    .page-header-content h1 {
        font-size: 2.5rem;
    }
    
    .jobs-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .trainings-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 92px;
        font-size: 13px;
    }
    
    body.nav-hidden {
        padding-top: 92px;
    }
    
    .mobile-toggle-container {
        display: block;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .stripe-two {
        min-height: 50px;
    }
    
    .stripe-content {
        flex-direction: row;
        text-align: center;
        gap: 5px;
    }
    
    .logo-left, .logo-right {
        display: flex;
        flex: 0 0 auto;
    }
    
    .header-logo {
        height: 60px;
    }
    
    .department-info {
        flex: 1;
        margin: 0 5px;
    }
    
    .department-info h1 {
        font-size: 0.85rem;
        margin-bottom: 2px;
        font-family: 'Merriweather', serif;
    }
    
    .department-info p {
        font-size: 0.65rem;
    }
    
    .page-header {
        padding: 80px 0 40px;
        margin-top: 0;
        position: relative;
        clear: both;
    }
    
    .page-header-content h1 {
        font-size: 2rem;
    }
    
    .page-header-content p {
        font-size: 1rem;
    }
    
    .careers-section {
        padding: 50px 0;
    }
    
    .careers-intro p {
        font-size: 0.9rem;
    }
    
    .article-header h2 {
        font-size: 1.4rem;
    }
    
    .article-content p {
        font-size: 0.9rem;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trainings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Training images maintain aspect ratio on mobile */
    .training-image {
        padding-bottom: 56.25%; /* Keeps 16:9 on mobile */
    }
    
    .job-header h3 {
        font-size: 1.2rem;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .process-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .application-form {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 4px 4px 0 0;
    }
    
    .newsletter-form button {
        border-radius: 0 0 4px 4px;
    }
    
    .footer-logos {
        justify-content: center;
    }
    
    .footer-logo-img {
        max-width: 100px;
    }
    
    .mobile-nav-backdrop {
        top: 92px;
        height: calc(100vh - 92px);
    }
    
    .notification-container {
        top: 100px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 82px;
        font-size: 12px;
    }
    
    body.nav-hidden {
        padding-top: 82px;
    }
    
    .department-info h1 {
        font-size: 0.75rem;
    }
    
    .department-info p {
        font-size: 0.6rem;
    }
    
    .page-header {
        padding: 70px 0 30px;
    }
    
    .page-header-content h1 {
        font-size: 1.7rem;
    }
    
    .page-header-content p {
        font-size: 0.9rem;
    }
    
    .careers-section {
        padding: 40px 0;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .job-body {
        padding: 15px;
    }
    
    .job-description {
        font-size: 0.9rem;
    }
    
    .detail-item {
        font-size: 0.9rem;
    }
    
    .apply-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .header-logo {
        height: 50px;
    }
    
    .stripe-content {
        gap: 3px;
    }
    
    .footer-column h3 {
        font-size: 1rem;
    }
    
    .footer-column ul li a {
        font-size: 0.8rem;
    }
    
    .social-icons a {
        width: 34px;
        height: 34px;
    }
    
    .newsletter h4 {
        font-size: 0.85rem;
    }
    
    .mobile-nav-btn {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .mobile-dropdown-menu li a {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    /* Training images maintain aspect ratio on small mobile */
    .training-image {
        padding-bottom: 56.25%; /* Keeps 16:9 on all screen sizes */
    }
    
    .training-content {
        padding: 15px;
    }
    
    .training-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* Accessibility Features */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading-message i {
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --sea-blue: #000080;
        --dark-sea-blue: #000066;
        --burgundy: #800000;
        --dark-burgundy: #600000;
        --shiny-gold: #ffd700;
        --light-gold: #ffcc00;
        --light-gray: #ffffff;
        --dark-gray: #000000;
        --white: #ffffff;
    }
    
    .btn {
        border: 2px solid var(--dark-gray);
    }
    
    .job-card {
        border: 2px solid #000;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--shiny-gold);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header-stripe,
    .main-nav,
    .hamburger-menu,
    .mobile-nav-dropdown,
    .social-icons,
    .newsletter,
    .footer-logos,
    .application-form-container,
    .notification-container {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
        padding-top: 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .page-header {
        background: #fff !important;
        color: #000 !important;
        padding: 20px 0;
    }
    
    .careers-article {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    footer {
        background: #fff;
        color: #000;
        padding: 20px 0;
    }
    
    .footer-bottom {
        border-top: 1px solid #000;
    }
}

/* Newsletter Message */
.newsletter-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.newsletter-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}