/* Resources Page Styles */

/* Hero Section */
.resources-hero-section {
  position: relative;
  margin: 0 24px 24px 24px;
  border-radius: 24px;
  overflow: hidden;
  padding: 120px 0;
  background-image: linear-gradient(to right, rgba(11, 19, 40, 0.95) 0%, rgba(11, 19, 40, 0.8) 50%, rgba(11, 19, 40, 0.4) 100%),
    url('../Images/home_hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.resources-hero-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.resources-hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin: 0 0 24px 0;
  letter-spacing: -1px;
}

.resources-hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0;
  max-width: 600px;
}

/* Featured Corporate Assets Section */
.featured-assets-section {
  padding: 80px 0;
}

.featured-assets-layout {
  display: flex;
  gap: 64px;
}

.assets-sidebar {
  flex: 0 0 220px;
}

.assets-sidebar-menu {
  display: flex;
  flex-direction: column;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.sidebar-tab {
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
}

.sidebar-tab-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-tab-content svg {
  width: 20px;
  height: 20px;
  stroke: #4b5563;
}

.sidebar-tab.active .sidebar-tab-content svg {
  stroke: var(--primary-orange);
}

.sidebar-tab.active .sidebar-tab-content {
  color: var(--primary-orange);
  font-weight: 800;
}

.sidebar-tab.active {
  background-color: transparent;
}

.sidebar-tab:not(.active):hover {
  background-color: #f9fafb;
}

.sidebar-sub-menu {
  padding-left: 24px;
  margin-top: 4px;
  margin-bottom: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
}

.sidebar-sub-menu.open {
  display: flex;
}

.sidebar-sub-item {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.sidebar-sub-item:hover {
  background-color: #f9fafb;
  color: #111827;
}

.sidebar-sub-item.active {
  color: var(--primary-orange);
  font-weight: 700;
  background-color: transparent;
  position: relative;
}

.sidebar-sub-item.active::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background-color: var(--primary-orange);
  border-radius: 0 4px 4px 0;
}

.sidebar-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-chevron svg {
  width: 14px;
  height: 14px;
  stroke: #9ca3af;
  transition: transform 0.3s ease, stroke 0.3s ease;
}
.sidebar-tab.active .sidebar-chevron svg {
  transform: rotate(-90deg);
  stroke: var(--primary-orange);
}

.assets-content {
  flex: 1;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.assets-content.changing {
  opacity: 0.15;
  transform: translateY(6px);
}

.assets-content-header {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 24px;
}

.asset-card-large {
  display: flex;
  background-color: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  align-items: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.asset-card-large:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 104, 34, 0.45);
  box-shadow: 0 18px 40px rgba(242, 104, 34, 0.12), 0 6px 15px rgba(0, 0, 0, 0.03);
}

.asset-card-large-image {
  flex: 0 0 280px;
  margin-right: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}

.asset-card-large-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.asset-card-large:hover .asset-card-large-image img {
  transform: scale(1.05);
}

.asset-card-large-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.asset-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary-orange);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.asset-title {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.asset-card-large:hover .asset-title {
  color: var(--primary-orange);
}

.asset-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
}

.asset-btn-outline {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  color: var(--primary-orange);
  border: 1px solid var(--primary-orange);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  transition: all 0.25s ease;
}

.asset-btn-outline:hover {
  background-color: var(--primary-orange);
  color: white;
  box-shadow: 0 6px 16px rgba(242, 104, 34, 0.3);
}

.asset-card-small {
  display: flex;
  align-items: center;
  background-color: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px 24px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.asset-card-small:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 104, 34, 0.4);
  box-shadow: 0 12px 30px rgba(242, 104, 34, 0.1), 0 4px 10px rgba(0, 0, 0, 0.02);
}

.asset-card-small-image {
  flex: 0 0 60px;
  margin-right: 24px;
  overflow: hidden;
  border-radius: 6px;
}

.asset-card-small-image img {
  width: 100%;
  border-radius: 6px;
  transition: transform 0.4s ease;
}

.asset-card-small:hover .asset-card-small-image img {
  transform: scale(1.08);
}

.asset-card-small-content {
  flex: 1;
}

.asset-card-small-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.asset-card-small:hover .asset-card-small-title {
  color: var(--primary-orange);
}

.asset-card-small-desc {
  font-size: 13px;
  color: #6b7280;
}

