html,
body {
  height: 100%;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: #6c757d;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s;
}

/* hero section */
.hero-section {
  max-width: 1200px;
  margin: auto;
  padding: 80px 32px 40px;
  display: flex;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: row;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 2;
  padding-top: 80px;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.6;
}

.hero-cta {
  flex: 1;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: end;
  padding-top: 60px;
}

@keyframes floatLoop {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* cta box section */
.cta-box {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 350px;
  animation: floatLoop 3s ease-in-out infinite;
}

.cta-box h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--primary);
}

.cta-box p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.btn-submit-cv {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-submit-cv:hover {
  background-color: #005fa3;
}

/* hero section */

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 500px;
  color: #1a2332;
  line-height: 1.2;
}

.hero-description {
  color: #6c757d;
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  padding: 35px;
  border-radius: 8px;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.15); */
  color: white;
}

.feature h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.feature p {
  font-size: 0.9rem;
  color: #ffffff;
  line-height: 1.5;
}

.btn-submit-cv {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.btn-submit-cv:hover {
  box-shadow: 0 4px 12px rgba(167, 29, 42, 0.3);
}

/* content section */

.content-section {
  max-width: 1200px;
  margin: auto;
  padding: 40px 32px 0px 32px;
  /* background: #fff; */
}

.content-section h2 {
  color: var(--primary);
  font-weight: 600;
}
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a2332;
  margin-bottom: 8px;
  text-align: start;
}

.section-description {
  color: #5a5a5a;
  font-size: 1rem;
  margin-bottom: 36px;
  text-align: start;
}

/* job card */

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.job-card {
  background: #fff;
  padding: 28px 22px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  transition: box-shadow 0.2s;
}

.job-card:hover {
  box-shadow: 0 8px 24px rgba(167, 29, 42, 0.1);
  border-color: #ffeaea;
}

.job-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.job-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #6c757d;
  font-weight: 650px;
}

.job-description {
  color: #5a5a5a;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.job-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-apply {
  background: var(--primary);
  color: white;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.btn-apply:hover {
  background-color: var(--secondary);
  transform: translateY(-2px) scale(1.04);
}

.info-box {
  background: #f6f7fb;
  padding: 26px 22px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 0;
  border: 1px solid #f0f0f0;
  text-align: center;
}

.info-box h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.info-box p {
  color: #444;
  font-size: 1rem;
}

/* popup modal */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(30, 33, 50, 0.32);
  transition: opacity 0.2s;
}

.modal-content {
  background: #fff;
  margin: 60px auto;
  border-radius: 12px;
  max-width: 600px;
  box-shadow: 0 8px 32px rgba(30, 33, 50, 0.18);
  padding: 0 0 32px 0;
  animation: modalIn 0.2s;
}

@keyframes modalIn {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px 10px 28px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--primary);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 18px 28px 0 28px;
}

.modal-job-title {
  font-weight: 600;
  color: #1a2332;
  margin-bottom: 16px;
  font-size: 1.08rem;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 6px;
  color: #444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  background: #fafbfc;
  outline: none;
}

.form-group textarea {
  min-height: 60px;
  resize: vertical;
}

.file-upload-group {
  margin-bottom: 16px;
}

.file-btn {
  background: #f6f7fb;
  color: var(--primary);
  border: 1px solid #ffeaea;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 0.98rem;
  cursor: pointer;
  margin-right: 10px;
}
.cards-section {
  max-width: 1200px;
  margin: auto;
  padding: 40px 30px 40px;
  align-items: center;
  justify-content: center;
}

.file-name-display {
  font-size: 0.96rem;
  color: #6c757d;
}

.submit-section {
  margin-top: 18px;
  text-align: right;
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.btn-submit:hover {
  box-shadow: 0 4px 12px rgba(167, 29, 42, 0.18);
  transform: translateY(-2px) scale(1.04);
}

/* --- Tablets & small laptops (≤1200px) --- */
@media (max-width: 1200px) {
  .hero-section {
    padding: 70px 32px 30px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* --- Medium tablets (≤900px) --- */
@media (max-width: 900px) {
  nav ul {
    gap: 20px;
  }

  .logo img {
    min-width: unset !important;
  }
  .hero-section {
    flex-direction: column;
    align-items: center;
    padding: 60px 24px 20px;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
    padding: 0;
  }

  .hero-text {
    padding-top: 50px;
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-cta {
    justify-content: center;
    padding-top: 0;
  }

  .cta-box {
    width: 100%;
    max-width: 400px;
    animation: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .cards-section {
    padding: 20px 24px;
  }

  .content-section {
    padding: 20px 24px;
  }
}

/* --- Tablets & large phones (≤660px) --- */
@media (max-width: 660px) {
  .mobile-menu-btn {
    display: block;
  }

  /* nav ul {
    display: none;
  } */

  .hero-section {
    padding: 40px 16px 20px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .cta-box {
    width: 100%;
    max-width: 100%;
    padding: 22px;
  }

  .cta-box h3 {
    font-size: 1.05rem;
  }

  .cta-box p {
    font-size: 0.9rem;
  }

  .btn-submit-cv {
    width: 100%;
    font-size: 0.95rem;
    padding: 12px 0;
  }

  .feature h3 {
    font-size: 1.1rem;
  }

  .feature p {
    font-size: 0.9rem;
  }

  .info-box {
    padding: 20px;
  }
}

/* --- Small phones (≤400px) --- */
@media (max-width: 400px) {
  .hero-content {
    gap: 16px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .cta-box {
    width: 100%;
    max-width: 300px;
    padding: 18px;
  }

  .btn-submit-cv {
    font-size: 0.9rem;
    padding: 10px 0;
  }

  .job-card {
    padding: 22px 18px;
  }

  .job-title {
    font-size: 1.05rem;
  }

  .info-box h3 {
    font-size: 1rem;
  }

  .info-box p {
    font-size: 0.9rem;
  }
}
