:root {
  --primary-color: #606060;
  --secondary-color: #d3d3d3;
  --accent-color: #d3d3d3;
  --white-color: #ffffff;
  --black-color: #1f2937;
  --gray-color: #6b7280;
  --heading: "Lora", serif;
  --font-body: "Open Sans", sans-serif;
}

/* Updated hero section with proper image and improved layout */
.hero-section {
  background: linear-gradient(135deg, rgba(128,128,128,0.8), rgba(128,128,128,0.6)), url('../images/careers_abroad/jobs_in_australia/australia-business-skyline-hero.png') center/cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white-color);
  padding: 100px 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 0%, rgba(37,99,235,0.1) 50%, transparent 100%);
  animation: pulse 4s ease-in-out infinite;
}

/* Fixed hero content layout to be properly centered */
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out 0.3s both;
  width: 100%;
}

.hero-text h1 {
  font-family: var(--heading);
  font-size: 4rem;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  word-wrap: break-word;
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  line-height: 1.7;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Enhanced CTA button styling */
.cta-button {
  background: linear-gradient(135deg, var(--accent-color), #d97706);
  color: var(--white-color);
  padding: 20px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 10px 30px rgba(245,158,11,0.4);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background: linear-gradient(135deg, #d97706, var(--accent-color));
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(245,158,11,0.5);
}

.section {
    padding: 40px;
}

.section-title {
  font-family: var(--heading);
  font-size: 3rem;
  text-align: center;
  margin-bottom: 30px;
  color: var(--black-color);
  position: relative;
  animation: fadeInUp 0.8s ease-out;
  padding: 0 20px;
  word-wrap: break-word;
}

.section-title::after {
  content: '';
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: block;
  margin: 30px auto;
  border-radius: 2px;
  animation: slideInFromBottom 1s ease-out 0.3s both;
}

.section-description {
  text-align: center;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 80px;
  color: var(--gray-color);
  line-height: 1.8;
  padding: 0 20px;
}

/* Enhanced job cards grid and styling */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
  width: 100%;
}

.job-card {
  background: var(--white-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-top: 5px solid var(--primary-color);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
  width: 100%;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37,99,235,0.02), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.job-card:hover::before {
  opacity: 1;
}

.job-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  border-top-color: var(--accent-color);
}

.job-number {
  color: var(--primary-color);
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 25px;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.job-title {
  font-family: var(--heading);
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--black-color);
  font-weight: 600;
}

.job-description {
  color: var(--gray-color);
  margin-bottom: 20px;
  line-height: 1.7;
}

.salary-range {
  font-weight: 600;
  color: var(--accent-color);
  font-size: 1.1rem;
}

/* Improved benefits section layout */
.benefits-section {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.benefits-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.benefits-list {
  list-style: none;
  padding: 0;
  width: 100%;
}

.benefits-list li,
.eligibility-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding-left: 40px;
  position: relative;
  opacity: 0;
  animation: fadeInLeft 0.6s ease-out forwards;
  font-size: 1.1rem;
  line-height: 1.7;
  width: 100%;
}

.benefits-list li:nth-child(1) { animation-delay: 0.1s; }
.benefits-list li:nth-child(2) { animation-delay: 0.2s; }
.benefits-list li:nth-child(3) { animation-delay: 0.3s; }
.benefits-list li:nth-child(4) { animation-delay: 0.4s; }
.benefits-list li:nth-child(5) { animation-delay: 0.5s; }

.benefits-list li::before,
.eligibility-list li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.benefits-image img,
.visa-content img {
  transition: all 0.4s ease;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  width: 100%;
  height: auto;
  max-width: 100%;
}

.benefits-image img:hover,
.visa-content img:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.visa-section {
  background: var(--white-color);
}

.visa-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.visa-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
  color: var(--gray-color);
}

/* Enhanced eligibility cards */
.eligibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
  margin-top: 80px;
  width: 100%;
}

.eligibility-card {
  background: var(--white-color);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
  border-left: 5px solid var(--primary-color);
  width: 100%;
}

.eligibility-card h3 {
  font-family: var(--heading);
  font-size: 1.4rem;
  margin-bottom: 25px;
  color: var(--black-color);
  font-weight: 600;
}

.eligibility-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(37,99,235,0.03), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.eligibility-card:hover::before {
  opacity: 1;
  transform: rotate(45deg) translate(50%, 50%);
}

.eligibility-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  border-left-color: var(--accent-color);
}

/* Improved responsive design */
@media (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }
}

@media (max-width: 992px) {
  .hero-text h1 {
    font-size: 3.5rem;
  }
  
  .section-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .hero-content,
  .benefits-content,
  .visa-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .hero-text p {
    font-size: 1.1rem;
  }
  
  .jobs-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .eligibility-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .benefits-content,
  .visa-content {
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 2rem;
    padding: 0 15px;
  }
  
  .job-card,
  .eligibility-card {
    padding: 30px 25px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .section-description {
    padding: 0 15px;
  }
  
  .benefits-list li,
  .eligibility-list li {
    padding-left: 30px;
    font-size: 1rem;
  }
}

/* Prevent horizontal scrolling on very small screens */
@media (max-width: 400px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .job-card,
  .eligibility-card {
    padding: 20px 15px;
  }
  
  .jobs-grid {
    grid-template-columns: 1fr;
  }
}

html {
  scroll-behavior: smooth;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}