/* ---------------General Layout------------------ */
* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
:root {
  --champion-blue: #000099;
  --top-bar-height: 28px;   
  --navbar-height: 72px;    
}
img { max-width: 100%; height: auto; display: block; }


body {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  background-color: white;
  color: #000099;
  padding-top: calc(var(--top-bar-height) + var(--navbar-height));
}

/* --------------------Top Contact Bar------------------- */
.top-bar {
    background-color: var(--champion-blue) ;
    color: white;
    font-size: 0.8rem; 
    padding: 4px 40px;  
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }
  
  
  .top-bar-content {
    display: flex;
    gap: 24px;
    align-items: center;
  }
  
  /* Main Navbar */
  .navbar {
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 40px; 
    position: fixed;
    top: var(--top-bar-height);
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease;
  }
  
  .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0px;
  }
  .navbar.shrink {
    padding: 6px 40px;
  }
  
  .navbar-logo {
    margin-top: 6.5px;
    margin-left: 25px;
  }
  .navbar-logo img {
    height: 56px; 
    object-fit: contain;
    transition: height 0.3s ease;
  }
  .navbar.shrink .navbar-logo img {
    height: 40px;
  }

  .navbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-end; 
  align-items: center;
  font-size: .3rem;
  font-weight: 600;
  margin-left: 0;
  flex: 1;
}

  .navbar-links a {
    margin-left: 40px;     
    font-size: 1.2rem;       
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  
  .navbar-links a:hover {
    color: var(--champion-blue);
  }
  
/* -------------------Hero Section------------------ (Home page image) */ 
 
.hero{ 
  position: relative;
  min-height: calc(100vh - var(--top-bar-height) - var(--navbar-height));
  height: auto;
  display: grid; 
  place-items: center;
  padding-top: 0;
  box-sizing: border-box;
  overflow: hidden;           
  z-index: 0;
}

/* make the <img> fill the hero and crop with object-fit */
.hero-image {
  position: absolute;
  width: 100%; 
  height: 100%; 
  object-position: center;
  z-index: 0;
}

.hero-overlay{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  display: flex;
  background: rgba(0,0,0,0.34);
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  z-index: 1;                  
}
.hero-content {
  transform: translateY(-6vh); /* only shifts the content, not the background */
}

.hero-overlay h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 6px; /* reduced */
}

.hero-overlay p {
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 10px; /* reduced */
}


/* -------------------- Home Page About Section -------------------- */
.home-about-section {
  padding: 60px 24px;
}

.home-about-section .about-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.home-about-section .about-content {
  background-color: white;
    padding-top: 20px;    /* was 45px */
    padding-right: 45px;
    padding-bottom: 45px;
    padding-left: 45px;
  border-radius: 16px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}

.home-about-section .about-content h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--champion-blue);
  margin-bottom: 50px;
  position: relative;
}

.home-about-section .about-content h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--champion-blue);
  margin: 12px auto 0 auto;
  border-radius: 2px;
}

.home-about-section .about-content p {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 20px;
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .home-about-section .about-content {
    padding: 24px;
  }

  .home-about-section .about-content h2 {
    font-size: 2.2rem;
  }

  .home-about-section .about-content p {
    font-size: 1rem;
  }
}


/* -------- Services Section on Home Page -------- */

.services-heading {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  color: var(--champion-blue);
  margin-top: 0;          /* Remove extra gap from the top */
  margin-bottom: 60px;    /* Space before first service row */
  position: relative;
}

.services-split-section {
  background: #f3f4f6;
  padding-top: 70px;      /* Was 100px — moves heading closer to top of gray area */
  padding-bottom: 100px;  /* Keep bottom padding */
}

.services-detailed-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* Desktop: keep items side-by-side */
.service-row {
  display: flex;
  flex-wrap: nowrap; /* don't wrap on desktop */
  align-items: center;
  gap: 60px;
}

.service-row.reverse {
  flex-direction: row-reverse;
}

/* Image gets a fixed column; text flexes */
.service-img {
  flex: 0 0 600px;            
  max-width: 600px;
  height: 425px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}
