/* Careers & Client Testimonials pages */

.careers-hero,
.testimonials-hero {
  margin-top: var(--headerheight);
  background: linear-gradient(135deg, var(--primary) 0%, #001452 55%, #0a2463 100%);
  padding: 5.5rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.careers-hero::before,
.testimonials-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(218, 83, 44, 0.12) 0%, transparent 45%);
  pointer-events: none;
}
.careers-hero .container,
.testimonials-hero .container {
  position: relative;
  z-index: 1;
}
.careers-hero h1,
.testimonials-hero h1 {
  font-family: "Poppins", sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.careers-hero p,
.testimonials-hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 24px;
}
.hero-badge svg {
  flex-shrink: 0;
}
.careers-hero .hero-content {
  max-width: 760px;
  margin: 0 auto;
}
.careers-hero .hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.careers-hero .hero-actions .btn {
  min-width: 180px;
}
.careers-hero .hero-actions .btn.btn-border-white {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.careers-hero .hero-actions .btn.btn-border-white:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.careers-hero .hero-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.careers-hero .hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 500;
}
.careers-hero .hero-points li svg {
  flex-shrink: 0;
}

/* Stats strip */
.page-stats {
  background: transparent;
  padding: 0 0 1rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}
.page-stats .stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 37, 122, 0.12);
  border: 1px solid #eee;
  overflow: hidden;
}
.page-stats .stat-box {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid #f0f0f0;
}
.page-stats .stat-box:last-child {
  border-right: none;
}
.page-stats .stat-box h3 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.page-stats .stat-box p {
  font-size: 14px;
  color: var(--text);
  margin: 0;
}

/* Section common */
.page-section {
  padding: 5rem 0;
}
.page-section.bg-light {
  background: #fafafa;
}
.page-section .section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.page-section .section-head h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 14px;
}
.page-section .section-head p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
}

/* Why join / perks grid */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.perk-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  border: 1px solid #eee;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.perk-card:hover {
  box-shadow: 0 12px 32px rgba(0, 37, 122, 0.1);
  transform: translateY(-4px);
}
.perk-card .perk-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 37, 122, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}
.perk-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 10px;
}
.perk-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}
.career-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 3rem;
}
.career-intro-card,
.career-intro-panel {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 37, 122, 0.08);
}
.career-intro-card {
  padding: 2rem;
}
.career-intro-card .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 37, 122, 0.06);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.career-intro-card h3 {
  font-size: 30px;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 16px;
}
.career-intro-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 18px;
}
.career-intro-card p:last-child {
  margin-bottom: 0;
}
.career-intro-panel {
  padding: 1.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
}
.career-intro-panel h4 {
  font-size: 20px;
  color: var(--black);
  margin-bottom: 18px;
}
.career-intro-panel ul li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}
.career-intro-panel ul li:not(:last-child) {
  margin-bottom: 16px;
}
.career-intro-panel ul li svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Career application form */
.career-apply-section .career-apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 28px;
  align-items: start;
}
.career-apply-section .apply-copy,
.career-apply-section .career-form {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(0, 37, 122, 0.08);
}
.career-apply-section .apply-copy {
  padding: 2rem;
  position: sticky;
  top: calc(var(--headerheight) + 24px);
}
.career-apply-section .apply-copy h3 {
  font-size: 28px;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 14px;
}
.career-apply-section .apply-copy > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 22px;
}
.career-apply-section .apply-meta {
  display: grid;
  gap: 14px;
}
.career-apply-section .apply-meta li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f7f8fc;
}
.career-apply-section .apply-meta li svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.career-apply-section .apply-meta li strong {
  display: block;
  font-size: 14px;
  color: var(--black);
  margin-bottom: 2px;
}
.career-apply-section .apply-meta li span {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.career-apply-section .career-form {
  max-width: 750px;
  margin: 0;
  --item: 2;
  --inputsize: 52px;
  --gaplr: 24px;
  --gaptb: 20px;
  --paddingleftright: 17px;
  --labelbackground: #fff;
  padding: 2rem;
}
.career-apply-section .career-form .form-group {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eee;
  overflow: visible;
}
.career-apply-section .career-form .form-group:not(.file-input) {
  padding-top: 6px;
}
.career-apply-section .career-form .form-group input.form-control {
  line-height: normal;
}
.career-apply-section .career-form .form-group::before,
.career-apply-section .career-form .form-group::after {
  display: none;
}
.career-apply-section .career-form .form-group label {
  color: #6d7485;
}
.career-apply-section .career-form .form-control {
  background: transparent;
}
.career-apply-section .career-form select.form-control {
  color: var(--black);
}
.career-apply-section .career-form .form-group:focus-within {
  border-color: rgba(0, 37, 122, 0.28);
  box-shadow: 0 0 0 4px rgba(0, 37, 122, 0.06);
}
.career-apply-section .career-form .form-group.file-input {
  padding: 16px 17px 14px;
  line-height: normal;
}
.career-apply-section .career-form .form-group.file-input .file-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 10px;
}
.career-apply-section .career-form .form-group.file-input .file-name {
  --filename: "Upload Resume";
  display: block;
  min-height: 52px;
  border: 1px dashed #ccc;
  border-radius: 8px;
  background: #fafafa;
}
.career-apply-section .career-form .form-group.file-input input[type="file"] {
  margin-top: 10px;
}
.career-apply-section .career-form .form-group.file-input .file-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
}
.career-apply-section .career-form .sbmt-grp .btn {
  min-width: 220px;
}
@media only screen and (max-width: 675px) {
  .career-apply-section .career-form {
    --item: 1;
  }
}

