/* Internship List */
.internship-list {
  list-style: none;
  padding-left: 0;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vw, 28px); /* Responsive gap */
}

/* Individual Internship Item */
.internship-list li {
  background: #fff;
  padding: clamp(16px, 2.5vw, 20px);
  border-left: 8px solid #005bb5;
  border-radius: clamp(12px, 2vw, 18px);
  color: #375a8c;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(16px, 3vw, 24px);
  box-shadow: 0 8px 22px rgba(0, 91, 181, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.internship-list li:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 52px rgba(0, 91, 181, 0.28);
}

/* Certificate Image Container */
.internship-certificate {
  flex: 0 0 clamp(200px, 25vw, 280px);
}

.internship-certificate img {
  width: 100%;
  height: auto;
  border-radius: clamp(12px, 2vw, 18px);
  box-shadow: 0 8px 22px rgba(0, 91, 181, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.internship-certificate img:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 38px rgba(0, 91, 181, 0.28);
}

/* Internship Text */
.internship-content {
  flex: 1 1 clamp(300px, 40vw, 450px);
}

.internship-content a {
  color: #375a8c;
  text-decoration: none;
  display: block;
  font-weight: 600;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.internship-content p {
  margin-top: clamp(8px, 2vw, 12px);
  font-weight: 500;
  line-height: 1.5;
  color: #375a8c;
  font-size: clamp(0.85rem, 1.8vw, 1rem);
}

/* Company Link Highlight */
.company-link {
  color: #005bb5;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.company-link:hover {
  color: #003d80;
  text-shadow: 0 0 4px #005bb5;
  cursor: pointer;
}

/* Visit Company Website Button */
.btn-visit-company {
  display: inline-block;
  margin-top: 20px;
  padding: 0.6em 1.6em; /* auto-sizes with text */
  background: #005bb5;
  color: #fff !important;
  border-radius: 40px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(0, 91, 181, 0.8);
  transition: all 0.3s ease;
  letter-spacing: 1px;
  font-size: clamp(0.75rem, 2vw, 1rem); /* responsive text */
  position: relative;
  overflow: hidden;
  text-align: center;
  white-space: nowrap; /* keeps button in one line */
}

.btn-visit-company::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.4s ease;
  border-radius: 40px;
}

.btn-visit-company:hover::after {
  left: 0;
}

.btn-visit-company:hover {
  background: #003d80;
  box-shadow: 0 0 50px #003d80;
  cursor: pointer;
  transform: translateY(-2px);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .internship-list li {
      gap: clamp(12px, 2vw, 20px);
  }

  .internship-content a {
      font-size: clamp(0.9rem, 1.8vw, 1rem);
  }

  .internship-content p {
      font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  }
}

@media screen and (max-width: 768px) {
  .internship-list li {
      flex-direction: column;
      align-items: flex-start;
  }

  .internship-certificate {
      width: 100%;
      flex: none;
  }
}

@media screen and (max-width: 480px) {
  .internship-list {
      gap: clamp(12px, 5vw, 18px);
  }

  .internship-content a {
      font-size: clamp(0.85rem, 3.5vw, 0.95rem);
  }

  .internship-content p {
      font-size: clamp(0.8rem, 3vw, 0.9rem);
  }

  .btn-visit-company {
      display: block;
      width: 100%;
      padding: 0.8em 1.2em;
      font-size: clamp(0.75rem, 3.5vw, 0.9rem);
      border-radius: 25px;
  }
}