.asset-arrow-btn-circle {
  color: var(--primary-orange);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #fecaca;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 24px;
}

.asset-card-small:hover .asset-arrow-btn-circle {
  background-color: var(--primary-orange);
  color: white;
  border-color: var(--primary-orange);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(242, 104, 34, 0.35);
}

.asset-arrow-btn-circle:hover {
  background-color: #d85719;
  border-color: #d85719;
  color: white;
}

/* Documentation Directory Section */
.docs-directory-section {
  padding: 80px 0;
  border-top: 2px dashed #e5e7eb;
}



.section-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 48px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.doc-card {
  background-color: #fafbfc;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), 
              box-shadow 0.35s ease, 
              border-color 0.35s ease, 
              background-color 0.35s ease;
  cursor: pointer;
}

.doc-card:hover {
  transform: translateY(-8px);
  background-color: #ffffff;
  border-color: var(--primary-orange);
  box-shadow: 0 20px 45px rgba(242, 104, 34, 0.14), 0 8px 20px rgba(0, 0, 0, 0.04);
}

.doc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.doc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: white;
  border: 1px solid #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-orange);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), 
              background-color 0.35s ease, 
              border-color 0.35s ease, 
              box-shadow 0.35s ease;
}

.doc-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary-orange);
  transition: stroke 0.3s ease;
}

.doc-card:hover .doc-icon {
  background-color: var(--primary-orange);
  border-color: var(--primary-orange);
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 8px 20px rgba(242, 104, 34, 0.3);
}

.doc-card:hover .doc-icon svg {
  stroke: #ffffff;
}

.doc-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-orange);
  background-color: white;
  border: 1px solid #fee2e2;
  padding: 6px 12px;
  border-radius: 99px;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.doc-card:hover .doc-count {
  background-color: #fff7ed;
  border-color: var(--primary-orange);
  transform: scale(1.06);
}

.doc-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.doc-card:hover .doc-title {
  color: var(--primary-orange);
}

.doc-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

.doc-card:hover .doc-desc {
  color: #374151;
}

.doc-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-orange);
  text-decoration: none;
  background-color: white;
  border: 1px solid #e5e7eb;
  padding: 8px 16px;
  border-radius: 99px;
  align-self: flex-start;
  transition: all 0.25s ease;
}

.doc-card:hover .doc-link {
  background-color: var(--primary-orange);
  border-color: var(--primary-orange);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(242, 104, 34, 0.3);
}

.doc-link:hover {
  background-color: #d85719;
  border-color: #d85719;
  color: #ffffff;
}

/* Intellectual Assets Section */
.intellectual-assets-section {
  padding: 80px 0;
  border-top: 2px dashed #e5e7eb;
}

.intellectual-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.scroll-hint {
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.assets-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 12px 4px 32px 4px;
  scrollbar-width: none; /* Firefox */
  cursor: grab;
  scroll-behavior: smooth;
}
.assets-carousel:active,
.assets-carousel.grabbing {
  cursor: grabbing;
  user-select: none;
}
.assets-carousel::-webkit-scrollbar {
  display: none; /* Chrome */
}

.asset-article-card {
  flex: 0 0 360px;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  cursor: pointer;
  position: relative;
}

.asset-article-card:hover {
  transform: translateY(-8px);
}

.asset-article-card.dark {
  background-color: #0b1328;
  color: white;
  border-color: rgba(255, 255, 255, 0.06);
}

.asset-article-card.dark:hover {
  border-color: rgba(242, 104, 34, 0.65);
  box-shadow: 0 24px 48px rgba(11, 19, 40, 0.65), 0 0 25px rgba(242, 104, 34, 0.22);
}

.asset-article-card.light {
  background-color: white;
  border: 1.5px solid #e5e7eb;
  color: #111827;
}

.asset-article-card.light:hover {
  border-color: var(--primary-orange);
  box-shadow: 0 24px 48px rgba(242, 104, 34, 0.14), 0 8px 20px rgba(0, 0, 0, 0.04);
}

.article-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}

.article-category {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-orange);
  transition: transform 0.3s ease;
}

.asset-article-card:hover .article-category {
  transform: scale(1.05);
}