/* CTA band */
.page-cta {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, #001452 100%);
  position: relative;
  overflow: hidden;
}
.page-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-cta .container {
  position: relative;
  z-index: 1;
}
.page-cta h3 {
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.page-cta p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  font-size: 16px;
}
.page-cta .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.page-cta .btn.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  font-weight: 600;
}
.page-cta .btn.btn-white:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.page-cta .btn.btn-border-white {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.page-cta .btn.btn-border-white:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

/* Section badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(0, 37, 122, 0.08);
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid rgba(0, 37, 122, 0.12);
  margin-bottom: 16px;
}
.page-section .section-head .section-badge {
  display: inline-flex;
}

/* Testimonials page */
.rating-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 18px;
  padding: 2.25rem 2.75rem;
  max-width: 820px;
  margin: -2.5rem auto 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 16px 48px rgba(0, 37, 122, 0.12);
}
.rating-banner .rating-score {
  text-align: center;
  min-width: 140px;
}
.rating-banner .rating-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fff8e1;
  border: 1px solid #ffe082;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(255, 193, 7, 0.2);
}
.rating-banner .rating-score .score {
  font-size: 56px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -1px;
}
.rating-banner .rating-score .stars {
  color: #ffc107;
  font-size: 20px;
  letter-spacing: 3px;
  margin: 10px 0 6px;
}
.rating-banner .rating-score p {
  font-size: 13px;
  color: var(--text);
  margin: 0;
  font-weight: 500;
}
.rating-banner .rating-divider {
  width: 1px;
  height: 72px;
  background: linear-gradient(180deg, transparent, #e0e4ec, transparent);
  flex-shrink: 0;
}
.rating-banner .rating-text {
  text-align: left;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}
.rating-banner .rating-text h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 10px;
}
.rating-banner .rating-text p {
  font-size: 15px;
  color: var(--text);
  margin: 0;
  line-height: 1.7;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.75rem 1.5rem;
  border: 1px solid #e8eaf0;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #0033a0);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.testimonial-card:hover {
  box-shadow: 0 16px 40px rgba(0, 37, 122, 0.12);
  transform: translateY(-4px);
  border-color: rgba(0, 37, 122, 0.15);
}
.testimonial-card:hover::before {
  opacity: 1;
}
.testimonial-card .card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f2f6;
}
.testimonial-card .avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #0033a0 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 37, 122, 0.22);
  border: 2px solid #fff;
  outline: 1px solid rgba(0, 37, 122, 0.12);
}
.testimonial-card .author h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}
.testimonial-card .author .stars-sm {
  color: #ffc107;
  font-size: 13px;
  letter-spacing: 2px;
}
.testimonial-card .quote {
  font-size: 15px;
  line-height: 1.8;
  color: #4a5568;
  flex: 1;
  margin: 0;
  position: relative;
  padding-left: 1.25rem;
}
.testimonial-card .quote::before {
  content: "\201C";
  font-size: 42px;
  color: var(--primary);
  opacity: 0.18;
  line-height: 1;
  position: absolute;
  left: -4px;
  top: -8px;
  display: block;
  margin: 0;
}
.testimonial-card .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}
.testimonial-card .card-foot .source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.testimonial-card .card-foot a {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}
.testimonial-card .card-foot a:hover {
  text-decoration: underline;
}