.service-img-CD {
  flex: 0 0 600px;
  max-width: 600px;             
  height: 425px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  object-position: 50% 10%;
}
.service-img-WS {
  flex: 0 0 600px;
  max-width: 600px;             
  height: 425px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  object-position: 50% 30%;
}

.service-text {
  flex: 1 1 0;                 /* take remaining space, allow shrink */
  min-width: 320px;            /* prevents awkward collapses */
  border-left: 5px solid var(--champion-blue);
  padding: 16px 24px;
  background-color: #f9fafb;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.service-text h3 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  color: #1e3a8a;
}

.service-text p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #4b5563;
}

/* Mobile/tablet: stack nicely */
@media (max-width: 900px) {
  .service-row,
  .service-row.reverse {
    flex-wrap: wrap;           /* allow wrap on small screens */
    gap: 24px;
  }

  .service-img {
    flex: 1 1 100%;
    max-width: 100%;
    height: 300px;
  }

  .service-text {
    flex: 1 1 100%;
    padding: 12px 16px;
    border-left-width: 4px;
  }
}

/* Bottom Contact Footer */
.contact-footer-bar {
  background-color: #1e3a8a;
  color: white;
  padding: 20px 40px;
  
  bottom: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.contact-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-footer-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.contact-footer-btn {
  background-color: white;
  color: #1e3a8a;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.contact-footer-btn:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.contact-footer-legal {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #cbd5e1;
}



/* -------------------------------------------------Quote  Section ----------------------------------------------------------*/
.quote-content-split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: stretch;
}

