/* ===== CMS1 Partners — Careers CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --navy:   #0a2463;
  --blue:   #1565c0;
  --blue-lt:#2196f3;
  --green:  #2e7d32;
  --green-lt:#43a047;
  --white:  #ffffff;
  --off-white:#f4f7fc;
  --gray:   #6b7280;
  --gray-lt:#e8edf5;
  --text:   #1a2340;
  --shadow: 0 4px 24px rgba(10,36,99,0.10);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--green);
  box-shadow: 0 2px 12px rgba(10,36,99,0.08);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
  height: 72px;
}
.site-logo { height: 52px; width: auto; object-fit: contain; }
.footer-logo { height: 44px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }

.nav-menu { margin-left: auto; }
.nav-menu ul { list-style: none; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-menu ul li { position: relative; }
.nav-menu ul li a {
  display: block; padding: 8px 12px;
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--navy);
  border-radius: 6px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-menu ul li a:hover { background: var(--off-white); color: var(--blue); }
.nav-careers-link { color: var(--green) !important; }

.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--white); min-width: 220px;
  border: 1px solid var(--gray-lt); border-radius: var(--radius);
  box-shadow: var(--shadow); z-index: 200; padding: 8px 0;
  flex-direction: column;
}
.dropdown li a { font-size: 13px; padding: 9px 18px; }
.dropdown li a:hover { background: var(--off-white); color: var(--blue); }
.has-dropdown.dropdown-active .dropdown { display: flex; }

.header-cta {
  background: linear-gradient(135deg, var(--green), var(--green-lt));
  color: var(--white) !important;
  padding: 10px 20px; border-radius: 6px;
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700;
  white-space: nowrap; transition: opacity .2s;
}
.header-cta:hover { opacity: .9; }

.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--navy); }

/* ===== HERO ===== */
.careers-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, var(--green) 100%);
  color: var(--white);
  padding: 80px 24px 72px;
  text-align: center;
  position: relative; overflow: hidden;
}
.careers-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.careers-hero .inner { position: relative; max-width: 800px; margin: 0 auto; }
.careers-hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px; padding: 4px 16px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 20px;
}
.careers-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 16px;
}
.careers-hero h1 span { color: #7ed55f; }
.careers-hero p { font-size: 1.1rem; opacity: .88; max-width: 600px; margin: 0 auto 32px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: 800; color: #7ed55f; }
.hero-stat span { font-size: 12px; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }

/* ===== INTRO SECTION ===== */
.careers-intro {
  background: var(--off-white); padding: 60px 24px;
  text-align: center;
}
.careers-intro h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800;
  color: var(--navy); margin-bottom: 14px;
}
.careers-intro p { max-width: 680px; margin: 0 auto; color: var(--gray); font-size: 1.02rem; }

.perks-grid {
  max-width: 1100px; margin: 40px auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
}
.perk-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 20px; text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
}
.perk-icon { font-size: 2rem; margin-bottom: 10px; }
.perk-card h4 { font-family: 'Montserrat', sans-serif; font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.perk-card p { font-size: .82rem; color: var(--gray); }

/* ===== JOB LISTINGS ===== */
.jobs-section { max-width: 1100px; margin: 0 auto; padding: 64px 24px; }
.jobs-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 800;
  color: var(--navy); margin-bottom: 36px;
  border-left: 5px solid var(--green); padding-left: 16px;
}

.job-card {
  background: var(--white);
  border: 1px solid var(--gray-lt);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 24px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.job-card:hover { transform: translateY(-3px); box-shadow: 0 8px 36px rgba(10,36,99,0.13); }
.job-icon {
  width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: white;
}
.job-info { flex: 1; }
.job-info h3 {
  font-family: 'Montserrat', sans-serif; font-size: 1.12rem; font-weight: 700;
  color: var(--navy); margin-bottom: 6px;
}
.job-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.job-meta span {
  font-size: .8rem; font-weight: 600;
  background: var(--off-white); padding: 3px 10px; border-radius: 20px;
  color: var(--blue);
}
.job-meta .salary { background: #e8f5e9; color: var(--green); }
.job-info p { font-size: .88rem; color: var(--gray); line-height: 1.55; }
.job-card .apply-btn {
  align-self: center;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white; padding: 12px 24px; border-radius: 7px;
  font-family: 'Montserrat', sans-serif; font-size: .85rem; font-weight: 700;
  white-space: nowrap; transition: opacity .2s; flex-shrink: 0;
}
.job-card .apply-btn:hover { opacity: .88; }

/* ===== JOB DETAIL PAGE ===== */
.job-detail-hero {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white; padding: 60px 24px 52px;
}
.job-detail-hero .inner { max-width: 900px; margin: 0 auto; }
.breadcrumb { font-size: .82rem; opacity: .7; margin-bottom: 16px; }
.breadcrumb a { color: white; text-decoration: underline; }
.job-detail-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
  margin-bottom: 16px;
}
.job-detail-hero .job-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.job-detail-hero .job-meta span {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,.3);
  color: white; padding: 5px 14px; border-radius: 20px;
  font-size: .82rem; font-weight: 600;
}