.google-cta {
  text-align: center;
  margin-top: 3rem;
}
.google-cta a.ggl-rw {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
  font-size: 17px;
  font-weight: 500;
  padding: 14px 28px;
  border: 1px solid #ddd;
  border-radius: 50px;
  transition: 0.3s ease;
}
.google-cta a.ggl-rw:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.google-cta a.ggl-rw:hover path {
  fill: #fff;
}

@media only screen and (max-width: 991px) {
  .page-stats .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-stats .stat-box:nth-child(2) {
    border-right: none;
  }
  .page-stats .stat-box:nth-child(1),
  .page-stats .stat-box:nth-child(2) {
    border-bottom: 1px solid #f0f0f0;
  }
  .perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .career-intro,
  .career-apply-section .career-apply-grid {
    grid-template-columns: 1fr;
  }
  .career-apply-section .apply-copy {
    position: static;
  }
  .career-apply-section .career-form {
    max-width: 100%;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 675px) {
  .careers-hero h1,
  .testimonials-hero h1 {
    font-size: 30px;
  }
  .careers-hero,
  .testimonials-hero {
    padding: 3.5rem 0 3rem;
  }
  .careers-hero .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .careers-hero .hero-actions .btn {
    width: 100%;
    min-width: 0;
  }
  .careers-hero .hero-points {
    gap: 10px;
  }
  .careers-hero .hero-points li {
    width: 100%;
    justify-content: center;
  }
  .page-stats .stats-inner {
    grid-template-columns: 1fr;
    margin: 0 15px;
  }
  .page-stats .stat-box {
    border-right: none !important;
    border-bottom: 1px solid #f0f0f0;
  }
  .page-stats .stat-box:last-child {
    border-bottom: none;
  }
  .perks-grid {
    grid-template-columns: 1fr;
  }
  .career-intro-card,
  .career-intro-panel,
  .career-apply-section .apply-copy,
  .career-apply-section .career-form {
    padding: 1.5rem;
    border-radius: 16px;
  }
  .career-intro-card h3,
  .career-apply-section .apply-copy h3 {
    font-size: 24px;
  }
  .page-section .section-head h2 {
    font-size: 26px;
  }
  .page-cta h3 {
    font-size: 26px;
  }
  .rating-banner {
    flex-direction: column;
    text-align: center;
    margin: -1.5rem 15px 0;
    padding: 1.75rem 1.5rem;
    gap: 1.5rem;
    border-radius: 16px;
  }
  .rating-banner .rating-divider {
    width: 60px;
    height: 1px;
  }
  .rating-banner .rating-text {
    text-align: center;
    max-width: none;
    min-width: 0;
  }
  .rating-banner .rating-score .score {
    font-size: 48px;
  }
}
