/* ==== Layout Base ==== */
#page .site-content .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

.employee-category-page {
    margin-top: 120px;
    width: 100%;
    background-color: #E8E8E8;
    padding: 60px 0;
}

.employee-category-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==== Category Header ==== */
.category-header {
    display: grid;
    grid-template-columns: 1fr 1.4fr; 
    align-items: start;
    gap: 35px; /* কলামের মধ্যে ফাঁকা জায়গা */
    margin-bottom: 60px;
}
.category-title {
    font-size: 48px;
    font-weight: 500;
    font-family: Helvetica, sans-serif;
    padding-bottom: 12px;
    margin: 0;
    line-height: 1.1;
}

.category-description {
    font-size: 15px;
    color: #444;
    text-align: justify;
    font-family: Helvetica, sans-serif;
    margin: 0;
    line-height: 1.7;
}

/* ✅ Responsive fix (mobile এ এক কলাম) */
@media (max-width: 768px) {
    .category-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-title {
        font-size: 42px;
        text-align: center;
    }

    .category-description {
        text-align: center;
        font-size: 16px;
    }
}

/* ==== Employee Cards ==== */
.employee-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  /* horizontally center all cards */
    align-items: center;      /* vertically align if needed */
    gap: 40px;
    font-family: Helvetica;
    /* padding: 60px; */
    text-align: center;       /* optional: text inside cards center-align */
}


.employee-card {
  background: #E8E8E8;
  border-radius: 2px;
  padding: 20px;
  text-align: center;
  width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #ccc;
}

.employee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ==== Picture + Icon ==== */
.employee-picture-wrapper {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: visible;
  transition: all 0.3s ease;
}

.employee-picture-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #007A09;
  overflow: hidden;
}

.employee-picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.4s ease;
}

.employee-picture-wrapper:hover .employee-picture {
  filter: grayscale(0%);
  transform: scale(1.08);
}

/* ==== Icon top-right ==== */
.employee-icon {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 19px;
  height: 18px;
  transition: transform 0.3s ease;
}

.employee-picture-wrapper:hover .employee-icon {
  transform: rotate(20deg) scale(1.2);
}

/* ==== Text ==== */
.employee-name {
  font-weight: 600;
  font-size: 18px;
  margin: 5px 0;
  font-family :Helvetica;
}

.employee-designation {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  font-family :Helvetica;
}

/* Button */
.read-bio-btn {
    padding: 8px 18px;
    background: #007A09;
    color: #fff;
    border: 1px solid #007A09;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.read-bio-btn:hover {
    background: #fff;
    color: #007A09;
}

/* ==== Modal Popup ==== */
#bio-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 60px 20px;
    z-index: 9999;
}

.bio-modal-content {
    background: #E8E8E8;
    border-radius: 12px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    font-family :Helvetica;
}

/* Close button with Font Awesome X icon */
#close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007A09;
    color: #fff;
    font-size: 22px; /* icon size */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Hover effect */
#close-modal:hover {
    background-color: #005a06;
    transform: scale(1.05);
}

/* Optional: if using <i class="fa fa-times"></i> inside */
#close-modal i {
    line-height: 1;   /* remove extra spacing */
    vertical-align: middle;
}


/* Top section */
.bio-top-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

/* ==== Bio picture wrapper ==== */
/* Bio picture image with green border */
.bio-picture-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: visible; /* icon দেখানোর জন্য */
    position: relative; /* icon absolute এর জন্য */
}

.bio-picture-wrapper img.employee-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #007A09; /* ✅ green border added */
    filter: grayscale(0%) !important; /* Always colorful in popup */
}

.bio-picture-wrapper .employee-icon-popup {
    position: absolute;
    top: -5px;   /* container থেকে উপরে বের হবে */
    right: -2px; /* container থেকে ডানদিকে */
    width: 15px;
    height: 15px;
    z-index: 10;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Hover effect like card */
.bio-picture-wrapper:hover .employee-icon-popup {
    transform: rotate(20deg) scale(1.2);
}

.bio-text-info h2 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    font-family: Helvetica, Arial, sans-serif;
    color: #1a1a1a;
}

.bio-text-info p {
    margin-top: 5px;
    font-size: 16px;
    color: #555;
    font-family: Helvetica, Arial, sans-serif;
}

.bio-text {
    font-size: 16px;
    color: #333;
    line-height: 1.7;
    text-align: justify;
}

/* Responsive */
@media (max-width: 768px) {
    .bio-top-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bio-text-info h2 {
        font-size: 22px;
    }
}