/* Our Team Page Stylesheet */

.pg-team-wrapper {
  background-color: #faf7f2;
  font-family: 'Rajdhani', sans-serif;
}

/* Hero Section */
.pg-team-hero {
  min-height: 40vh;
  position: relative;
  color: #f8f9fa;
}

.team-hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.team-hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(5, 27, 53, 0.85) 0%, rgba(5, 27, 53, 0.7) 50%, rgba(5, 27, 53, 0.3) 100%);
  z-index: 2;
}

.team-hero-tag {
  color: #c59d5f;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.team-hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.team-hero-para {
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.55;
  opacity: 0.95;
}

/* ===================================
   993px - 1199px (Small Desktop / Large Laptop)
   =================================== */
@media (min-width: 993px) and (max-width: 1199px) {
  .pg-team-hero {
    min-height: 36vh;
    padding: 3rem 0 !important;
  }

  .team-hero-tag {
    font-size: 20px;
  }

  .team-hero-title {
    font-size: 2.4rem;
  }

  .team-hero-para {
    font-size: 1.05rem;
  }
}

/* ===================================
   768px - 992px (Tablet)
   =================================== */
@media (min-width: 768px) and (max-width: 992px) {
  .pg-team-hero {
    min-height: auto;
    padding: 2.75rem 0 !important;
  }

  .team-hero-overlay-gradient {
    background: linear-gradient(to right, rgba(5, 27, 53, 0.9) 0%, rgba(5, 27, 53, 0.75) 60%, rgba(5, 27, 53, 0.45) 100%);
  }

  .team-hero-tag {
    font-size: 17px;
    margin-bottom: 8px !important;
  }

  .team-hero-title {
    font-size: 1.9rem;
    margin-bottom: 12px !important;
  }

  .team-hero-para {
    font-size: 0.98rem;
    line-height: 1.5;
  }
}

/* ===================================
   576px - 767px (Large Mobile)
   =================================== */
@media (min-width: 576px) and (max-width: 767px) {
  .pg-team-hero {
    min-height: auto;
    padding: 2.25rem 0 !important;
  }

  .team-hero-overlay-gradient {
    background: linear-gradient(to bottom, rgba(5, 27, 53, 0.55) 0%, rgba(5, 27, 53, 0.9) 70%);
  }

  .team-hero-tag {
    font-size: 15px;
    margin-bottom: 6px !important;
  }

  .team-hero-title {
    font-size: 1.55rem;
    line-height: 1.22;
    margin-bottom: 10px !important;
  }

  .team-hero-para {
    font-size: 0.9rem;
    line-height: 1.48;
  }
}

/* ===================================
   Max 575px (Small Mobile)
   =================================== */
@media (max-width: 575px) {
  .pg-team-hero {
    min-height: auto;
    padding: 1.75rem 0 !important;
  }

  /* .team-hero-overlay-gradient {
    background: linear-gradient(to bottom, rgba(5, 27, 53, 0.6) 0%, rgba(5, 27, 53, 0.92) 65%);
  } */

  .team-hero-tag {
    font-size: 13px;
    margin-bottom: 5px !important;
    letter-spacing: 0.04em;
  }

  .team-hero-title {
    font-size: 1.3rem;
    line-height: 1.28;
    margin-bottom: 8px !important;
  }

  .team-hero-para {
    font-size: 0.82rem;
    line-height: 1.45;
  }
}

/* Team Members Section */
.pg-team-members-section {
  background-color: #faf7f2;
}

