﻿/* ----- Basic Reset & Font ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  /* ----- Navbar ----- */
  header {
    background: #ffffff;
    color: #010510;
  }
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }
  .navbar .logo {
    font-weight: bold;
    font-size: 1.25rem;
  }
  .nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-top: 30px;
  }
  .nav-links li {
    margin-left: 1.5rem;
  }
  .nav-links a {
    color: #010510;
    text-decoration: none;
    font-weight: 500;
  }
  .nav-links a.active {
    text-decoration: underline;
  }
  .nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
  }
  
  /* ----- career Hero ----- */
  .career-hero {
    padding: 4rem 2rem;
    position: relative;
    text-align: center;
    color: white;
    background: url('../../static/image/hero_background.jpg') no-repeat center center;
    background-size: cover;
    min-height: 300px;
    margin-top: 100px;
  }
  
  .career-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 35, 71, 0.9), rgba(0, 51, 102, 0.85));
  }
  
  .career-hero h1,
  .career-hero p {
    position: relative;
    z-index: 2;
  }
  
  .career-hero h1 {
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .career-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  }
  
  /* ----- career Form Section ----- */
  .career-form-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
  }
  .form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  .form-wrapper h2 {
    color: #0f1c94;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #003366;
    padding-bottom: 0.5rem;
  }
  .form-group {
    margin-bottom: 1.5rem;
  }
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
  }
  .form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
  }
  .form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.1);
  }
  button[type="submit"] {
    background: #003366;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
  }
  button[type="submit"]:hover {
    background: #002347;
  }
  
  /* ----- Footer Adjustments ----- */
  main {
    flex: 1;
    margin-bottom: 0;
    padding-bottom: 2rem;
  }
  
  footer {
    margin-top: auto;
    background-color: #333;
    padding: 40px 0 0 0;
  }
  
  /* ----- Responsive Styles ----- */
  @media (max-width: 768px) and (min-width: 480px) {
    .career-hero {
      padding: 3rem 1rem;
    }
    .career-hero h1 {
      font-size: 2.2rem;
    }
    .career-hero p {
      font-size: 1.1rem;
    }
    .form-wrapper {
      padding: 2rem;
    }
  }

  @media (max-width: 480px) {

    .career-hero::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5); /* Adjust the last value (0.5) for darkness level */
    }

    .career-hero {
      min-height: 50vh;
      padding: 2rem 1rem;
      margin-top: 220px;
      text-align: center;
    }
  }
  
  /* Footer Styles */
  footer {
    text-align: center;
    padding: 1rem;
    background: #333;
    margin-top: 2rem;
  }
  
  .footer-content {
    background-color: #333;
    color: #eaeaea;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 100px;
  }
  
  .footer-section {
    flex: 0 1 auto;
    min-width: 300px;
    padding: 0 20px;
    text-align: left;
    color: #333;
  }
  
  .footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #ffffff;
  }
  
  .footer-section p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
  }
  
  .footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #555;
  }
  
  /* Add these to your existing CSS */
  .form-group input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
  }
  
  .form-group input[type="tel"]:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.1);
  }
  
  /* Optional: Add invalid state styling */
  .form-group input:invalid {
    border-color: #ff6b6b;
  }
  
  /* Resume upload section styling */
  .resume-upload-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
  }
  
  .upload-button-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }
  
  .resume-upload-btn {
    background: #003366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
    border: none;
  }
  
  .resume-upload-btn:hover {
    background: #002347;
  }
  
  /* Style for the URL input */
  .upload-button-wrapper input[type="url"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
  }
  
  .upload-button-wrapper input[type="url"]:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.1);
  }
  
  /* Update button container to remove gap since resume section is now above */
  .button-container {
    margin-top: 1rem;
  }
  
  /* Update submit button */
  .submit-btn {
    background: #003366;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1;
    white-space: nowrap;
  }
  
  /* Hover effects */
  .resume-upload-btn:hover,
  .submit-btn:hover {
    background: #002347;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .button-container {
      flex-direction: column;
      gap: 1rem;
    }
    
    .submit-btn,
    .resume-upload-section {
      width: 100%;
    }
    
    .upload-button-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .resume-upload-btn {
        width: 100%;
        text-align: center;
    }
  }
  
  /* Career page styles */
  .career-hero {
    padding-top: var(--header-height);
    min-height: 50vh;
    background: url('../../static/image/hero_background.jpg') no-repeat center/cover;
    color: white;
    text-align: center;
    position: relative;
    margin-top: 148px;
  }
  
  .job-listings {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
  }
  
  .job-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .application-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
  }
  
  @media (max-width: 768px) {
    .nav-links {
      position: absolute;
      top: 60px;
      right: 0;
      background: #003366;
      width: 200px;
      height: 0;
      overflow: hidden;
      flex-direction: column;
      transition: 0.3s ease;
    }
    .nav-links.open {
      height: auto;
      padding: 1rem 0;
    }
    .nav-links li {
      margin: 0.5rem 0;
      text-align: center;
    }
    .nav-toggle {
      display: block;
    }
    .career-hero {
      padding-top: var(--header-height-mobile);
      min-height: 40vh;
      margin-top: 92px;
    }
    
    .job-listings {
      padding: 40px 20px;
    }
    
    .job-card {
      padding: 20px;
      margin-bottom: 20px;
    }
    
    .application-form {
      padding: 20px;
    }
  }
  