/**
 * Team Bio & Modal Drawer Styles
 * Inspired by modern executive profile layout.
 *
 * @package ar-rahman
 */

/* ── 1. "See Bio" Card Button ── */
.wamy-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.3s ease;
}

.wamy-member__bio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  background: #ffffff;
  border: 1.5px solid var(--arh-primary, #BAA35D);
  color: var(--arh-secondary, #122C24);
  font-family: "Hind Siliguri", "Barlow", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.wamy-member__bio-btn:hover {
  background: var(--arh-primary, #BAA35D);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(186, 163, 93, 0.35);
  border-color: var(--arh-primary, #BAA35D);
}

.wamy-member__bio-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.wamy-member__bio-btn:hover .wamy-member__bio-arrow {
  transform: translateX(3px);
}

/* ── 2. Bio Modal Backdrop & Container (Matching Image 3) ── */
.wamy-bio-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 24, 20, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wamy-bio-modal.is-active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.wamy-bio-modal__dialog {
  background: #F4F6F8;
  width: 100%;
  max-width: 1080px;
  max-height: 90vh;
  border-radius: 20px;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.wamy-bio-modal.is-active .wamy-bio-modal__dialog {
  transform: translateY(0) scale(1);
}

.wamy-bio-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wamy-bio-modal__close:hover {
  background: var(--arh-primary, #BAA35D);
  color: #ffffff;
  transform: rotate(90deg);
}

/* ── 3. Layout Grid (2 Columns like Image 3) ── */
.wamy-bio-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 28px;
  padding: 36px;
}

/* ── Left Sidebar Profile Card ── */
.wamy-bio-sidebar {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 22px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: fit-content;
}

.wamy-bio-sidebar__photo {
  width: 170px;
  height: 190px;
  border-radius: 14px;
  overflow: hidden;
  background: #EDEAE1;
  margin-bottom: 18px;
  border: 2px solid #EAE4D5;
}

.wamy-bio-sidebar__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.wamy-bio-sidebar__name {
  font-family: "Hind Siliguri", "Philosopher", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 4px;
  line-height: 1.3;
}

.wamy-bio-sidebar__role {
  font-family: "Hind Siliguri", "Barlow", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--arh-primary, #BAA35D);
  margin: 0 0 20px;
}

.wamy-bio-sidebar__actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.wamy-bio-btn-consult {
  background: #0F172A;
  color: #ffffff !important;
  font-family: "Hind Siliguri", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.wamy-bio-btn-consult:hover {
  background: var(--arh-primary, #BAA35D);
  text-decoration: none;
}

.wamy-bio-btn-wa {
  background: #25D366;
  color: #ffffff !important;
  font-family: "Hind Siliguri", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.wamy-bio-btn-wa:hover {
  background: #1EBE5B;
  text-decoration: none;
}

.wamy-bio-btn-email {
  background: #2563EB;
  color: #ffffff !important;
  font-family: "Hind Siliguri", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
  word-break: break-all;
}

.wamy-bio-btn-email:hover {
  background: #1D4ED8;
  text-decoration: none;
}

/* Competencies Section in Sidebar */
.wamy-bio-competencies {
  width: 100%;
  text-align: left;
  border-top: 1px solid #F1F5F9;
  padding-top: 20px;
}

.wamy-bio-competencies__title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748B;
  margin: 0 0 12px;
}

.wamy-bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.wamy-bio-tag {
  background: #F1F5F9;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}

/* ── Right Content Area ── */
.wamy-bio-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.wamy-bio-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 30px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.wamy-bio-section__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.wamy-bio-section__icon {
  font-size: 20px;
  color: #2563EB;
}

.wamy-bio-section__title {
  font-family: "Hind Siliguri", "Philosopher", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.wamy-bio-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: #475569;
  margin: 0;
}

/* ── Experience Timeline (Blue/Gold Nodes) ── */
.wamy-bio-timeline {
  position: relative;
  padding-left: 24px;
}

.wamy-bio-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #E2E8F0;
}

.wamy-bio-timeline__item {
  position: relative;
  margin-bottom: 24px;
}

.wamy-bio-timeline__item:last-child {
  margin-bottom: 0;
}

.wamy-bio-timeline__node {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2563EB;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #93C5FD;
}

.wamy-bio-timeline__item:nth-child(even) .wamy-bio-timeline__node {
  background: #64748B;
  box-shadow: 0 0 0 2px #CBD5E1;
}

.wamy-bio-timeline__role {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 3px;
}

.wamy-bio-timeline__meta {
  font-size: 13px;
  color: #2563EB;
  font-weight: 600;
  margin: 0 0 8px;
}

.wamy-bio-timeline__desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

/* ── Education Grid Cards ── */
.wamy-bio-edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.wamy-bio-edu-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
}

.wamy-bio-edu-icon {
  font-size: 24px;
  color: #64748B;
  flex-shrink: 0;
}

.wamy-bio-edu-degree {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 4px;
}

.wamy-bio-edu-inst {
  font-size: 13px;
  color: #64748B;
  margin: 0;
}

/* ── Responsive Mobile Rules ── */
@media (max-width: 860px) {
  .wamy-bio-modal {
    padding: 16px 12px;
  }
  .wamy-bio-modal__dialog {
    max-height: 94vh;
    border-radius: 16px;
    width: 100%;
  }
  .wamy-bio-layout {
    grid-template-columns: 1fr;
    padding: 20px 14px;
    gap: 18px;
  }
  .wamy-bio-sidebar {
    width: 100%;
    padding: 20px 16px;
    border-radius: 12px;
  }
  .wamy-bio-sidebar__photo {
    width: 130px;
    height: 150px;
    margin-bottom: 14px;
  }
  .wamy-bio-sidebar__name {
    font-size: 20px;
  }
  .wamy-bio-sidebar__role {
    font-size: 13.5px;
    margin-bottom: 16px;
  }
  .wamy-bio-sidebar__actions {
    margin-bottom: 18px;
  }
  .wamy-bio-section {
    padding: 20px 16px;
    border-radius: 12px;
  }
  .wamy-bio-section__title {
    font-size: 17px;
  }
  .wamy-bio-text {
    font-size: 14px;
    line-height: 1.65;
  }
  .wamy-bio-tags {
    gap: 6px;
  }
  .wamy-bio-tag {
    font-size: 11.5px;
    padding: 4px 8px;
  }
  .wamy-bio-modal__close {
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .wamy-bio-modal {
    padding: 8px;
  }
  .wamy-bio-modal__dialog {
    border-radius: 12px;
  }
  .wamy-bio-layout {
    padding: 16px 10px;
    gap: 14px;
  }
  .wamy-bio-sidebar {
    padding: 16px 12px;
  }
  .wamy-bio-section {
    padding: 16px 12px;
  }
  .wamy-bio-timeline {
    padding-left: 20px;
  }
  .wamy-bio-timeline__node {
    left: -20px;
    width: 14px;
    height: 14px;
  }
}
