/* ══════════════════════════════════════════════════════════
   home.css  –  Job Fair Online 2026
   Responsive · Professional · Blue hover feature cards
══════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --primary:        #1E65D0;
  --primary-hover:  #154c9e;
  --primary-light:  #eef4ff;
  --primary-mid:    #ddeaff;
  --secondary:      #333333;
  --bg-color:       #ffffff;
  --bg-alt:         #f8f9fa;
  --surface:        #ffffff;
  --border:         #e0e0e0;
  --text-main:      #333333;
  --text-muted:     #666666;
  --radius:         8px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.05);
  --shadow-md:      0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:      0 12px 32px rgba(30,101,208,0.18);
  --card-radius:    16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ══════════════════════════════
   HEADER
══════════════════════════════ */
.jobfair-header {
  background-color:rgba(0, 95, 160, 1);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 0;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.logo {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.logo span { color: #333333; font-weight: 900; }
.header-nav { display: flex; gap: 2rem; }
.header-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--primary); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.header-btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.header-btn-outline:hover { background-color: rgba(30,101,208,0.06); }
.header-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}
.header-btn:hover { background-color: var(--primary-hover); }

/* ══════════════════════════════
   HERO SECTION
══════════════════════════════ */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 6rem;
  background-color: #ffffff;
}
.hero-bg-shape {
  position: absolute;
  top: -10%; left: -10%;
  width: 120%; height: 120%;
  background:
    radial-gradient(circle at 10% 20%, rgba(30,101,208,0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(30,101,208,0.06) 0%, transparent 50%);
  z-index: 1;
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 2;
}
.hero-content { flex: 1; max-width: 600px; }
.hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: #444444;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.hero-content h1 .highlight { color: var(--primary); }
.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.circle-bg {
  position: absolute;
  width: 400px; height: 400px;
  background-color: var(--primary);
  border-radius: 50%;
  z-index: 1;
}
.hero-image img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  width: 450px; height: 300px;
  object-fit: cover;
}

/* ══════════════════════════════
   FEATURES SECTION
══════════════════════════════ */
.features-section {
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  text-align: center;
}
.features-section h2 {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}
.features-section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0.6rem auto 0;
}

/* ══════════════════════════════
   FEATURE CARDS – compact & professional
══════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.1rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(30,101,208,0.12);
  border-color: rgba(30,101,208,0.25);
}

/* Icon: compact rounded container, not raw oversized <img> */
.feature-card > img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin: 0 auto 1rem;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-mid) 100%);
  border-radius: 12px;
  box-sizing: content-box;
  transition: transform 0.25s ease, background 0.25s ease;
}

.feature-card:hover > img {
  transform: scale(1.08);
  background: linear-gradient(135deg, var(--primary-mid) 0%, #c5d9ff 100%);
}

.feature-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0 0 0.4rem;
  line-height: 1.35;
}

.feature-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.feature-card:active {
  transform: translateY(-2px) scale(0.99);
  box-shadow: 0 4px 12px rgba(30,101,208,0.12);
  transition-duration: 0.1s;
}

/* ══════════════════════════════
   JOBS / CONTAINER
══════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.job-card {
  background: var(--surface);
  border: 1px solid #a3a3a3;
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.job-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #a3a3a3;
}
.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.job-logo {
  width: 64px; height: 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}
.job-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ikuti-btn {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.35rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ikuti-btn:hover { background: var(--primary); color: white; }
.job-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.verified-badge svg { width: 18px; height: 18px; fill: #1E65D0; }
.job-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.job-meta svg { width: 16px; height: 16px; fill: #999; }
.salary-info {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}
.salary-info svg { width: 16px; height: 16px; fill: var(--text-muted); }
.view-jobs-btn {
  width: 100%;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 0.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  margin-top: auto;
  transition: all 0.2s ease;
}
.view-jobs-btn:hover { background: #f8f9fa; border-color: #d0d0d0; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 2rem;
}
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-brand { margin-bottom: 2rem; }
.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}
.footer-logo span { color: var(--secondary); }
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 600px;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--bg-alt);
  color: var(--text-muted);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s ease;
}
.social-links a:hover { background: var(--primary); color: white; }
.footer-divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ══════════════════════════════
   MISC UI
══════════════════════════════ */
.footer-cta { text-align: center; padding: 2rem 0; }
.more-companies-btn {
  background: white;
  border: 1px solid var(--border);
  color: var(--secondary);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.more-companies-btn:hover { background: var(--bg-alt); }

/* Form */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  max-width: 420px;
  margin: 5rem auto;
  box-shadow: var(--shadow-md);
}
.form-header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--surface);
  transition: border-color 0.2s ease;
}
.form-control.with-icon { padding-left: 2.8rem; }
.form-control:focus { outline: none; border-color: var(--primary); }
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 1rem;
  color: #888;
  z-index: 2;
  font-size: 0.95rem;
}
.btn-submit {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.875rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--primary-hover); }