.team-card-row {
  background-color: #051b35;
  border: 3.5px solid #c59d5f;
  /* Premium gold border */
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.team-photo-img {
  background-color: #d9d9d9;
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  min-height: 400px;
  transition: opacity 0.3s ease;
}

.team-card-row:hover .team-photo-img {
  opacity: 0.95;
}

.team-counsel-num {
  color: #c59d5f;
  font-weight: 700;
  font-size: 35px;
  letter-spacing: 0.02em;
}

.team-member-name {
  color: #ffffff;
  font-size: 60px;
  line-height: 1.2;
}

.team-member-role {
  color: rgba(255, 255, 255, 0.6);
  font-size: 28px;
  font-weight: 500;
}

.team-member-bio {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.6;
}

/* Bottom CTA section */
.team-cta-section {
  background-color: #faf7f2;
  border-top: 1px solid rgba(5, 27, 53, 0.08);
}

.cta-title {
  color: #051b35;
  font-size: 60px;
  letter-spacing: 0.01em;
}

.text-accent-red {
  color: #bf2c24;
  /* Crimson/terracotta red */
}

.btn-team-cta {
  background-color: #051b35;
  color: #ffffff;
  border-radius: 50px;
  padding: 12px 36px;
  font-weight: 700;
  font-size: 25px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-team-cta:hover {
  background-color: #c59d5f;
  color: #051b35;
  transform: translateY(-2px);
}

/* ===================================
   993px - 1199px (Small Desktop / Large Laptop)
   =================================== */
@media (min-width: 993px) and (max-width: 1199px) {
  .cta-title {
    font-size: 38px;
  }

  .btn-team-cta {
    font-size: 18px;
    padding: 11px 28px;
  }
}

/* ===================================
   768px - 992px (Tablet)
   =================================== */
@media (min-width: 768px) and (max-width: 992px) {
  .team-cta-section {
    padding: 2.5rem 0 !important;
  }

  .cta-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .col-md-4.text-md-end {
    text-align: left !important;
  }

  .btn-team-cta {
    font-size: 16px;
    padding: 10px 24px;
  }
}

/* ===================================
   576px - 767px (Large Mobile)
   =================================== */
@media (min-width: 576px) and (max-width: 767px) {
  .team-cta-section {
    padding: 2rem 0 !important;
  }

  .row.align-items-center.justify-content-between.g-4 {
    row-gap: 16px !important;
  }

  .cta-title {
    font-size: 22px;
    line-height: 1.3;
  }

  .col-md-4.text-md-end {
    text-align: left !important;
  }

  .btn-team-cta {
    font-size: 14.5px;
    padding: 10px 22px;
    width: 100%;
  }
}

/* ===================================
   Max 575px (Small Mobile)
   =================================== */
@media (max-width: 575px) {
  .team-cta-section {
    padding: 1.75rem 0 !important;
  }

  .row.align-items-center.justify-content-between.g-4 {
    row-gap: 14px !important;
  }

  .cta-title {
    text-align: center;
    font-size: 18px;
    line-height: 1.35;
  }

  .col-md-4.text-md-end {
    text-align: left !important;
  }

  .btn-team-cta {
    font-size: 13px;
    padding: 9px 18px;
    width: 100%;
  }
}

/* View Full Details Button */
.btn-view-details {
  background-color: transparent;
  color: #c59d5f;
  border: 2px solid #c59d5f;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.btn-view-details:hover {
  background-color: #c59d5f;
  color: #051b35;
  cursor: pointer;
}

/* Custom Bio Modal styles */
.bio-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 27, 53, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.bio-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.bio-modal-card {
  background: #ffffff;
  border: 4px solid #c59d5f;
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(30px);
  transition: transform 0.4s ease;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.bio-modal-overlay.active .bio-modal-card {
  transform: translateY(0);
}

.bio-modal-body {
  overflow-y: auto;
  margin: 15px 0;
  padding-right: 10px;
  flex-grow: 1;
}

/* Custom premium scrollbar for the bio modal body */
.bio-modal-body::-webkit-scrollbar {
  width: 6px;
}

.bio-modal-body::-webkit-scrollbar-track {
  background: rgba(5, 27, 53, 0.05);
  border-radius: 10px;
}

.bio-modal-body::-webkit-scrollbar-thumb {
  background: #c59d5f;
  border-radius: 10px;
}

.bio-modal-body::-webkit-scrollbar-thumb:hover {
  background: #051b35;
}

.bio-modal-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 35px;
  color: #051b35;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
  z-index: 10;
}

.bio-modal-close-btn:hover {
  color: #c59d5f;
}

.modal-member-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #c59d5f;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.modal-member-name {
  color: #051b35;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 800;
}

.modal-member-role {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.modal-member-bio {
  font-size: 18px;
  line-height: 1.6;
  color: #4a5568;
  font-weight: 500;
  margin-top: 0;
}

.btn-modal-contact {
  background-color: #051b35;
  color: #ffffff;
  border: 2px solid #051b35;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-modal-contact:hover {
  background-color: transparent;
  color: #051b35;
  border-color: #051b35;
}

/* ===================================
   993px - 1199px (Small Desktop / Large Laptop)
   =================================== */
@media (min-width: 993px) and (max-width: 1199px) {
  .team-card-row {
    padding: 28px;
    border-radius: 20px;
    border-width: 3px;
  }

  .team-counsel-num {
    font-size: 26px;
  }

  .team-member-name {
    font-size: 40px;
  }

  .team-member-role {
    font-size: 20px;
    margin-bottom: 16px !important;
  }

  .team-member-bio {
    font-size: 17px;
  }

  .btn-view-details {
    font-size: 15px;
    padding: 9px 20px;
  }

  /* Modal */
  .bio-modal-card {
    padding: 32px;
  }

  .modal-member-img {
    width: 110px;
    height: 110px;
  }

  .modal-member-name {
    font-size: 32px;
  }

  .modal-member-role {
    font-size: 17px;
  }

  .modal-member-bio {
    font-size: 16px;
  }
}

/* ===================================
   768px - 992px (Tablet)
   =================================== */
@media (min-width: 768px) and (max-width: 992px) {
  .pg-team-members-section {
    padding: 3rem 0 !important;
  }

  .team-card-row {
    padding: 22px;
    border-radius: 18px;
    border-width: 2.5px;
    margin-bottom: 24px !important;
  }

  .team-photo-img {
    border-radius: 12px;
    min-height: 140px;
  }

  .team-counsel-num {
    font-size: 20px;
    margin-bottom: 6px !important;
  }

  .team-member-name {
    font-size: 26px;
    margin-bottom: 4px !important;
  }

  .team-member-role {
    font-size: 15px;
    margin-bottom: 12px !important;
  }

  .team-member-bio {
    font-size: 14.5px;
    line-height: 1.55;
  }

  .btn-view-details {
    font-size: 13px;
    padding: 8px 18px;
    margin-top: 14px !important;
  }

  /* Modal */
  .bio-modal-card {
    padding: 26px;
    width: 92%;
    max-height: 82vh;
  }

  .modal-member-img {
    width: 90px;
    height: 90px;
    border-width: 2.5px;
  }

  .modal-member-name {
    font-size: 24px;
  }

  .modal-member-role {
    font-size: 15px;
  }

  .modal-member-bio {
    font-size: 14.5px;
    line-height: 1.55;
  }

  .btn-modal-contact {
    font-size: 14px;
    padding: 10px 24px;
  }

  .bio-modal-close-btn {
    font-size: 28px;
    top: 10px;
    right: 14px;
  }
}

/* ===================================
   576px - 767px (Large Mobile)
   =================================== */
@media (min-width: 576px) and (max-width: 767px) {
  .pg-team-members-section {
    padding: 2.5rem 0 !important;
  }

  .team-card-row {
    padding: 18px;
    border-radius: 16px;
    border-width: 2px;
    margin-bottom: 20px !important;
  }

  .row.g-4,
  .row.align-items-center.g-4 {
    row-gap: 16px !important;
  }

  .team-photo-img {
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    min-height: unset;
    margin: 0;
    display: block;
  }

  .col-md-4.col-lg-3 {
    text-align: left;
  }

  .team-counsel-num {
    font-size: 17px;
    margin-bottom: 4px !important;
  }

  .team-member-name {
    font-size: 21px;
    margin-bottom: 4px !important;
  }

  .team-member-role {
    font-size: 13.5px;
    margin-bottom: 10px !important;
  }

  .team-member-bio {
    font-size: 13px;
    line-height: 1.5;
  }

  .btn-view-details {
    font-size: 12px;
    padding: 7px 16px;
    margin-top: 12px !important;
  }

  /* Modal */
  .bio-modal-card {
    padding: 20px;
    width: 92%;
    max-height: 80vh;
    border-width: 3px;
  }

  .modal-member-img {
    width: 80px;
    height: 80px;
    border-width: 2px;
    margin-bottom: 10px !important;
  }

  .modal-member-name {
    font-size: 20px;
  }

  .modal-member-role {
    font-size: 13.5px;
  }

  .modal-member-bio {
    font-size: 13px;
    line-height: 1.5;
  }

  .btn-modal-contact {
    font-size: 13px;
    padding: 9px 22px;
    width: 100%;
    text-align: center;
  }

  .bio-modal-close-btn {
    font-size: 24px;
    top: 8px;
    right: 12px;
  }
}

/* ===================================
   Max 575px (Small Mobile)
   =================================== */
@media (max-width: 575px) {
  .pg-team-members-section {
    padding: 2rem 0 !important;
  }

  .team-card-row {
    padding: 14px;
    border-radius: 14px;
    border-width: 2px;
    margin-bottom: 16px !important;
  }

  .row.g-4,
  .row.align-items-center.g-4 {
    row-gap: 14px !important;
  }

  .team-photo-img {
    border-radius: 10px;
    width: 100%;
    
    min-height: unset;
    margin: 0;
    display: block;
  }

  .col-md-4.col-lg-3 {
    text-align: left;
  }

  .team-counsel-num {
    font-size: 14.5px;
    margin-bottom: 3px !important;
  }

  .team-member-name {
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 3px !important;
  }

  .team-member-role {
    font-size: 12px;
    margin-bottom: 8px !important;
  }

  .team-member-bio {
    font-size: 12px;
    line-height: 1.48;
  }

  .btn-view-details {
    font-size: 11px;
    padding: 7px 14px;
    margin-top: 10px !important;
    width: 100%;
  }

  /* Modal */
  .bio-modal-card {
    padding: 16px;
    width: 94%;
    max-height: 80vh;
    border-width: 2.5px;
    border-radius: 18px;
  }

  .modal-member-img {
    width: 70px;
    height: 70px;
    border-width: 2px;
    margin-bottom: 8px !important;
  }

  .modal-member-name {
    font-size: 17px;
  }

  .modal-member-role {
    font-size: 12px;
  }

  .modal-member-bio {
    font-size: 12px;
    line-height: 1.5;
  }

  .btn-modal-contact {
    font-size: 12px;
    padding: 9px 18px;
    width: 100%;
    text-align: center;
  }

  .bio-modal-close-btn {
    font-size: 22px;
    top: 6px;
    right: 10px;
  }
}