:root {
  --ieema-blue: #0365B1;
  --ieema-blue-dark: #024e8a;
  --ieema-navy: #0A253B;
  --ieema-orange: #F36C21;
  --ieema-sky: #E7F2FA;
  --ieema-mist: #F4F8FC;
  --ieema-line: #D5E4F0;
  --ieema-muted: #5B7183;
  --card-shadow: 0 8px 24px rgba(10, 37, 59, 0.08);
  --card-shadow-hover: 0 14px 32px rgba(3, 101, 177, 0.16);
}

body.directory-app {
  background:
    radial-gradient(1200px 420px at 8% -10%, rgba(3, 101, 177, 0.10), transparent 55%),
    radial-gradient(900px 380px at 100% 0%, rgba(243, 108, 33, 0.08), transparent 50%),
    var(--ieema-mist);
  color: var(--ieema-navy);
}

.directory-app h1,
.directory-app h2,
.directory-app h3,
.directory-app h4,
.directory-app h5,
.directory-app .dropBtn,
.directory-app .page-heading {
  font-family: "Rajdhani", "Poppins", sans-serif;
  letter-spacing: 0.01em;
}

/* Header */
.directory-app .logoNavSection {
  padding: 6px 0;
}

.directory-app .logoZone {
  line-height: 72px;
  display: flex;
  align-items: center;
}

.directory-app .logo {
  float: none;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.directory-app .logo img {
  max-height: 52px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none !important;
  color: inherit;
}

.brand-lockup-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-lockup-text strong {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ieema-navy);
  text-transform: uppercase;
}

.brand-lockup-text span {
  font-size: 0.78rem;
  color: var(--ieema-muted);
}

.header-nav-bar {
  background: linear-gradient(90deg, #024e8a 0%, #0365B1 55%, #0480d6 100%);
  box-shadow: 0 8px 20px rgba(2, 78, 138, 0.25);
}

.directory-app .navZone {
  background: transparent;
}

.header-search-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0 6px 0 14px;
  margin: 4px 0 4px 18px;
}

.header-search-form .search-01 {
  min-width: 240px;
  margin: 0;
}

.header-search-form .searchIcon {
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  background-position: center;
}

.directory-app .dropDown {
  border-top: 3px solid var(--ieema-orange);
  border-radius: 0 0 12px 12px;
}

.directory-app .DdStage_01 li a {
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
}

.directory-app .DdStage_01 li:hover {
  background: var(--ieema-sky);
  border-color: transparent;
}

/* Directory list */
.directory-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.directory-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ieema-navy);
  margin: 0 0 4px;
}

.directory-hero p {
  margin: 0;
  color: var(--ieema-muted);
  font-size: 0.95rem;
}

.filter-panel {
  background: #fff;
  border: 1px solid var(--ieema-line);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  overflow: visible;
}

.filter-panel .card-body {
  padding: 18px 18px 8px;
}

.filter-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ieema-line);
  font-family: "Rajdhani", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ieema-navy);
  text-transform: uppercase;
}

.filter-panel-head i {
  color: var(--ieema-blue);
}

.filter-actions .btn {
  border-radius: 999px !important;
  padding: 8px 18px;
  font-weight: 600;
  min-width: 108px;
}

.filter-actions .btn-primary {
  background: var(--ieema-blue);
  border-color: var(--ieema-blue);
}

.filter-actions .btn-outline-primary {
  color: var(--ieema-blue);
  border-color: var(--ieema-blue);
}

.directory-app .my-multiselect .btn-default {
  background: #fff;
  border: 1px solid var(--ieema-line);
  border-radius: 10px !important;
  min-height: 42px;
  box-shadow: none;
}

.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
}

.results-count {
  font-size: 0.95rem;
  color: var(--ieema-muted);
}

.results-count strong {
  color: var(--ieema-navy);
  font-size: 1.05rem;
}

.page-size-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ieema-muted);
  font-size: 0.85rem;
}

.page-size-wrap select {
  width: auto;
  min-width: 88px;
  border-radius: 8px;
  border-color: var(--ieema-line);
}

.sorting_filter span {
  background: var(--ieema-sky);
  border: 0;
  color: var(--ieema-blue-dark);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
}

.product-b.row {
  --bs-gutter-x: 0.9rem;
  --bs-gutter-y: 0.9rem;
  margin-left: -0.45rem;
  margin-right: -0.45rem;
}

#filterData > [class*="col-"] {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  margin-bottom: 0.9rem;
}