/* Loader */
#loader {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* OTP */
.code-input {
  padding: 0.5rem !important;
  text-align: center !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  width: 50px !important;
  height: 55px !important;
  border-radius: 8px !important;
}

/* Copy Alert */
.copy-alert {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: bottom 0.3s ease;
  z-index: 9999;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.copy-alert.show { bottom: 2rem; }
.copy-alert.hide { bottom: -100px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════════════════════ */

/* ── Medium desktop / large tablet  ≤ 1100px ── */
@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
  }
}

/* ── Tablet landscape  ≤ 1024px ── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .hero-content h1 { font-size: 2.2rem; }
  .circle-bg        { width: 300px; height: 300px; }
  .hero-image img   { width: 360px; height: 240px; }
}

/* ── Tablet portrait  ≤ 900px ── */
@media (max-width: 900px) {
  .hero-section { padding: 3rem 1.25rem 4rem; }
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .hero-content { max-width: 100%; }
  .hero-image   { display: none; }
  .header-nav   { display: none; }

  .features-section { margin-bottom: 3rem; }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ── Large phone  ≤ 640px ── */
@media (max-width: 640px) {
  /* Header */
  .header-container   { padding: 0 1rem; }
  .logo               { font-size: 1.4rem; }
  .header-btn-outline,
  .header-btn         { padding: 0.4rem 0.75rem; font-size: 0.8rem; }

  /* Hero */
  .hero-section        { padding: 2rem 1rem 2.25rem; }
  .hero-content h1     { font-size: 1.5rem; line-height: 1.35; margin-bottom: 0; }
  .hero-content p      { font-size: 0.95rem; margin-bottom: 1.5rem; }

  /* Features – compact 2-col, smaller and tidier */
  .features-section    { padding: 0 1rem; margin-bottom: 2.25rem; }
  .features-section h2 { font-size: 1.05rem; margin-bottom: 1.25rem; }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  .feature-card {
    padding: 1rem 0.7rem;
    border-radius: 12px;
  }
  .feature-card > img {
    width: 22px;
    height: 22px;
    padding: 9px;
    border-radius: 10px;
    margin-bottom: 0.7rem;
  }
  .feature-card h3 { font-size: 0.78rem; margin-bottom: 0.3rem; }
  .feature-card p  { font-size: 0.7rem; line-height: 1.45; }

  /* Companies section header + filter */
  .jobs-header-section {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }
  .jobs-header-section h2 {
    font-size: 1.15rem !important;
  }
  .filter-section,
  .filter-sector {
    width: 100%;
  }

  /* Company cards */
  .companies-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
  .company-card {
    padding: 1rem !important;
  }

  /* Container & footer */
  .container { padding: 0 1rem 2.5rem; }
  footer     { padding: 2rem 1rem 1rem; }
}

/* ── Standard phone  ≤ 480px ── */
@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .feature-card > img {
    width: 20px;
    height: 20px;
    padding: 8px;
  }
  .feature-card p {
    font-size: 0.68rem;
  }
}

/* ── Accessibility: reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .feature-card > img {
    transition: none !important;
    animation: none !important;
  }
}