/* USSVI Programs Page Specific Styles */

/* Hero Section for Programs Page */
.hero-programs {
  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-programs .container,
.hero-programs .container-fluid {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Hero image styling - full width */
.hero-programs .hero-image {
  width: 100%;
  height: 45vh;
  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-programs .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;
}

/* Programs hero text styling */
.hero-programs .hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.hero-programs .hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Content container */
.programs-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Page title styling */
.programs-page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #090933;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.programs-page-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  text-align: center;
  margin-bottom: 3rem;
  font-style: italic;
}

.programs-page-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, #090933 0%, #262c83 100%);
  border-radius: 2px;
}

/* Program cards */
.programs-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 12px 30px rgba(9, 9, 51, 0.15);
  border: 2px solid rgba(9, 9, 51, 0.1);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  margin-bottom: 2rem;
}

.programs-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(9, 9, 51, 0.25);
  border-color: #090933;
}

/* Program card header */
.programs-card .card-header {
  background: linear-gradient(135deg, #090933 0%, #262c83 100%);
  color: white !important; /* Force white text */
  border: none;
  padding: 1.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.programs-card .card-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.8s;
}

.programs-card:hover .card-header::before {
  left: 100%;
}

.programs-card .card-header * {
  color: white !important; /* Force all child elements to be white */
}

/* Program card title */
.programs-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0;
  color: white !important; /* Force white text */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Program card body */
.programs-card .card-body {
  padding: 2.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Program description */
.programs-description {
  font-size: 1rem;
  color: #495057;
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: left;
}

.programs-description:last-child {
  margin-bottom: 0;
}

/* Strong text in description */
.programs-description strong {
  color: #090933;
  font-weight: 700;
}

/* Program requirements list */
.programs-card ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.programs-card li {
  color: #495057;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.programs-card li:last-child {
  margin-bottom: 0;
}

/* Program icon (if added) */
.programs-icon {
  font-size: 3rem;
  color: #090933;
  margin-bottom: 1rem;
  opacity: 0.8;
  text-align: center;
  display: block;
}

.programs-card:hover .programs-icon {
  opacity: 1;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* Action buttons for programs */
.programs-btn {
  background: linear-gradient(135deg, #090933 0%, #262c83 100%);
  border: none;
  color: white;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.5rem;
  transition: all 0.4s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(9, 9, 51, 0.2);
  margin-top: 1rem;
}

.programs-btn:hover {
  background: linear-gradient(135deg, #262c83 0%, #3d4db8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(9, 9, 51, 0.3);
  color: white;
  text-decoration: none;
}

.programs-btn:active {
  transform: translateY(0);
}

/* Info note */
.programs-note {
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
  border: 1px solid #b3d9f2;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 2rem;
  color: #0066cc;
  font-weight: 600;
  border-left: 4px solid #090933;
}

.programs-note i {
  margin-right: 0.5rem;
  color: #090933;
}

/* Content sections */
.content-section {
  margin-bottom: 2rem;
}

.content-section:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .programs-content {
    padding: 2.5rem 1.5rem;
  }
  
  .hero-programs .hero-image {
    height: 40vh;
  }
  
  .hero-programs .hero-title {
    font-size: 2.6rem;
  }
  
  .hero-programs .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .programs-page-title {
    font-size: 2.2rem;
  }
  
  .programs-card .card-body {
    padding: 2rem;
  }
  
  .programs-card .card-header {
    padding: 1.25rem 1.5rem;
  }
  
  .programs-card-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 767.98px) {
  .programs-content {
    padding: 2rem 1rem;
  }
  
  .hero-programs .hero-image {
    height: 35vh;
  }
  
  .hero-programs .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-programs .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-programs .hero-content {
    padding: 1rem;
  }
  
  .programs-page-title {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
  }
  
  .programs-page-subtitle {
    margin-bottom: 2rem;
  }
  
  .programs-card .card-body {
    padding: 1.5rem;
  }
  
  .programs-card .card-header {
    padding: 1rem 1.25rem;
  }
  
  .programs-card-title {
    font-size: 1.2rem;
  }
  
  .programs-description {
    font-size: 0.95rem;
  }
  
  .programs-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .programs-content {
    padding: 1.5rem 0.5rem;
  }
  
  .hero-programs .hero-image {
    height: 30vh;
  }
  
  .hero-programs .hero-title {
    font-size: 1.9rem;
  }
  
  .programs-page-title {
    font-size: 1.7rem;
  }
  
  .programs-card .card-body {
    padding: 1.25rem;
  }
  
  .programs-card .card-header {
    padding: 0.875rem 1rem;
  }
  
  .programs-icon {
    font-size: 2.5rem;
  }
}

/* Animation for cards on load */
.programs-card {
  animation: fadeInUp 0.8s ease-out;
}

.programs-card:nth-child(2) {
  animation-delay: 0.1s;
}

.programs-card:nth-child(3) {
  animation-delay: 0.2s;
}

.programs-card:nth-child(4) {
  animation-delay: 0.3s;
}

.programs-card:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced typography */
.programs-content h1,
.programs-content h2,
.programs-content h3 {
  color: #090933;
}

.programs-content p {
  color: #495057;
}