/* ================= Secretary Card ================= */

.secretary-card {
  align-self: flex-start;
  text-align: center;
  padding: 20px;
}

.secretary-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.secretary-photo {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  border-radius: 12px;
}

.secretary-card h4 {
  margin-bottom: 6px;
}

.secretary-degree {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-soft);
}

.secretary-designation {
  margin: 0;
  font-weight: 700;
  color: var(--brand-amber-deep);
}
.message-signature {
  margin-top: 40px;
  text-align: right;
}

.signature-img {
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-bottom: 12px;
}
/*====================================== AFFILIATED CENTERS ======================================*/

.ehb-affiliated {
  padding: 50px 0;
}

/* Search */

.ehb-affiliated-search {
  max-width: 550px;
  margin: 40px auto;
}

.ehb-affiliated-search input {
  width: 100%;
  height: 55px;
  padding: 0 20px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  outline: none;
  background: #fff;
  font-size: 15px;
  transition: 0.3s;
}

.ehb-affiliated-search input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(20, 131, 73, 0.08);
}

/*============================ GRID ============================*/

.ehb-affiliated-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/*============================ CARD ============================*/

.ehb-affiliated-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e9e9e9;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.ehb-affiliated-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Header */

.ehb-affiliated-card-top {
  background: #1c5b41;
  padding: 16px 18px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ehb-affiliated-card-top h3 {
  margin: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;

  display: -webkit-box;
  line-clamp: 2;
  box-orient: vertical;
  overflow: hidden;
}

/* Body */

.ehb-affiliated-card-body {
  padding: 16px 18px;
}

.ehb-affiliated-item {
  /* display: flex; */
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid #efefef;
}

.ehb-affiliated-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ehb-affiliated-item span {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

.ehb-affiliated-item strong {
  font-size: 15px;
  color: #222;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

/* Button */

.ehbViewCenter {
  width: 100%;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}

/*============================ MODAL ============================*/

.ehb-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.ehb-modal.active {
  display: block;
}

.ehb-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
}

.ehb-modal-dialog {
  position: relative;
  width: 90%;
  max-width: 600px;
  margin: 50px auto;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  animation: ehbPopup 0.35s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

@keyframes ehbPopup {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Close Button */

.ehb-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 26px;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10;
}

.ehb-modal-close:hover {
  background: var(--c-primary);
  color: #fff;
}

/* Header */

.ehb-modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  background: #1c5b41;
}

.ehb-modal-profile {
  flex-shrink: 0;
}

.ehb-modal-profile img {
  width: 95px;
  height: 95px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.ehb-modal-title {
  flex: 1;
}

.ehb-modal-title h3 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.3;
}

.ehb-modal-title p {
  margin-top: 8px;
  color: #dce7e1;
  font-size: 15px;
}

/* Body */

.ehb-modal-body {
  padding: 20px 26px;
}

.ehb-modal-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #ececec;
}

.ehb-modal-row:last-child {
  border-bottom: none;
}

.ehb-modal-row label {
  width: 180px;
  font-weight: 700;
  color: #333;
  flex-shrink: 0;
}

.ehb-modal-row p {
  margin: 0;
  color: #666;
  line-height: 1.7;
  flex: 1;
  word-break: break-word;
}

/* Responsive */

@media (max-width: 768px) {
  .ehb-modal-dialog {
    width: 95%;
    margin: 20px auto;
  }

  .ehb-modal-header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .ehb-modal-profile img {
    width: 85px;
    height: 85px;
  }

  .ehb-modal-title h3 {
    font-size: 24px;
  }

  .ehb-modal-body {
    padding: 18px;
  }

  .ehb-modal-row {
    flex-direction: column;
    gap: 5px;
  }

  .ehb-modal-row label {
    width: 100%;
  }
}

/*============================ RESPONSIVE ============================*/

@media (max-width: 992px) {
  .ehb-affiliated-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ehb-affiliated {
    padding: 50px 0;
  }

  .ehb-affiliated-grid {
    grid-template-columns: 1fr;

    gap: 22px;
  }

  .ehb-modal-dialog {
    margin: 25px auto;
  }

  .ehb-modal-body {
    padding: 25px;
  }

  .ehb-modal-header {
    padding: 22px;
  }

  .ehb-modal-header h3 {
    font-size: 22px;
  }

  .ehb-modal-row {
    flex-direction: column;

    gap: 6px;
  }

  .ehb-modal-row label {
    width: 100%;
  }
}
/* quick enquiry modal  */
body.qe-open {
  overflow: hidden;
}
.qe-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.qe-modal.active {
  display: flex;
}

.qe-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.qe-dialog {
  position: relative;
  background: #fff;
  width: 95%;
  max-width: 460px;
  border-radius: 20px;
  padding: 24px;
  z-index: 2;
  animation: popup 0.35s ease;
}

@keyframes popup {
  from {
    transform: translateY(25px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.qe-close {
  position: absolute;
  right: 15px;
  top: 12px;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
}

.qe-header h2 {
  margin: 0 0 8px;
}

.qe-header p {
  font-size: 13px;
  color: #666;
  margin-bottom: 18px;
}

.qe-group {
  margin-bottom: 12px;
}

.qe-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.qe-group input,
.qe-group select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.qe-btn {
  width: 100%;
  height: 46px;
  margin-top: 5px;
  padding: 14px;
  background: #0b7d41;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}
.qe-note {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}
/*============================ Gallery-lightbox ============================*/
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.gallery-lightbox.active {
  display: flex;
}

.gallery-lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
}

.gallery-prev {
  left: 30px;
}

.gallery-next {
  right: 30px;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: #fff;
  color: #000;
}
/*=========================================
    RECENT ACTIVITIES
=========================================*/

.ehb-activities {
  padding: 48px 0;
  background: #fff;
}

.ehb-activities-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.ehb-activities .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a3a63;
  margin-bottom: 10px;
}

.ehb-activities .eyebrow svg {
  color: #1a3a63;
}
.ehb-activities .eyebrow svg.flip {
  transform: scaleX(-1);
}

.ehb-activities-heading h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  color: #10233f;
  line-height: 1.3;
}

.ehb-activities-heading .divider {
  color: #c9d3e0;
  margin: 0 10px;
  font-weight: 400;
}

.ehb-activities-heading .sub {
  font-size: 14px;
  font-weight: 400;
  color: #5b6b82;
}

.ehb-activities-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Track: 5-col grid with connecting line ---- */

.ehb-activities-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

.ehb-activity {
  position: relative;
  background: #f7f9fc;
  border: 1px solid #eaeef4;
  border-radius: 14px;
  padding: 18px 16px 16px;
}

.ehb-activity-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(16, 35, 63, 0.12);
}

.ehb-activity-marker--navy {
  background: #1a3a63;
}
.ehb-activity-marker--teal {
  background: #17a2a0;
}
.ehb-activity-marker--gold {
  background: #c99a2e;
}
.ehb-activity-marker--purple {
  background: #7b4b9a;
}
.ehb-activity-marker--green {
  background: #4caf50;
}

/* connecting dot between cards, desktop only */
.ehb-activity-dot {
  display: none;
}

@media (min-width: 993px) {
  .ehb-activity-dot {
    display: block;
    position: absolute;
    top: 38px;
    right: -14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c9d3e0;
    z-index: 2;
  }

  .ehb-activities-track::before {
    content: "";
    position: absolute;
    top: 38px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: repeating-linear-gradient(
      90deg,
      #d7dee8 0 6px,
      transparent 6px 12px
    );
    z-index: 1;
  }
}

.ehb-activity-body .ehb-activity-date {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #8b98ab;
  margin-bottom: 6px;
}

.ehb-activity-body h3 {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: #10233f;
  line-height: 1.35;
}

.ehb-activity-body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b7787;
}

/* ---- Responsive ---- */

@media (max-width: 992px) {
  .ehb-activities-track {
    grid-template-columns: repeat(5, 240px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .ehb-activity {
    scroll-snap-align: start;
  }
}

@media (max-width: 576px) {
  .ehb-activities-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ehb-activities-heading h2 {
    display: block;
  }

  .ehb-activities-heading .divider {
    display: none;
  }

  .ehb-activities-heading .sub {
    display: block;
    margin-top: 4px;
  }

  .ehb-activities-track {
    grid-template-columns: 1fr;
    overflow-x: visible;
    position: relative;
    padding-left: 20px;
  }

  .ehb-activities-track::after {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 39px;
    width: 1px;
    background: repeating-linear-gradient(
      180deg,
      #d7dee8 0 6px,
      transparent 6px 12px
    );
  }

  .ehb-activity {
    margin-left: 40px;
  }

  .ehb-activity-marker {
    position: absolute;
    left: -40px;
    top: 0;
  }

  .ehb-activity-dot {
    display: none;
  }
}
