/* ==========================================================================
   Events Directory & Categorized Landing Sections (Exact Reference Design)
   Warm Ivory / Sand Theme + Emerald Green Highlights
   ========================================================================== */

.dir-page-wrap {
  background-color: #f0f7f7;
  color: #1e293b;
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* 1. Directory Hero Section */
.dir-hero {
  padding: 3.5rem 0 2.5rem 0;
  border-bottom: 1px solid #d1e7e5;
}

.dir-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem;
  align-items: center;
}

.dir-hero-title {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 800;
  color: #0d2b2a;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.dir-hero-desc {
  font-size: 0.95rem;
  color: #3d6462;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.dir-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0d9488;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.925rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.3);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.dir-hero-btn:hover {
  background: #0a7c72;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.4);
}

.dir-hero-illus {
  background: #ffffff;
  border: 1px solid #d1e7e5;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(26, 46, 40, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 2. Section Titles Common */
.dir-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.dir-section-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #0d2b2a;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.dir-section-subtitle {
  font-size: 0.95rem;
  color: #64748b;
}

/* 3. Industries & Categories Section */
.dir-tax-section {
  padding: 3rem 0;
  background: transparent !important;
  border-bottom: none !important;
}

.dir-tax-tabs-wrap {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.dir-tax-tab-btn {
  background: #e6f7f5;
  border: 1px solid #a8d4d1;
  color: #334155;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dir-tax-tab-btn.active, .dir-tax-tab-btn:hover {
  background: #0d9488;
  color: #ffffff;
  border-color: #0d9488;
}

.dir-tax-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.dir-tax-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border: 1px solid #d1e7e5;
  border-radius: var(--radius-sm);
  color: #1e293b;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.dir-tax-link:hover {
  border-color: #0d9488;
  background: #f4fbf6;
  color: #0d9488;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.08);
}

.dir-tax-link.active, .dir-tax-link.is-selected {
  border-color: #078B83;
  background: #e6f7f5;
  color: #078B83;
  box-shadow: 0 4px 14px rgba(7, 139, 131, 0.15);
  font-weight: 700;
}

.dir-tax-link.active .tax-arrow, .dir-tax-link.is-selected .tax-arrow {
  color: #078B83;
  transform: translateX(3px);
}

.dir-tax-link .tax-arrow {
  color: #0d9488;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.dir-tax-link:hover .tax-arrow {
  transform: translateX(3px);
}

/* 4. Compact Industry Taxonomy Section (Blended Naturally with Main Website BG, No Card Box) */
.dir-compact-tax-card {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 1.5rem 0 2rem 0;
  box-shadow: none !important;
  margin-top: 0;
}

.dir-compact-tax-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem auto;
}

.dir-compact-tax-title {
  font-family: var(--font-display, inherit);
  font-size: 2.15rem;
  font-weight: 800;
  color: #091a2b;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.dir-compact-tax-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.dir-compact-tax-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 0;
}

.dir-compact-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 1rem;
}

.dir-compact-col:not(:last-child) {
  border-right: 1px solid #e2e8f0;
}

.dir-compact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  color: #1e293b;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  transition: all 0.18s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.dir-compact-item:hover, .dir-compact-item:focus {
  background: #f0fdfa;
  color: #078B83;
  transform: translateX(4px);
}

.dir-compact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: #078B83;
  flex-shrink: 0;
  transition: transform 0.18s ease, color 0.18s ease;
}

.dir-compact-item:hover .dir-compact-icon {
  color: #0d9488;
  transform: scale(1.12);
}

.dir-compact-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* Force hide any old legacy bulky tabs or grids completely so they can NEVER display */
.dir-tax-tabs-wrap,
.dir-tax-grid,
#grid-tax-ind,
#grid-tax-cat,
.tab-btn-ind,
.tab-btn-cat {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 900px) {
  .dir-compact-tax-columns {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .dir-compact-col:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.25rem;
  }
  .dir-compact-col {
    padding: 0;
  }
}