.quote-details,
.quote-form-container {
  flex: 1 1 500px;
  background-color: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Left Panel */
.quote-details {
  color: #1f2937;
}

.quote-details h1 {
  font-size: 2.6rem;
  color: var(--champion-blue);
  margin-bottom: 10px;
  font-weight: 700;
}

.quote-details p {
  font-size: 1.05rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.quote-details a {
  color: var(--champion-blue);
  text-decoration: underline;
}

/* FAQ section */
.quote-faq {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.quote-faq h3 {
  font-size: 1.3rem;
  color: var(--champion-blue);
  margin-bottom: 10px;
}

.quote-faq ul {
  padding-left: 20px;
  list-style: disc;
}

.quote-faq li {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 10px;
}

/* Right Panel (Form) */
.quote-form-container {
  flex: 1 1 500px;
  background-color: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #1f2937;
}

.quote-form-container h2 {
  font-size: 2rem;
  color: var(--champion-blue);
  margin-bottom: 10px;
  font-weight: 700;
}

.quote-form-container p {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 24px;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-form input,
.quote-form textarea {
  font-family: 'Oswald', sans-serif;
  padding: 16px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--champion-blue);
  box-shadow: 0 0 0 3px rgba(0, 0, 153, 0.12);
  background: white;
  outline: none;
}

.quote-form button {
  background-color: var(--champion-blue);
  color: white;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.quote-form button:hover {
  background-color: #274bc3;
  transform: translateY(-2px);
}


/* Responsive Layout */
@media (max-width: 960px) {
  .quote-content-split {
    flex-direction: column;
    gap: 30px;
  }

  .quote-details,
  .quote-form-container {
    max-width: 100%;
  }
}



/* --------------------------------------------------------About Section------------------------------------------------------------- */

.about-section {
  background-color: #ffffff;
  padding: 100px 24px;
}

.about-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 150px;
}

.about-content {
  flex: 1 1 500px;
}

.about-content h2 {
  font-size: 2.8rem;
  color: var(--champion-blue);
  margin-bottom: 20px;
  font-weight: 700;
}

.about-content p {
  font-size: 1.1rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-image {
  flex: 1 1 450px;
}

.about-image img {
  height: 100%;
  width: 90%;
  max-height: 400px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}



/* ------------------------------------ Careers Section ------------------------------------- */
.careers-section {
  background-color: #f3f4f6;
  padding: 100px 24px;
  text-align: center;
}

.careers-wrapper {
  max-width: 1000px;
  margin: 0 auto;
 
}

.careers-section h2 {
  font-size: 3rem;
  color: var(--champion-blue);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.careers-intro {
  font-size: 1.2rem;
  color: #374151;
  margin-bottom: 3rem;
}

/* Why Work Here Box */
.why-work-here {
  background-color: white;
  padding: 2rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: left;
  margin-bottom: 60px;
}

.why-work-here h3 {
  font-size: 2rem;
  color: var(--champion-blue);
  margin-bottom: 1rem;
}

.why-work-here p {
  font-size: 1.1rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.why-work-here ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: #374151;
}

.why-work-here li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* Job Listings Table */
.job-list-table h3 {
  font-size: 2rem;
  color: var(--champion-blue);
  margin-bottom: 1rem;
  text-align: left;
}

.job-list-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.job-list-table th, .job-list-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 1rem;
}

.job-list-table th {
  background-color: #1e3a8a;
  color: white;
  font-weight: 600;
}

.job-list-table tr:nth-child(even) {
  background-color: #f9fafb;
}

.job-list-table tr:hover {
  background-color: #e5e7eb;
}

.job-list-table td a {
  color: var(--champion-blue);
  text-decoration: none;
  font-weight: 500;
}

.job-list-table td a:hover {
  text-decoration: underline;
}

/* Careers job details */
.job-detail-row { 
  display: none; 
  background: #fff; 
}
.job-detail { 
  color:black;
  padding: 20px; 
  background: #fff; 
  border-radius: 12px; 
  box-shadow: 0 4px 16px rgba(0,0,0,0.08); 
}
.job-detail h4 { 
  margin-top: 0; 
  color:black; 
}
.job-row:hover { 
  background: #eef2ff; 
  cursor: pointer; 
}
.apply-grid { 
  display: grid; 
  gap: 12px; 
  grid-template-columns: repeat(3, 1fr); 
}
/* Form field polish for the application section */
.apply-grid .field input,
#applyForm textarea {
  width: 100%;
  font-family: 'Oswald', sans-serif;
  padding: 14px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* CSS Changes With Updates 10/30 */
.apply-grid .field input:focus,
#applyForm textarea:focus {
  border-color: var(--champion-blue);
  box-shadow: 0 0 0 3px rgba(0, 0, 153, 0.12);
  background: #fff;
  outline: none;
}
.resume-upload-card .field { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
}

.resume-label { 
  display: block; 
  margin: 12px 0; 
  font-size: 0.95rem; 
  color: #374151; 
}
/* Stop any nested element in Careers from creating its own scrollbar */
.careers-section,
.careers-wrapper,
.why-work-here,
.job-list-table {
  overflow: visible !important;    
  height: auto !important;          
  max-height: none !important;
}
.careers-section * {
  scrollbar-width: none;           
  -ms-overflow-style: none;         
}
.careers-section *::-webkit-scrollbar {
  width: 0;
  height: 0;
}
/* --- Careers page mobile fixes --- */

/* Let table content wrap and expand */
.job-list-table table { width: 100%; table-layout: auto; }
.job-list-table th,
.job-list-table td,
.job-detail { 
  white-space: normal; 
  word-break: break-word; 
  overflow: visible; 
}

/* Ensure the hidden detail row scrolls correctly under fixed bars */
.job-detail-row { 
  display: none; 
  scroll-margin-top: 90px; /* avoids hiding under top-bar + navbar on iPhone */
}

/* Make the table comfortably scrollable on phones instead of squishing */
@media (max-width: 600px) {
  .job-list-table { 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
  }
  .job-list-table table { 
    min-width: 560px;  /* keeps columns readable; user can swipe */
  }
  /* Tighter paddings for cells on mobile */
  .job-list-table th, .job-list-table td { 
    padding: 12px 14px; 
    font-size: 0.98rem;
  }
}




/* ------------------------------------ iPhone / small screen polish ------------------------------------- */
@media (max-width: 600px) {
  /* Top bars + body offset */
  body {
    padding-top: 76px; /* tighter stack on mobile */
  }
  .top-bar {
    padding: 6px 14px;
    font-size: 0.78rem;
  }
  .top-bar .top-bar-content {
    gap: 10px;
    flex-wrap: wrap;
  }

/* Navbar */
@media (max-width: 600px) {
  body { padding-top: 76px; }
  .top-bar { padding: 6px 14px; }
  .navbar { top: 24px; padding: 8px 14px; }
  .navbar.shrink { padding: 6px 12px; }
  .navbar-logo img { height: 40px; }
  .navbar-links { 
    width: 100%; 
    gap: 12px; 
    margin-top: 6px; 
    justify-content: flex-start; 
  }
  .navbar-links a { margin-left: 0; padding: 8px 0; font-size: 0.95rem; }
}

  /* Hero */
  .hero-overlay { padding: 0 16px; }
  .hero-content { transform: translateY(-2vh); }
  .hero-overlay h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .hero-overlay p  { font-size: clamp(0.95rem, 4vw, 1.1rem); margin-bottom: 8px; }

  /* Home About */
  .home-about-section { padding: 36px 16px; }
  .home-about-section .about-content {
    padding: 18px;
    border-radius: 12px;
  }
  .home-about-section .about-content h2 { font-size: 1.9rem; margin-bottom: 22px; }
  .home-about-section .about-content p  { font-size: 1rem; line-height: 1.6; }

  /* Services */
  .services-split-section { padding-top: 46px; padding-bottom: 70px; }
  .services-heading { font-size: 2rem; margin-bottom: 28px; }
  .services-detailed-wrapper { gap: 28px; }
  .service-row, .service-row.reverse {
    gap: 16px;
    flex-wrap: wrap;
  }
  .service-img {
    flex: 1 1 100%;
    max-width: 100%;
    height: 220px;
    border-radius: 12px;
  }
  .service-text {
    flex: 1 1 100%;
    min-width: 0;
    padding: 12px 14px;
    border-left-width: 4px;
    border-radius: 10px;
  }
  .service-text h3 { font-size: 1.5rem; margin-bottom: 8px; }
  .service-text p  { font-size: 1rem; line-height: 1.6; }

  /* Quote split */
  .quote-content-split { gap: 18px; }
  .quote-details,
  .quote-form-container {
    padding: 20px;
    border-radius: 12px;
  }
  .quote-details h1 { font-size: 1.8rem; }
  .quote-form-container h2 { font-size: 1.5rem; }
  .quote-form input,
  .quote-form textarea { padding: 14px; font-size: 1rem; }

  /* About section */
  .about-section { padding: 60px 16px; }
  .about-wrapper { gap: 20px; }
  .about-content { flex: 1 1 100%; }
  .about-content h2 { font-size: 2rem; margin-bottom: 12px; }
  .about-content p  { font-size: 1rem; line-height: 1.6; }
  .about-image { flex: 1 1 100%; }
  .about-image img { max-height: 260px; border-radius: 12px; }

  /* Careers */
  .careers-section { padding: 60px 16px; }
  .careers-section h2 { font-size: 2rem; }
  .careers-intro { font-size: 1rem; margin-bottom: 20px; }
  .why-work-here { padding: 16px; border-radius: 10px; }
  .why-work-here h3 { font-size: 1.4rem; }
  .why-work-here p, .why-work-here li { font-size: 0.98rem; }

  /* Careers table: allow horizontal scroll instead of squishing */
  .job-list-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .job-list-table table { min-width: 640px; } /* keep columns readable */

  .apply-grid { grid-template-columns: 1fr; }

  /* Footer */
  .contact-footer-bar { padding: 16px; }
  .contact-footer-content { gap: 10px; }
  .contact-footer-actions { gap: 10px; font-size: 0.95rem; }
  .contact-footer-btn { padding: 10px 14px; border-radius: 8px; }
}

/* Slightly larger phones / small tablets */
@media (min-width: 601px) and (max-width: 900px) {
  .navbar { padding: 10px 20px; }
  .navbar-links { gap: 16px; }
  .navbar-links a { margin-left: 0; font-size: 1rem; }
  .service-img { height: 280px; }
}

