/* USSVI History Page Specific Styles */

/* Hero Section for History Page */
.hero-history {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  z-index: 1;
}

/* Override any Bootstrap container padding */
.hero-history .container,
.hero-history .container-fluid {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Hero image styling - full width */
.hero-history .hero-image {
  width: 100%;
  height: 50vh; /* Taller for content pages */
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.7);
  background-color: #090933;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hero content overlay */
.hero-history .hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  z-index: 2;
  padding: 2rem;
  background: rgba(9, 9, 51, 0.3);
  margin: 0 !important;
}

/* History hero text styling */
.hero-history .hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.hero-history .hero-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Content container */
.history-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Page title styling */
.history-page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #090933;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.history-page-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #090933 0%, #262c83 100%);
  border-radius: 2px;
}

/* Modern card styling */
.history-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(9, 9, 51, 0.12);
  border: 1px solid rgba(9, 9, 51, 0.1);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.history-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(9, 9, 51, 0.18);
}

.history-card .card-body {
  padding: 2rem;
}

/* Lead paragraph styling */
.history-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #495057;
  font-weight: 400;
  margin-bottom: 0;
}

/* Quote card special styling */
.history-quote-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 5px solid #090933;
}

.history-quote-card .quote-icon {
  font-size: 3rem;
  color: #090933;
  opacity: 0.7;
  margin-right: 1.5rem;
}

.history-quote-card blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: #495057;
  margin: 0;
  line-height: 1.6;
}

/* History details styling */
.history-details p {
  font-size: 1rem;
  line-height: 1.7;
  color: #495057;
  margin-bottom: 1.5rem;
}

.history-details p:last-child {
  margin-bottom: 0;
}

/* Image and text card styling */
.history-image-card {
  background: white;
}

.history-image-card img {
  border-radius: 0.75rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.history-image-card img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.history-image-text {
  padding-left: 2rem;
}

.history-image-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #495057;
  margin-bottom: 1rem;
}

.history-image-text strong {
  color: #090933;
}

.history-image-text a {
  color: #090933;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.history-image-text a:hover {
  color: #262c83;
  text-decoration: underline;
}

/* Section dividers */
.history-section {
  margin-bottom: 3rem;
}

.history-section:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .history-content {
    padding: 2.5rem 1.5rem;
  }
  
  .hero-history .hero-image {
    height: 45vh;
  }
  
  .hero-history .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-history .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .history-page-title {
    font-size: 2.2rem;
  }
  
  .history-card .card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .history-content {
    padding: 2rem 1rem;
  }
  
  .hero-history .hero-image {
    height: 40vh;
  }
  
  .hero-history .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-history .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-history .hero-content {
    padding: 1rem;
  }
  
  .history-page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .history-card .card-body {
    padding: 1.25rem;
  }
  
  .history-quote-card .quote-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
  }
  
  .history-image-text {
    padding-left: 0;
    padding-top: 1.5rem;
  }
  
  .history-lead {
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .history-content {
    padding: 1.5rem 0.5rem;
  }
  
  .hero-history .hero-image {
    height: 35vh;
  }
  
  .hero-history .hero-title {
    font-size: 2rem;
  }
  
  .hero-history .hero-subtitle {
    font-size: 1rem;
  }
  
  .history-page-title {
    font-size: 1.8rem;
  }
  
  .history-quote-card .card-body {
    flex-direction: column;
    text-align: center;
  }
  
  .history-quote-card .quote-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* Animation for cards on scroll */
.history-card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced typography */
.history-content h1,
.history-content h2,
.history-content h3 {
  color: #090933;
}

.history-content p {
  color: #495057;
}

/* Contact link enhancement */
.contact-link {
  background: linear-gradient(135deg, #090933 0%, #262c83 100%);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none !important;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  color: white !important;
}