/* Hero Container */
.hero-container {
  position: relative;
  height: 80vh; /* 80% of screen height */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

/* Slideshow Logic */
.hero-slideshow {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.slide {
  position: absolute;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideFade 15s infinite; /* 5s per image x 3 images */
}

/* Timing for 3 images */
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

@keyframes slideFade {
  0% { opacity: 0; }
  10% { opacity: 1; }
  33% { opacity: 1; }
  43% { opacity: 0; }
  100% { opacity: 0; }
}

/* Content Overlay */
.hero-overlay {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.4); /* Darkens background for text legibility */
  padding: 2rem;
  border-radius: 8px;
}

.hero-content h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin: 10px;
  transition: 0.3s;
}
/* The Grid Container */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* The Card Itself */
.portal-card {
  display: block;
  background: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  text-decoration: none; /* Removes the underline */
  color: #24292e !important; /* Forces text to be dark, not blue */
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* The Hover Effect */
.portal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  border-color: #007bff; /* Optional: adds a blue border on hover */
}

/* Icon and Text Styling */
.card-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
  display: block;
}

.portal-card h3 {
  margin: 10px 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.portal-card p {
  font-size: 0.95rem;
  color: #586069;
  line-height: 1.5;
}
/* Custom Button Style for Labs */
.btn-lab {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 5px;
    background-color: #007bff; /* Change this to your preferred color */
    color: #ffffff !important; /* Forces text to stay white */
    text-decoration: none !important; /* Removes the underline */
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
}

.btn-lab:hover {
    background-color: #0056b3; /* Darker shade when hovering */
    text-decoration: none;
}
.btn-outline { background: transparent; border: 2px solid white; }
.btn:hover { transform: translateY(-3px); opacity: 0.9; }