.job-detail-body { max-width: 900px; margin: 0 auto; padding: 52px 24px; display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.job-content h2 {
  font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 800;
  color: var(--navy); margin: 28px 0 12px; border-left: 4px solid var(--green); padding-left: 12px;
}
.job-content h2:first-child { margin-top: 0; }
.job-content p { font-size: .94rem; color: var(--gray); margin-bottom: 12px; }
.job-content ul { padding-left: 20px; }
.job-content ul li { font-size: .93rem; color: var(--gray); margin-bottom: 7px; }

/* ===== APPLICATION FORM ===== */
.app-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-lt); border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
  position: sticky; top: 88px;
}
.app-sidebar h3 {
  font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 800;
  color: var(--navy); margin-bottom: 6px;
}
.app-sidebar .subtext { font-size: .82rem; color: var(--gray); margin-bottom: 22px; }

.form-field { margin-bottom: 16px; }
.form-field label {
  display: block; font-size: .82rem; font-weight: 600; color: var(--navy);
  margin-bottom: 5px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid #d1dbe8; border-radius: 7px;
  font-family: 'Open Sans', sans-serif; font-size: .88rem; color: var(--text);
  background: var(--off-white);
  transition: border-color .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--blue); background: white;
}
.form-field textarea { resize: vertical; min-height: 90px; }
.file-label {
  display: block; cursor: pointer;
  border: 2px dashed #c5d3e8; border-radius: 8px;
  padding: 16px 12px; text-align: center;
  font-size: .82rem; color: var(--blue); font-weight: 600;
  background: var(--off-white);
  transition: border-color .2s, background .2s;
}
.file-label:hover { border-color: var(--blue); background: #eef3fc; }
.file-label span { display: block; font-size: .75rem; color: var(--gray); font-weight: 400; margin-top: 3px; }
.file-input { display: none; }
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--green), var(--green-lt));
  color: white; padding: 14px;
  border: none; border-radius: 8px;
  font-family: 'Montserrat', sans-serif; font-size: .95rem; font-weight: 700;
  cursor: pointer; margin-top: 6px;
  transition: opacity .2s;
}
.submit-btn:hover { opacity: .9; }
.form-note { font-size: .74rem; color: var(--gray); text-align: center; margin-top: 10px; }
.success-msg {
  display: none; background: #e8f5e9; border: 1px solid var(--green);
  border-radius: 8px; padding: 14px 16px;
  font-size: .88rem; color: var(--green); font-weight: 600;
  margin-top: 16px; text-align: center;
}

/* ===== CTA BAND ===== */
.careers-cta-band {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white; padding: 60px 24px; text-align: center;
}
.careers-cta-band h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px;
}
.careers-cta-band p { opacity: .85; margin-bottom: 28px; }
.careers-cta-band a {
  background: var(--green); color: white;
  padding: 14px 32px; border-radius: 8px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .95rem;
  display: inline-block; transition: opacity .2s;
}
.careers-cta-band a:hover { opacity: .9; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.8);
  padding: 60px 24px 32px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: .85rem; margin: 14px 0 18px; opacity: .75; line-height: 1.6; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: white; transition: background .2s;
}
.social-links a:hover { background: var(--green); }
.footer-links h4 {
  font-family: 'Montserrat', sans-serif; font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: white; margin-bottom: 16px;
}
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 9px; }
.footer-links ul li a { font-size: .85rem; opacity: .75; transition: opacity .2s; }
.footer-links ul li a:hover { opacity: 1; color: #7ed55f; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; }
.footer-bottom p { font-size: .8rem; opacity: .6; margin-bottom: 6px; }
.footer-disclaimer { font-size: .72rem !important; opacity: .45 !important; max-width: 800px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .job-detail-body { grid-template-columns: 1fr; }
  .app-sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: white; overflow-y: auto; padding: 20px; z-index: 999; }
  .nav-menu.open { display: block; }
  .nav-menu ul { flex-direction: column; gap: 0; }
  .nav-menu ul li a { padding: 14px 8px; font-size: 15px; border-bottom: 1px solid var(--gray-lt); }
  .dropdown { position: static; box-shadow: none; border: none; padding-left: 16px; }
  .has-dropdown.dropdown-active .dropdown { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .job-card { flex-direction: column; }
  .job-card .apply-btn { width: 100%; text-align: center; padding: 12px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