.ad-sidebar {
  position: sticky;
  top: 16px;
}

.ad-slot {
  background: #0A253B;
  border: 0;
  border-radius: 12px;
  min-height: 0;
  height: 480px;
  margin-bottom: 16px;
  overflow: hidden;
  display: block;
  position: relative;
}

.ad-slot::after {
  display: none;
}

.ad-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left top;
}

.filter-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ieema-muted);
  margin-bottom: 6px;
}

/* Member cards */
a.member-card,
.member-card {
  background: #fff;
  border: 1px solid var(--ieema-line);
  border-left: 4px solid var(--ieema-blue);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  min-height: 0;
  height: 100%;
  padding: 12px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.member-card:hover,
.member-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(3, 101, 177, 0.35);
  border-left-color: var(--ieema-orange);
}

.member-card-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  flex: 1;
}

.member-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--ieema-sky), #fff);
  border: 1px solid var(--ieema-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
  flex-shrink: 0;
}

.member-initials {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ieema-blue);
}

.member-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 6px;
}

.member-card-copy {
  min-width: 0;
}

.member-card h5 {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: none;
  color: var(--ieema-navy);
  line-height: 1.3;
  margin: 0 0 4px;
  flex: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.member-loc {
  margin: 0 0 6px;
  color: var(--ieema-muted);
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-loc .fa {
  color: var(--ieema-orange);
  margin-right: 4px;
}

.member-region {
  display: inline-block;
  background: var(--ieema-sky);
  color: var(--ieema-blue-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 9px;
}

.member-card .btn-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  background: var(--ieema-blue);
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
}

a.member-card:hover .btn-view {
  background: var(--ieema-blue-dark);
}

.directory-app .view-details-items {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
  min-height: 0;
  margin: 0;
}

.directory-pagination .pagination {
  justify-content: flex-start;
}

.directory-pagination .page-item .page-link,
.directory-app .pagination .page-link {
  border-radius: 8px;
  margin: 0 3px;
  border-color: var(--ieema-line);
  color: var(--ieema-blue);
}

.directory-app .pagination .page-item.active .page-link {
  background: var(--ieema-blue);
  border-color: var(--ieema-blue);
}

.entries-meta {
  color: var(--ieema-muted);
  font-size: 0.85rem;
  list-style: none;
}

/* Profile / detail */
.member-hero {
  background: #eef3f8;
  color: var(--ieema-navy);
  padding: 0 0 28px;
  margin-bottom: 8px;
}

.hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 420;
  height: auto;
  overflow: hidden;
  background: #0A253B;
}

.hero-banner .carousel,
.hero-banner .carousel-inner,
.hero-banner .carousel-item {
  height: 100%;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.featured-member-wrap {
  position: relative;
  z-index: 3;
  margin-top: -88px;
}

.featured-member-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(10, 37, 59, 0.14);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.featured-member-copy {
  min-width: 0;
  flex: 1;
}

.featured-badge {
  display: inline-block;
  color: var(--ieema-orange);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.featured-member-copy h2 {
  font-size: 1.35rem;
  color: var(--ieema-navy);
  margin: 0 0 6px;
}

.featured-blurb {
  margin: 6px 0 0;
  color: var(--ieema-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.featured-member-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.hero-btn-outline {
  background: #fff !important;
  color: var(--ieema-blue) !important;
  border: 1px solid var(--ieema-blue);
}

.hero-btn-outline:hover {
  background: var(--ieema-sky) !important;
  color: var(--ieema-blue) !important;
}

.featured-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(10, 37, 59, 0.16);
  color: var(--ieema-navy);
  z-index: 5;
  cursor: pointer;
}

.featured-nav-prev { left: 16px; }
.featured-nav-next { right: 16px; }

.back-to-members {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #0365B1 !important;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(10, 37, 59, 0.16);
}

.back-to-members:hover {
  background: var(--ieema-blue);
  color: #fff !important;
}

.directory-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 4;
  margin: 0;
}

.member-hero .directory-hero-dots {
  display: none;
}

.directory-hero-dots button {
  background: rgba(255, 255, 255, 0.55);
}

.directory-hero-dots button.active {
  background: var(--ieema-orange);
}

.featured-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.featured-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c5d3e0;
  cursor: pointer;
}

.featured-dots button.active {
  background: var(--ieema-blue);
}

.member-hero-logo {
  width: 72px;
  height: 72px;
  background: #fff;
  border: 1px solid var(--ieema-line);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.member-hero-logo img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.hero-meta {
  margin: 0;
  color: var(--ieema-muted);
  font-size: 0.9rem;
}

.hero-meta .fa {
  margin-right: 6px;
  color: var(--ieema-orange);
}

.hero-chip {
  display: inline-block;
  margin-left: 8px;
  background: var(--ieema-sky);
  border: 1px solid #d7e6f2;
  color: var(--ieema-blue-dark);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--ieema-blue);
  color: #fff !important;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  min-width: 108px;
}

.hero-btn:hover {
  background: var(--ieema-orange);
  color: #fff !important;
}

.hero-btn.hero-btn-outline {
  background: #fff !important;
  color: #0365B1 !important;
  border: 1px solid #0365B1;
  box-sizing: border-box;
  min-height: 38px;
  line-height: 1.2;
}

.hero-btn.hero-btn-outline:hover {
  background: var(--ieema-sky) !important;
  color: #024e8a !important;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 36px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--ieema-line);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 20px 22px 10px;
}

.info-card-wide {
  grid-column: 1 / -1;
}

.info-card h2 {
  font-size: 1.05rem;
  color: var(--ieema-navy);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ieema-line);
}

.info-card h2 .fa {
  color: var(--ieema-blue);
  margin-right: 8px;
  width: 18px;
  text-align: center;
}

.info-list {
  margin: 0;
}

.info-list > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f4f8;
}