/* Category Expos Popup Modal */
.cat-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.cat-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cat-modal-box {
  max-width: 860px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-modal-overlay.open .cat-modal-box {
  transform: translateY(0) scale(1);
}

.cat-modal-header {
  padding: 1.35rem 1.75rem;
  background: linear-gradient(135deg, #091a2b 0%, #103765 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cat-modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  max-height: calc(88vh - 150px);
  background: #f8fafc;
}

.cat-modal-footer {
  padding: 1.15rem 1.75rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cat-modal-expo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.cat-modal-expo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.cat-modal-expo-card:hover {
  border-color: #0d9488;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.12);
}

/* 5. Categorized Landing Pages Accordion / Showcase */
.dir-showcase-section {
  padding: 4.5rem 0;
  background: #e8f4f3;
  border-bottom: 1px solid #d1e7e5;
}

.category-block {
  margin-bottom: 3.5rem;
  background: #ffffff;
  border: 1px solid #d1e7e5;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(26, 46, 40, 0.04);
}

.category-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #0d9488;
  padding-bottom: 0.85rem;
  margin-bottom: 1.5rem;
}

.category-block-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0d2b2a;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
}

.category-block-badge {
  background: #e6f7f5;
  color: #0d9488;
  border: 1px solid #99e0d9;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.category-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.dir-empty-industry {
  grid-column: 1 / -1;
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
}

.dir-empty-industry a {
  color: #0d9488;
  font-weight: 700;
  text-decoration: none;
}

.dir-empty-industry a:hover {
  text-decoration: underline;
}

.expo-landing-card {
  background: #f0f7f7;
  border: 1px solid #d1e7e5;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

.expo-landing-card:hover {
  background: #ffffff;
  border-color: #0d9488;
  box-shadow: 0 10px 24px rgba(21, 128, 61, 0.12);
  transform: translateY(-4px);
}

.expo-card-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0d2b2a;
  margin-bottom: 0.35rem;
}

.expo-card-meta {
  font-size: 0.825rem;
  color: #64748b;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.expo-card-desc {
  font-size: 0.85rem;
  color: #3d6462;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.expo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #d1e7e5;
  padding-top: 0.75rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: #0d9488;
}

/* 5. Country Flag Grid Section */
.dir-country-section {
  padding: 4rem 0;
  border-bottom: 1px solid #d1e7e5;
}

.dir-country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.dir-country-card {
  background: #ffffff;
  border: 1px solid #d1e7e5;
  border-radius: var(--radius-md);
  padding: 1.65rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.dir-country-card:hover {
  border-color: #078B83;
  box-shadow: 0 10px 24px rgba(7, 139, 131, 0.15);
  transform: translateY(-3px);
}

.dir-country-flag-wrap {
  width: 50px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  flex-shrink: 0;
}

.dir-country-flag-img {
  width: 38px;
  height: 25px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: block;
}

.dir-country-globe-icon {
  width: 30px;
  height: 30px;
  color: #078B83;
  display: block;
}

.country-flag-icon {
  display: none !important;
}

.country-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f2742;
  line-height: 1.3;
  display: block;
  margin-top: 0;
}

.country-count {
  font-size: 0.85rem;
  color: #078B83;
  font-weight: 600;
  margin-top: 0.35rem;
  display: block;
}

/* 6. Two-Column Benefit Matrix */
.dir-matrix-section {
  padding: 4rem 0;
  border-bottom: 1px solid #d1e7e5;
}

.dir-matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.matrix-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.matrix-col-header {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0d2b2a;
  margin-bottom: 0.5rem;
}

.matrix-card {
  background: #ffffff;
  border: 1px solid #d1e7e5;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.matrix-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #e6f7f5;
  color: #0d9488;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
}

.matrix-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0d2b2a;
  margin-bottom: 0.25rem;
}

.matrix-card-desc {
  font-size: 0.85rem;
  color: #3d6462;
  line-height: 1.5;
}

/* 7. Key Data Metrics Table */
.dir-table-section {
  padding: 4rem 0;
  border-bottom: 1px solid #d1e7e5;
}

.dir-metrics-table-wrap {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #d1e7e5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26, 46, 40, 0.04);
}

.dir-metrics-table {
  width: 100%;
  border-collapse: collapse;
}

.dir-metrics-table th {
  background: #e6f7f5;
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0d2b2a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #d1e7e5;
}

.dir-metrics-table td {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: #334155;
  border-bottom: 1px solid #e6f7f5;
}

.dir-metrics-table tr:last-child td {
  border-bottom: none;
}

.dir-metrics-table tr:hover td {
  background: #f0f7f7;
}

/* 8. Bottom CTA Banner (Brand Aligned) */
.dir-bottom-cta-wrap {
  padding: 3.5rem 1.5rem 4rem;
}

.dir-bottom-cta {
  background: linear-gradient(135deg, #091a2b 0%, #103765 52%, #075e58 100%) !important;
  border: 1px solid rgba(45, 212, 191, 0.28) !important;
  border-radius: 24px !important;
  padding: 3.5rem 2rem !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 20px 50px -15px rgba(16, 55, 101, 0.45) !important;
}

.dir-bottom-cta::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(7, 139, 131, 0.4) 0%, rgba(7, 139, 131, 0) 70%);
  pointer-events: none;
  border-radius: 50%;
}

.dir-bottom-cta::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.2) 0%, rgba(45, 212, 191, 0) 70%);
  pointer-events: none;
  border-radius: 50%;
}

.dir-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.32);
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  color: #2dd4bf;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.dir-cta-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 8px #2dd4bf;
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.dir-cta-title {
  font-size: 2.15rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  line-height: 1.25;
  position: relative;
  z-index: 2;
}

.dir-cta-subtitle {
  font-size: 1.05rem;
  color: #ccfbf1 !important;
  margin-bottom: 2rem;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  position: relative;
  z-index: 2;
}

.dir-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.dir-cta-btn-primary {
  background: linear-gradient(135deg, #078B83 0%, #0d9488 100%);
  color: #ffffff !important;
  border: 1px solid rgba(45, 212, 191, 0.4);
  font-weight: 700;
  padding: 0.95rem 2.25rem;
  font-size: 1.02rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(7, 139, 131, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.dir-cta-btn-primary:hover {
  background: linear-gradient(135deg, #056e68 0%, #0a7b70 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(7, 139, 131, 0.55);
  color: #ffffff !important;
}

.dir-cta-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 600;
  padding: 0.95rem 1.85rem;
  font-size: 1.02rem;
  border-radius: 12px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.dir-cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.dir-cta-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.dir-cta-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #e2e8f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .dir-hero-grid { grid-template-columns: 1fr; }
  .dir-tax-grid { grid-template-columns: repeat(2, 1fr); }
  .category-events-grid { grid-template-columns: repeat(2, 1fr); }
  .dir-country-grid { grid-template-columns: repeat(2, 1fr); }
  .dir-matrix-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .dir-hero-title { font-size: 1.85rem; }
  .dir-tax-grid { grid-template-columns: 1fr; }
  .category-events-grid { grid-template-columns: 1fr; }
  .dir-country-grid { grid-template-columns: 1fr; }
  .dir-cta-title { font-size: 1.6rem; }
  .dir-bottom-cta { padding: 2.25rem 1.25rem; }
  .dir-cta-actions { flex-direction: column; width: 100%; }
  .dir-cta-btn-primary, .dir-cta-btn-secondary { width: 100%; }
}
