/* ==== HOMEPAGE ==== */
.home-title{
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-primary-dark);
}

.home-sub{
  color: var(--color-text-muted);
}

/* ===== HERO BACKGROUND SLIDESHOW ===== */
.hero-job-search {
  position: relative;
  color: #fff;
  padding: 170px 20px;
  overflow: hidden;
  margin-bottom: 30px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-bg-1 { background-image: url('/uploads/hero/hero-bg.png'); opacity: 1; }
.hero-bg-2 { background-image: url('/uploads/hero/hero-bg2.png'); }
.hero-bg-3 { background-image: url('/uploads/hero/hero-bg3.png'); }

.hero-overlay {
  position: relative;
  background: rgba(0, 0, 0, 0.55); /* black with 55% opacity */
  padding: 50px 30px;
  border-radius: 16px;
  max-width: 900px;
  margin: auto;
  text-align: center;
  z-index: 2;
}

.hero-job-search h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-job-search h1 .highlight {
  color: var(--secondary-aqua); /* aqua highlight */
}

/* ===== FORM ===== */
.job-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  padding: 6px;
  gap: 8px;
  justify-content: center;
}

/* Each field */
.job-search-form .form-field {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 40px;
  padding: 6px 16px;
  flex: 1;
  min-width: 160px;
}

.job-search-form select,
.job-search-form input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 15px;
  color: var(--color-text-muted);
  background: transparent;
}

/* ===== BUTTON ===== */
.search-btn {
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background: var(--color-primary-dark);
}

/* ===== RESET LINK ===== */
.reset-link {
  margin-top: 16px;
}

.reset-link a {
  color: #fff;
  text-decoration: underline;
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-job-search {
    padding: 60px 15px;
  }

  .hero-overlay {
    padding: 40px 20px;
  }

  .job-search-form {
    flex-direction: column;
    border-radius: 20px;
  }

  .job-search-form .form-field {
    width: 100%;
  }
}

/* ========================= HOME CATEGORIES ========================= */
.home-cats{
  position: relative;
  overflow: hidden;
}

.home-cats::before{
  content:"";
  position:absolute;
  right:-220px;
  top:-260px;
  width:720px;
  height:720px;
  background: radial-gradient(circle,
    rgba(0, 121, 107, .14) 0%,
    rgba(255, 112, 67, .09) 35%,
    rgba(0, 121, 107, 0) 70%
  );
  filter: blur(2px);
  pointer-events:none;
}

.home-cats-link{
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.home-cats-link:hover{
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.home-cat-card{
  display: block;
  height: 100%;
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: var(--color-white);
  border: 1px solid rgba(96, 125, 139, .18);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 10px 24px var(--shadow-light);
}

.home-cat-card:hover{
  transform: translateY(-3px);
  border-color: rgba(0, 121, 107, .35);
  box-shadow: 0 16px 34px var(--shadow-medium);
}

.home-cat-icon{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0, 121, 107, .10);
  color: var(--color-primary);
  margin-bottom: 10px;
}

.home-cat-icon i{
  font-size: 22px;
}

.home-cat-name{
  font-weight: 800;
  color: var(--color-text);
  font-size: 18px;
  margin-bottom: 2px;
}

.home-cat-meta{
  color: var(--color-text-muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.home-cat-cta{
  font-weight: 800;
  color: var(--color-accent);
  font-size: 13px;
}

/* ================= TESTIMONIAL (Palette-aligned) ================== */
.testimonial-section{
    position: relative;
    background: var(--color-white);
    padding: 90px 0;
    overflow: hidden;
}

/* soft background halo (teal + warm accent blend) */
.testimonial-section::before{
    content:"";
    position:absolute;
    left: -180px;
    top: -220px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle,
        rgba(0, 121, 107, .14) 0%,
        rgba(255, 112, 67, .08) 35%,
        rgba(0, 121, 107, 0) 70%
    );
    filter: blur(2px);
    pointer-events:none;
}

/* LEFT: layered image cards */
.ts-media{
    position:relative;
    width: 540px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin:auto;
}

/* back outline card */
.ts-back-card{
    position:absolute;
    inset: 22px 22px -22px -22px;
    border: 3px solid rgba(96, 125, 139, .18); /* muted border */
    border-radius: 26px;
    background: transparent;
    z-index: 0;
}

/* soft card behind the image (beige bg from palette) */
.ts-soft-card{
    position:absolute;
    inset: 0;
    border-radius: 28px;
    background: var(--color-bg);
    z-index: 1;
    transform: translate(18px, -18px);
}

/* main image card */
.ts-image-card{
    position:absolute;
    inset:0;
    z-index:2;
    border-radius: 28px 28px 130px 130px;
    overflow:hidden;
    background: var(--color-white);
    box-shadow:
      0 30px 70px var(--shadow-medium),
      0 10px 30px var(--shadow-light);
}

.ts-image-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transform: scale(1.02);
}

/* RIGHT: text styles */
.ts-title{
    font-weight:800;
    color: var(--color-primary-dark);
    font-size: 44px;
    letter-spacing: -0.5px;
    margin:0 0 12px 0;
}

.ts-stars{
    font-size: 30px;
    line-height: 1;
    letter-spacing: 6px;
    color: var(--color-accent); /* warm accent */
    margin-bottom: 22px;
}

.ts-text{
    font-size: 40px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 18px;
    max-width: 680px;
}

.ts-author{
    font-size: 16px;
    color: var(--color-text-muted);
    margin:0 0 28px 0;
}

.ts-btn{
    background: var(--color-primary);
    color: var(--color-white);
    border:0;
    padding: 14px 46px;
    border-radius: 10px;
    font-size: 16px;
    font-weight:700;
    box-shadow: 0 14px 30px rgba(0, 121, 107, .28);
    transition: .2s ease;
}
.ts-btn:hover{
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 77, 64, .28);
}

/* spacing like screenshot */
.ts-right{
    padding-left: 50px;
}

@media (max-width: 992px){
    .ts-title{ font-size: 36px; }
    .ts-text{ font-size: 30px; }
    .ts-right{ padding-left: 0; }
    .ts-media{ width: 440px; }
}

@media (max-width: 767px){
    .testimonial-section{ padding: 60px 0; }
    .ts-media{ width: 340px; }
    .ts-title{ font-size: 30px; }
    .ts-stars{ font-size: 26px; }
    .ts-text{ font-size: 24px; }
    .ts-back-card{ inset: 18px 18px -18px -18px; }
    .ts-soft-card{ transform: translate(12px, -12px); }
    .ts-image-card{ border-radius: 24px 24px 100px 100px; }
}
