/* National Officers Page Specific Styles */

/* Hero Section for Officers Page */
.hero-officers {
  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-officers .container,
.hero-officers .container-fluid {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Hero image styling - full width */
.hero-officers .hero-image {
  width: 100%;
  height: 45vh;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.65);
  background-color: #090933;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hero content overlay */
.hero-officers .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;
}

/* Officers hero text styling */
.hero-officers .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-officers .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: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Content container */
.officers-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Page title styling */
.officers-page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #090933;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.officers-page-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  text-align: center;
  margin-bottom: 3rem;
  font-style: italic;
}

.officers-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;
}

/* Officers grid container - uniform sizing */
.officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Individual officer card - UNIFORM SIZE FOR ALL */
.officer-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(9, 9, 51, 0.1);
  border: 2px solid rgba(9, 9, 51, 0.1);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  height: 100%; /* Ensures all cards are same height */
  display: flex;
  flex-direction: column;
  max-width: 320px;
  margin: 0 auto;
  min-height: 300px; /* Set minimum height for consistency */
}

.officer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(9, 9, 51, 0.18);
  border-color: #090933;
}

/* Officer card body - CONSISTENT SIZING */
.officer-card .card-body {
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  justify-content: space-between; /* Distribute content evenly */
}

/* Officer image styling - CONSISTENT SIZE */
.officer-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem auto;
  border: 3px solid #e9ecef;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0; /* Prevent image from shrinking */
}

.officer-card:hover .officer-image {
  border-color: #090933;
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(9, 9, 51, 0.15);
}

/* Officer information - CONSISTENT LAYOUT */
.officer-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px; /* Ensure consistent text area height */
}

.officer-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #090933;
  margin-bottom: 0.4rem;
  line-height: 1.3;
  min-height: 2.6rem; /* Reserve space for long names */
  display: flex;
  align-items: center;
  justify-content: center;
}

.officer-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #090933;
  margin-bottom: 0.4rem;
  line-height: 1.4;
  min-height: 2.8rem; /* Reserve space for long titles */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.officer-tenure {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 1rem;
  font-style: italic;
  min-height: 1.2rem; /* Consistent tenure line height */
}

/* Officer contact button - CONSISTENT POSITIONING */
.officer-contact {
  margin-top: auto;
  padding-top: 0.8rem;
  flex-shrink: 0; /* Keep button at bottom */
}

.officer-contact .btn {
  background: linear-gradient(135deg, #090933 0%, #262c83 100%);
  border: none;
  color: white;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  border-radius: 0.4rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  width: 100%; /* Make all buttons same width */
  justify-content: center;
}

.officer-contact .btn:hover {
  background: linear-gradient(135deg, #262c83 0%, #090933 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(9, 9, 51, 0.25);
  color: white;
}

/* REMOVE ALL STAR STYLING */
/* Delete these sections completely:
.officer-card.commander::before { ... }
.officer-card.former-commander::before { ... }
*/

/* Responsive adjustments - maintain consistency */
@media (max-width: 991.98px) {
  .officers-content {
    padding: 2.5rem 1.5rem;
  }
  
  .hero-officers .hero-image {
    height: 40vh;
  }
  
  .hero-officers .hero-title {
    font-size: 2.6rem;
  }
  
  .hero-officers .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .officers-page-title {
    font-size: 2.2rem;
  }
  
  .officers-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
  }
  
  .officer-card {
    min-height: 280px;
  }
  
  .officer-card .card-body {
    padding: 1.25rem;
  }
  
  .officer-image {
    width: 90px;
    height: 90px;
  }
  
  .officer-info {
    min-height: 130px;
  }
}

@media (max-width: 767.98px) {
  .officers-content {
    padding: 2rem 1rem;
  }
  
  .hero-officers .hero-image {
    height: 35vh;
  }
  
  .hero-officers .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-officers .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-officers .hero-content {
    padding: 1rem;
  }
  
  .officers-page-title {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
  }
  
  .officers-page-subtitle {
    margin-bottom: 2rem;
  }
  
  .officers-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
  }
  
  .officer-card {
    min-height: 260px;
  }
  
  .officer-image {
    width: 85px;
    height: 85px;
  }
  
  .officer-name {
    font-size: 1rem;
    min-height: 2.4rem;
  }
  
  .officer-title {
    font-size: 0.85rem;
    min-height: 2.6rem;
  }
  
  .officer-info {
    min-height: 120px;
  }
}

@media (max-width: 575.98px) {
  .officers-content {
    padding: 1.5rem 0.5rem;
  }
  
  .hero-officers .hero-image {
    height: 30vh;
  }
  
  .hero-officers .hero-title {
    font-size: 1.9rem;
  }
  
  .officers-page-title {
    font-size: 1.7rem;
  }
  
  .officer-card .card-body {
    padding: 1.25rem;
  }
  
  .officer-card {
    max-width: 280px;
    min-height: 240px;
  }
  
  .officer-image {
    width: 80px;
    height: 80px;
  }
  
  .officer-info {
    min-height: 110px;
  }
}

/* Animation for cards on scroll */
.officer-card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced typography */
.officers-content h1,
.officers-content h2,
.officers-content h3 {
  color: #090933;
}

/* Contact information enhancement */
.contact-info {
  background: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 2rem;
  text-align: center;
  border-left: 4px solid #090933;
}

.contact-info p {
  margin: 0;
  color: #495057;
  font-size: 0.95rem;
}

.contact-info a {
  color: #090933;
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  color: #262c83;
  text-decoration: underline;
}