/* ===================== TCET NCC Officer Profile Content Styles ===================== */

/* === 1. Profile Page Header === */
.profile-header {
  background-color: #6c757d;
  color: #fff;
  padding: 2.4rem 1rem 2rem 1rem;
  text-align: center;
}
.profile-header h1 {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.4em;
}
.profile-header p {
  margin-bottom: 0.5em;
  font-size: 1.15rem;
  font-weight: 400;
}
.badge-rank {
  background-color: #fff;
  color: #071022;
  padding: 0.45rem 1.1rem;
  border-radius: 1rem;
  font-size: 1.04rem;
  font-weight: 700;
  margin-top: 0.5rem;
  display: inline-block;
  letter-spacing: 0.05em;
}

/* === 2. Profile Main Container and Photo === */
.officer-main-container {
  max-width: 89vw;
  width: 84%;
  margin: 2.2rem auto 2.3rem auto;
}

.profile-photo {
  max-width: 390px;
  width: 100%;
  min-height: 310px;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.17);
  margin-bottom: 1.4rem;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
}

/* On large screens, center vertically with min height */
@media (min-width: 992px) {
  .officer-main-container .row.align-items-center {
    align-items: center !important;
    min-height: 575px;
  }
}

/* === 3. Section Titles and Highlights === */
.section-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #232323;
  border-bottom: 3px solid #6c757d;
  padding-bottom: 0.3rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}
.highlight {
  color: #6c757d;
  font-weight: 700;
  font-size: 1.13em;
}

/* === 4. Badge and Misc Info Text === */
.info-text {
  font-size: 1.1rem;
  line-height: 1.67;
  color: #2d2d2d;
  margin-bottom: 0.6em;
}
b {
  text-decoration-color: #1822bd;
  font-weight: 700;
}

/* === 5. Button and Footer === */
.btn-secondary {
  background: #6c757d;
  color: #fff;
  font-weight: 600;
  border-radius: 9px;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.19s;
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #343a40;
  color: #fff;
}

footer {
  background: #f8f9fa;
  color: #333;
  text-align: center;
  font-size: 0.95rem;
  margin-top: 1.8rem;
  padding: 1rem 0 0.8rem 0;
  border-top: 1px solid #e0e0e0;
}

/* === 6. Responsive Tweaks === */
@media (max-width: 992px) {
  .officer-main-container {
    max-width: 97vw;
    width: 99%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .profile-photo {
    max-width: 70vw;
    min-height: 190px;
  }
}

@media (max-width: 650px) {
  .profile-header h1 {
    font-size: 1.24rem;
  }
  .profile-header, .officer-main-container {
    padding-left: 0.3em;
    padding-right: 0.3em;
  }
  .section-title {
    font-size: 1.1rem;
    border-bottom-width: 2px;
  }
  .profile-photo {
    min-height: 120px;
    margin-bottom: 0.7rem;
  }
  .info-text {
    font-size: 1rem;
  }
  .badge-rank {
    font-size: 0.96rem;
    padding: 0.28rem 0.73rem;
  }
  .highlight {
    font-size: 1em;
  }
}

/* Optional: fix for Bootstrap row/col spacing on smallest screens */
@media (max-width: 575px) {
  .officer-main-container .row.g-4 {
    gap: 0.8rem !important;
  }
}
