/* Home Page Specific Styles */

/* Core Values Cards - Navy outline with strong shadows */
.home-core-values .card {
  border: 2px solid #090933 !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 8px 25px rgba(9, 9, 51, 0.2) !important;
  transition: all 0.3s ease !important;
  background: white !important;
  height: auto;
  min-height: auto;
}

.home-core-values .card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 15px 40px rgba(9, 9, 51, 0.3) !important;
  border-color: #262c83 !important;
}

.home-core-values .card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.home-core-values .card-title {
  color: #090933 !important;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.home-core-values .card-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #495057;
  margin-bottom: 0;
  flex-grow: 1;
}

/* Override Bootstrap classes that might conflict */
.home-core-values .shadow-sm {
  box-shadow: 0 8px 25px rgba(9, 9, 51, 0.2) !important;
}

.home-core-values .border-0 {
  border: 2px solid #090933 !important;
}

/* Responsive card adjustments */
@media (min-width: 768px) {
  .home-core-values .card-body {
    padding: 1.5rem;
  }
  
  .home-core-values .card-title {
    font-size: 1.4rem;
  }
  
  .home-core-values .card-text {
    font-size: 1rem;
    line-height: 1.5;
  }
}

@media (min-width: 992px) {
  .home-core-values .card-body {
    padding: 1.75rem;
  }
  
  .home-core-values .card-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .home-core-values .card-body {
    padding: 1rem;
  }
  
  .home-core-values .card-title {
    font-size: 1.2rem;
  }
  
  .home-core-values .card-text {
    font-size: 0.85rem;
  }
}

/* Button spacing under cards */
.home-core-values .text-center.mt-3 {
  margin-top: 1rem !important;
  margin-bottom: 3rem !important;
}

@media (max-width: 767.98px) {
  .home-core-values .text-center.mt-3 {
    margin-bottom: 2.5rem !important;
  }
}

/* Section spacing for home page */
.content-below-hero .home-core-values {
  margin-bottom: 4rem;
}

.content-below-hero section:nth-child(2) {
  margin-top: 4rem !important;
  margin-bottom: 4rem !important;
}

.content-below-hero section:nth-child(3) {
  margin-top: 4rem !important;
}

@media (max-width: 767.98px) {
  .content-below-hero .home-core-values {
    margin-bottom: 3rem;
  }
  
  .content-below-hero section:nth-child(2) {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
  }
  
  .content-below-hero section:nth-child(3) {
    margin-top: 3rem !important;
  }
}

/* Magazine section alignment - CENTER the button */
.magazine-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.magazine-content .btn-container {
  margin-top: 2rem;
  text-align: center;
  width: 100%;
}

/* Magazine image sizing */
.magazine-image {
  max-height: 500px !important;
  width: auto !important;
  object-fit: contain !important;
}

@media (min-width: 768px) {
  .magazine-image {
    max-height: 600px !important;
  }
  
  .magazine-content {
    align-items: flex-start;
  }
  
  .magazine-content .btn-container {
    margin-top: 2.5rem;
  }
}

@media (max-width: 767.98px) {
  .magazine-image {
    max-height: 350px !important;
  }
  
  .magazine-content .btn-container {
    margin-top: 1.5rem;
  }
}

/* Ensure equal height cards while keeping content compact */
.home-core-values .row {
  align-items: stretch;
}

.home-core-values .col-12 {
  display: flex;
  flex-direction: column;
}

.home-core-values .card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-core-values .card-body {
  flex: 1;
}