.info-list > div:last-child {
  border-bottom: 0;
}

.info-list dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ieema-muted);
  margin: 0;
  padding-top: 3px;
}

.info-list dd {
  margin: 0;
  color: var(--ieema-navy);
  font-size: 0.97rem;
  word-break: break-word;
}

.info-list a {
  color: var(--ieema-blue);
  font-weight: 600;
}

.info-plain {
  color: var(--ieema-navy);
  margin: 0 0 12px;
  line-height: 1.55;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
}

.data-chip {
  display: inline-block;
  background: #f3f8fc;
  border: 1px solid #d7e6f2;
  color: var(--ieema-navy);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.8rem;
  line-height: 1.3;
}

.ieema-site-footer {
  background: #081a2c;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 48px;
  position: relative;
}

.ieema-footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ieema-footer-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
}

.ieema-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.ieema-footer-links a {
  color: #fff !important;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}

.ieema-footer-links a:hover {
  color: var(--ieema-orange) !important;
}

.ieema-footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.88rem;
}

.ieema-footer-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #081a2c !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.85rem;
}

.ieema-footer-social a:hover {
  background: var(--ieema-orange);
  color: #fff !important;
}

.ieema-footer-main {
  padding: 32px 0 18px;
}

.ieema-footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.ieema-footer-logo img {
  max-height: 52px;
  width: auto;
  mix-blend-mode: lighten;
}

.ieema-site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin: 8px 0 14px;
}

.ieema-footer-address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.ieema-footer-address p {
  margin: 10px 0 0;
}

.ieema-footer-address a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
}

.ieema-footer-address a:hover {
  color: var(--ieema-orange) !important;
}

.ieema-footer-address .fa {
  margin-right: 8px;
  color: var(--ieema-orange);
}

.ieema-footer-note {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}

.ieema-subscribe-btn {
  display: inline-block;
  background: var(--ieema-orange);
  color: #fff !important;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
}

.ieema-subscribe-btn:hover {
  background: #d85c14;
  color: #fff !important;
}

.ieema-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0 20px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.84rem;
}

.ieema-footer-bottom p {
  margin: 0 0 4px;
}

.ieema-footer-bottom a {
  color: #fff !important;
  text-decoration: none;
}

.ieema-back-top {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 36px;
  height: 36px;
  background: var(--ieema-orange);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.ieema-back-top:hover {
  background: #d85c14;
  color: #fff !important;
}

@media (max-width: 991px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .info-card-wide {
    grid-column: auto;
  }
  .featured-member-card {
    flex-wrap: wrap;
  }
  .featured-member-actions {
    flex-direction: row;
    width: 100%;
  }
  .featured-nav {
    display: none;
  }
  .ad-slot {
    height: 420px;
  }
}

.directory-app {
  scroll-behavior: smooth;
}

@media (max-width: 767px) {
  .directory-hero {
    display: block;
  }
  .header-search-form {
    margin-left: 0;
  }
  .header-search-form .search-01 {
    min-width: 140px;
  }
  .brand-lockup-text {
    display: none;
  }
  .info-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .member-hero h1 {
    font-size: 1.45rem;
  }
  .back-to-members {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  .ieema-footer-nav-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
