:root {
  --primary-blue: #1e3a8a;
  --accent-red: #ff5e62;
  --highlight-yellow: #facc15;
  --light-bg: #e6f0fa;
  --white-bg: #ffffff;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, var(--light-bg), #fef7f5);
  color: var(--primary-blue);
  overflow-x: hidden;
  line-height: 1.6;
}

.hero-bg {
  position: relative;
  min-height: 40vh !important;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  background: url("https://img.freepik.com/free-photo/top-view-medicine-keyboard-arrangement_23-2149341566.jpg?ga=GA1.1.1346594137.1747953076&semt=ais_hybrid&w=740")
    center/cover no-repeat !important;
  background-attachment: fixed;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.8),
    rgba(255, 94, 98, 0.8)
  );
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg .container {
  position: relative;
  z-index: 2;
}

.hero-bg h1 {
  font-family: "Lora", serif;
  font-weight: 700;
  font-size: 3.5rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.section-divider {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--primary-blue),
    var(--highlight-yellow)
  );
  margin: 2rem auto;
  width: 100px;
  border-radius: 3px;
}
.card img:first-child {
  border-radius: 15px 15px 0 0;
  height: 17em;
}
.card img:last-child {
  border-radius: 0 0 15px 15px;
}
.card {
  border: none;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--white-bg), var(--light-bg));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: auto;
}

.card:hover {
  transform: translateY(-8px);

  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card img {
  border-radius: 15px 15px 0 0;
  transition: transform 0.5s ease;
  width: 100% !important;
  display: block;
}

.card:hover img {
  transform: scale(1.05);
}

.card-body {
  padding: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card > *:not(img):not(.card-img-top) {
  display: none;
}

.btn-primary,
.btn-secondary {
  border-radius: 30px;
  font-weight: 600;
  padding: 0.8rem 2rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-blue), var(--accent-red));
  border: none;
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(45deg, var(--accent-red), var(--primary-blue));
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
}

.navbar {
  background: linear-gradient(
    90deg,
    rgba(30, 58, 138, 0.95),
    rgba(255, 94, 98, 0.95)
  );
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--highlight-yellow);
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.nav-link {
  color: white !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--highlight-yellow) !important;
}

.footer-bg {
 background: linear-gradient(
    140deg,
    rgba(30, 58, 138, 1) 0%,
    rgba(30, 58, 138, 0.95) 50%,
    rgba(30, 58, 138, 2) 100%
  );  color: white;
  padding: 4rem 0;
}

.social-icon {
  font-size: 1.5rem;
  color: white;
  margin-right: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
  transform: rotate(360deg);
  color: var(--highlight-yellow);
}

.table {
  background: var(--white-bg);
  border-radius: 10px;
  overflow: hidden;
}

.table th,
.table td {
  vertical-align: middle;
  padding: 1rem;
}

.table thead {
  background: linear-gradient(45deg, var(--primary-blue), var(--accent-red));
  color: white;
}

#applyFormContainer {
  background: var(--white-bg);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#applyFormContainer.show {
  opacity: 1;
  transform: translateY(0);
}

#applyFormContainer.hidden {
  opacity: 0;
  transform: translateY(20px);
}

@media (max-width: 768px) {
  body{
    text-align: center;
  }
  .hero-bg {
    min-height: 50vh;
  }

  .hero-bg h1 {
    font-size: 2.5rem;
  }

  .section-divider {
    margin: 1.5rem auto;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.6rem 1.5rem;
  }

  .navbar-brand img {
    width: 200px;
  }
}
