/* ==========================================================================
   ZeGoodJob - Premium Whitehat Recruitment & Career Platform
   Design System & Layout - Exact 1:1 Reference Replication
   ========================================================================== */

:root {
  --primary: #9C1C5E;
  --primary-gradient: linear-gradient(135deg, #8A1550 0%, #C2185B 50%, #7B1FA2 100%);
  --primary-hover: #7A1349;
  --accent-magenta: #C2185B;
  --text-dark: #1E232A;
  --text-muted: #5F6D7E;
  --text-light: #F8FAFC;
  --bg-light: #F4F6F9;
  --bg-dark: #0F0A19;
  --card-bg: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 28px rgba(156, 28, 94, 0.12);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-icon {
  color: #F48FB1;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -2px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: #F48FB1;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFFFFF;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #E91E63;
  border-radius: 2px;
}

.nav-btn {
  background: var(--primary-gradient);
  color: #FFFFFF;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(194, 24, 91, 0.4);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(194, 24, 91, 0.6);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: #FFFFFF;
  font-size: 1.8rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 680px;
  background: linear-gradient(135deg, rgba(15, 10, 25, 0.85) 0%, rgba(45, 12, 50, 0.78) 100%),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  padding: 150px 0 100px;
  display: flex;
  align-items: center;
  color: #FFFFFF;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #FFFFFF;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-quote {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
  font-style: italic;
  margin-bottom: 36px;
  max-width: 540px;
  border-left: 3px solid var(--accent-magenta);
  padding-left: 16px;
}

.btn-hero {
  display: inline-block;
  padding: 14px 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
  background: #FFFFFF;
  color: var(--primary);
  border-color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
}

/* Hero Right Floating Cards */
.hero-visuals {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.hero-card {
  width: 140px;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition);
}

.hero-card:nth-child(1) { transform: translateY(-15px); }
.hero-card:nth-child(2) { transform: translateY(15px); }
.hero-card:nth-child(3) { transform: translateY(-5px); }

.hero-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.8);
  z-index: 10;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-badge {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 10px;
  background: rgba(15, 10, 25, 0.78);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;
}

/* ==========================================================================
   Section 2: Hot Deals (Job Cards Container)
   ========================================================================== */
.hot-deals-wrapper {
  margin-top: -60px;
  position: relative;
  z-index: 20;
  padding-bottom: 70px;
}

.deals-container {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(156, 28, 94, 0.08);
}

.deals-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.deals-title-box {
  width: 100%;
}

.deals-title-box h2 {
  color: var(--primary);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.deals-title-box p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 4px;
}

.deals-nav-arrows {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
}

.arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #D1D5DB;
  background: #FFFFFF;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
}

.arrow-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* Job Cards Grid */
.job-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.job-card {
  height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.job-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.job-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.job-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(15, 10, 25, 0.88) 70%, rgba(15, 10, 25, 0.98) 100%);
  z-index: 2;
}

.job-card-content {
  position: relative;
  z-index: 3;
  color: #FFFFFF;
}

.job-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
}

.job-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.job-tag-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-card {
  width: 100%;
  padding: 10px 0;
  background: #FFFFFF;
  color: var(--primary);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
}

.btn-card:hover {
  background: var(--primary);
  color: #FFFFFF;
}

/* ==========================================================================
   Section 3: Top Destinations / Career Sectors
   ========================================================================== */
.sectors-section {
  padding: 60px 0 90px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  color: var(--primary);
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 6px;
}

/* Asymmetrical Bento Grid matching Reference layout */
.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 20px;
}

.bento-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.bento-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(15, 10, 25, 0.75) 100%);
  z-index: 2;
}

.bento-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 3;
  color: #FFFFFF;
}

.bento-country {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.bento-location {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

/* Specific Bento Grid Placement */
.bento-tall {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-tall .bento-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(156, 28, 94, 0.85) 60%, rgba(15, 10, 25, 0.95) 100%);
}

.bento-tall-details {
  position: relative;
  z-index: 3;
  padding: 30px;
  color: #FFFFFF;
}

.bento-tall-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 10px;
  line-height: 1.5;
}

/* ==========================================================================
   Section 4: Our Responsibilities (Banner with 4 Checkmark Cards)
   ========================================================================== */
.responsibilities-section {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 10, 25, 0.85) 0%, rgba(45, 12, 50, 0.8) 100%),
              url('../images/banner-bg.jpg') center/cover no-repeat;
  padding: 80px 0;
  color: #FFFFFF;
}

.resp-header {
  text-align: center;
  margin-bottom: 44px;
}

.resp-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.resp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.resp-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
}

.resp-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.5);
}

.check-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.2rem;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(194, 24, 91, 0.5);
}

.resp-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.resp-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

/* ==========================================================================
   Section 5: Interactive Job Search Widget
   ========================================================================== */
.widget-section {
  padding: 80px 0;
  background: #FFFFFF;
}

.widget-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 15px;
  align-items: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(156, 28, 94, 0.15);
}

.btn-search {
  background: var(--primary-gradient);
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  align-self: flex-end;
  box-shadow: 0 8px 20px rgba(194, 24, 91, 0.3);
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(194, 24, 91, 0.5);
}

/* Search results dynamic display */
.search-results {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed #D1D5DB;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.search-results strong {
  color: var(--primary);
}

/* ==========================================================================
   Section 6: FAQ Accordion
   ========================================================================== */
.faq-section {
  padding: 80px 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-dark);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: none;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

/* ==========================================================================
   Section 7: Footer (Replicated 1:1 from Reference Layout)
   ========================================================================== */
.site-footer {
  background: #FFFFFF;
  padding: 70px 0 30px;
  border-top: 1px solid #E5E7EB;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .logo-text {
  color: var(--text-dark);
}

.footer-brand p {
  margin: 16px 0 20px;
  line-height: 1.5;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.social-icon:hover {
  transform: translateY(-3px);
  background: var(--accent-magenta);
}

.footer-col h4 {
  color: var(--text-dark);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a:hover {
  color: var(--primary);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-input {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #D1D5DB;
  font-family: inherit;
  font-size: 0.88rem;
}

.btn-newsletter {
  padding: 10px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
}

.btn-newsletter:hover {
  opacity: 0.9;
}

/* Legal Compliance Box */
.legal-badges {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.legal-badge-item {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #F9FAFB;
  cursor: pointer;
}

.legal-badge-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.copyright-bar {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #E5E7EB;
  color: #9CA3AF;
  font-size: 0.85rem;
}

/* Legal Modals Styling */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 10, 25, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 35px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #F3F4F6;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
}

.modal-content h3 {
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.modal-content p, .modal-content ul {
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-quote {
    margin: 0 auto 30px;
  }
  .hero-visuals {
    justify-content: center;
  }
  .job-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .bento-tall {
    grid-row: auto;
    height: 280px;
  }
  .resp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .widget-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-card {
    width: 100px;
    height: 180px;
  }
  .job-cards-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .resp-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .widget-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
