/* ====== Variables & Base Styles ====== */
:root {
  --primary: #4a6cf7;
  --primary-dark: #3a5bd9;
  --accent: #e74c3c;
  --dark: #2c3e50;
  --medium: #7f8c8d;
  --light: #f5f7fa;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ====== Typography ====== */
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-align: center;
  color: var(--dark);
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent) !important;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--medium);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* ====== Hero Section ====== */
.career-hero {
  background: linear-gradient(135deg, var(--primary), #6e45e2);
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.career-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==");
  opacity: 0.3;
}

.hero-heading {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
  animation: fadeInUp 0.8s ease-out;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subheading {
  font-size: 1.375rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  font-weight: 300;
}

/* ====== Internship Positions ====== */
.internship-positions {
  padding: 5rem 0;
  background-color: var(--white);
}

.positions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.position-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  height: 380px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent);
  position: relative;
}

.position-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(231, 76, 60, 0.1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0;
  transition: var(--transition);
}

.position-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.position-card:hover::before {
  opacity: 1;
}

.position-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.position-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.position-content p {
  color: var(--medium);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.position-apply {
  background-color: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
  margin-top: auto;
  align-self: flex-start;
  box-shadow: 0 4px 6px rgba(231, 76, 60, 0.2);
}

.position-apply:hover {
  background-color: #d62c1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(231, 76, 60, 0.3);
}

/* ====== Benefits Section ====== */
.benefits-section {
  padding: 5rem 0;
  background-color: var(--light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1);
}

.benefit-card h3 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.benefit-card p {
  color: var(--medium);
  font-size: 1rem;
  line-height: 1.7;
}

/* ====== CTA Section ====== */
.cta-section {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  animation: pulse 8s infinite linear;
}

.cta-heading {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.cta-text {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-button {
  background-color: var(--white);
  color: var(--primary);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  display: inline-block;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

/* ====== Animations ====== */
@keyframes fadeInUp {
  from {
    opacity: 0 !important;
    transform: translateY(20px) !important;
  }
  to {
    opacity: 1;
    transform: translateY(0) !important;
  }
}

@keyframes pulse {
  0% {
    transform: rotate(0deg) !important;
  }
  100% {
    transform: rotate(360deg) !important;
  }
}

/* ====== Responsive Adjustments ====== */
@media (max-width: 1024px) {
  .hero-heading {
    font-size: 2.5rem;
  }

  .positions-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .career-hero {
    padding: 4rem 0;
  }

  .hero-heading {
    font-size: 2.25rem;
  }

  .hero-subheading {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .cta-heading {
    font-size: 2rem;
  }

  .cta-text {
    font-size: 1.125rem;
  }
}

@media (max-width: 576px) {
  .career-hero {
    padding: 3rem 0;
  }

  .hero-heading {
    font-size: 2rem;
    line-height: 1.2;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .positions-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .position-card {
    height: auto;
    min-height: 360px;
  }

  .cta-section {
    padding: 4rem 0;
  }

  .cta-heading {
    font-size: 1.75rem;
  }
}

/* ====== Position Card Styles ====== */
.position-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  height: 380px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent);
  position: relative;
  padding-bottom: 1.5rem; /* Space below button */
}

.position-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.position-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
  transition: var(--transition);
}

.position-content p {
  color: var(--medium);
  margin-bottom: 1.5rem; /* Reduced from 2rem */
  line-height: 1.7;
  flex-grow: 1; /* Allows paragraph to grow and push button down */
}

/* ====== Apply Button - Elevated Style ====== */
.position-apply {
  background-color: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
  margin: 1.5rem auto 0; /* Top margin pushes it up from bottom */
  width: 60%;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(231, 76, 60, 0.2);
  position: relative;
  overflow: hidden;
}

/* Button hover/active states */
.position-apply:hover {
  background-color: #d62c1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(231, 76, 60, 0.3);
}

.position-apply:active {
  transform: translateY(0) scale(0.98);
}

/* Card hover effects */
.position-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.position-card:hover h3 {
  color: var(--primary);
}

/* ====== Responsive Adjustments ====== */
@media (max-width: 1024px) {
  .position-card {
    height: 360px;
  }
  .position-apply {
    width: 65%;
  }
}

@media (max-width: 768px) {
  .position-card {
    height: 340px;
    padding-bottom: 1.25rem;
  }
  .position-apply {
    width: 70%;
    height: 42px;
    font-size: 0.95rem;
    margin-top: 1.25rem;
  }
}

@media (max-width: 576px) {
  .position-card {
    height: auto;
    min-height: 320px;
  }
  .position-apply {
    width: 75%;
    height: 40px;
  }
}

.position-apply a {
  color: white !important;
}

#white {
  color: rgba(255, 255, 255, 0.934) !important;
}