.article-date {
  font-size: 11px;
  font-weight: 500;
  transition: color 0.3s ease;
}
.dark .article-date { color: #9ca3af; }
.light .article-date { color: #6b7280; }

.article-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 28px;
  flex-grow: 1;
  transition: color 0.3s ease;
}
.dark .article-title { color: #ffffff; }
.light .article-title { color: #111827; }

.asset-article-card:hover .article-title {
  color: var(--primary-orange) !important;
}

.article-footer {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(229, 231, 235, 0.1);
  transition: border-color 0.3s ease;
}
.dark .article-footer {
  color: #6b7280;
  border-top-color: rgba(255, 255, 255, 0.08);
}
.light .article-footer {
  color: #9ca3af;
  border-top-color: #f3f4f6;
}

.read-more-arrow {
  opacity: 0.4;
  transform: translateX(-4px);
  transition: all 0.3s ease;
  color: var(--primary-orange);
  font-size: 15px;
  font-weight: 700;
}

.asset-article-card:hover .read-more-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* CTA Section */
.resources-cta-section {
  background-color: #0b1328;
  margin: 0 24px 24px 24px;
  border-radius: 24px;
  padding: 100px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resources-cta-title {
  font-size: 40px;
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.resources-cta-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.resources-cta-btn {
  display: inline-block;
  background-color: var(--primary-orange);
  color: white;
  padding: 16px 32px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.resources-cta-btn:hover {
  background-color: #d14d17;
}

/* Responsive */
@media (max-width: 992px) {
  .featured-assets-layout {
    flex-direction: column;
    gap: 48px;
  }
  .assets-sidebar {
    flex: none;
    width: 100%;
  }
  .assets-sidebar-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .sidebar-sub-menu {
    display: none;
  }
  .docs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .asset-card-large {
    flex-direction: column;
    padding: 24px;
  }
  .asset-card-large-image {
    margin-right: 0;
    margin-bottom: 24px;
  }
  .resources-hero-title {
    font-size: 40px;
  }
  .intellectual-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ==========================================================================
   Documentation Directory Modal Styles
   ========================================================================== */
.dir-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dir-modal.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.dir-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 26, 45, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dir-modal-dialog {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(11, 26, 45, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8);
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dir-modal.active .dir-modal-dialog {
  transform: translateY(0) scale(1);
}

.dir-modal-header {
  padding: 24px 28px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.dir-modal-header-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.dir-modal-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dir-modal-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary-orange);
}

.dir-modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.dir-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.dir-modal-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-orange);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.dir-modal-desc {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.dir-modal-close {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.dir-modal-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
  transform: rotate(90deg);
}

.dir-modal-search-wrap {
  position: relative;
  padding: 12px 28px;
  background: #fafaf9;
  border-bottom: 1px solid #f1f5f9;
}

.dir-modal-search-icon {
  position: absolute;
  left: 42px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.dir-modal-search-input {
  width: 100%;
  height: 40px;
  padding: 8px 16px 8px 38px;
  font-size: 13.5px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dir-modal-search-input:focus {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(242, 104, 34, 0.12);
}

.dir-modal-body {
  padding: 18px 28px;
  overflow-y: auto;
  max-height: calc(88vh - 240px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dir-doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.dir-doc-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transform: translateX(4px);
}

.dir-doc-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.dir-doc-file-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.dir-doc-file-icon svg {
  width: 18px;
  height: 18px;
}

.dir-doc-info {
  flex: 1;
  min-width: 0;
}

.dir-doc-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 3px 0;
  line-height: 1.35;
}

.dir-doc-desc {
  font-size: 12.5px;
  color: #64748b;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.dir-doc-meta-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  font-family: monospace;
  color: #475569;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
}

.dir-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--primary-orange);
  color: var(--primary-orange);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dir-doc-btn:hover {
  background: var(--primary-orange);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(242, 104, 34, 0.28);
}

.dir-modal-empty {
  text-align: center;
  padding: 36px 20px;
  color: #94a3b8;
  font-size: 14px;
}

.dir-modal-footer {
  padding: 16px 28px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dir-modal-footer-text {
  font-size: 12.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dir-modal-footer-text svg {
  color: var(--primary-orange);
  flex-shrink: 0;
}

.dir-modal-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-orange);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.dir-modal-cta-btn:hover {
  color: #d85719;
  gap: 9px;
}

@media (max-width: 640px) {
  .dir-modal-dialog {
    max-height: 94vh;
  }
  .dir-modal-header,
  .dir-modal-search-wrap,
  .dir-modal-body,
  .dir-modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .dir-doc-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .dir-doc-btn {
    width: 100%;
    justify-content: center;
  }
}
