/* -------- Hero Section -------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Arial, sans-serif;
  padding: 0;
  text-align: center;
}

.hero .hero-content {
  max-width: 800px;
}

.hero .hero-content h2 {
  font-size: 16pt;
  border-bottom: 4px solid #8f1616; 
  display: inline-block;
  margin: 0; /* Removed previous top margin */
  color: #050505;
  text-align: center;
}

.hero .hero-image {
  width: 100%;
  height: 66vh;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 8px;
}

/* -------- Typing Animation Section -------- */
.intro {
  text-align: center;
  width: 100%;
}

.intro h2 {
  font-size: 16pt;
  color: #050505;
  margin: 0;
  padding: 0;
  display: inline-block;
}

#typed-words {
  color: #00bfff;
  border-right: 2px solid #00bfff;
  white-space: nowrap;
  font-size: 16pt;
}

/* Blinking cursor */
#typed-words::after {
  content: '';
  animation: blink 0.7s infinite;
}
#ticker-text {
  color: #070707ff;
  margin-left: 5px;
  transition: opacity 0.5s ease;
}
@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* -------- Tagline Section -------- */
.tagline {
  text-align: center;
  font-size: 16pt;
  color: #0d1e4d;
  margin-top: 0; 
}

.tagline p {
  border-bottom: 4px solid #8f1616;
  display: inline-block;
  font-weight: bold;
  margin: 0;
  padding: 0;
  color: #050505;
  font-size: 16pt;
}

.page-line {
  border: none;
  border-top: 2px solid #2e3e5c; 
  margin: 2rem auto;            
  width: 100%;                    
}

/* -------- Sliding Text -------- */
.slide-banner {
  position: absolute;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
  opacity: 0;
  margin-top: 50rem;
}

/* -------- Responsive -------- */
@media (max-width: 768px) {
  .hero .hero-content h2,
  .intro h2,
  .tagline,
  #typed-words {
    font-size: 14pt;
  }

  .hero .hero-content h2 {
    border-bottom: 3px solid #8f1616;
  }

  .hero .hero-image {
    height: 45vh;
    border-radius: 6px;
  }
}

@media (max-width: 480px) {
  .hero .hero-content h2,
  .intro h2,
  .tagline,
  #typed-words {
    font-size: 14pt;
  }

  .hero .hero-image {
    height: 35vh;
  }
}
