/* ===================================================
   GOVERNMENT PORTAL DIRECTORY STYLES (portals-page.css)
   Naresh Online Center Bilaigarh
   =================================================== */

:root {
  --pt-primary: #1E3A8A;
  --pt-primary-dark: #0F172A;
  --pt-accent: #2563EB;
  --pt-cg-green: #059669;
  --pt-cg-bg: #ECFDF5;
  --pt-cg-border: #A7F3D0;
  --pt-kendra-orange: #EA580C;
  --pt-kendra-bg: #FFF7ED;
  --pt-kendra-border: #FED7AA;
  --pt-surface: #FFFFFF;
  --pt-bg: #F8FAFC;
  --pt-border: #E2E8F0;
  --pt-text: #0F172A;
  --pt-muted: #64748B;
  --pt-radius-lg: 20px;
  --pt-radius-md: 12px;
  --pt-shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --pt-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --pt-shadow-lg: 0 20px 35px -10px rgba(30, 58, 138, 0.18);
}

/* ── Hero Section ── */
.pt-hero-section {
  position: relative;
  background: linear-gradient(135deg, #091E3A 0%, #102A6B 45%, #1D4ED8 100%);
  color: #FFFFFF;
  padding: 48px 20px 64px;
  text-align: center;
  overflow: hidden;
}

.pt-hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 180%;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.2) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.pt-hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
}

.pt-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.pt-hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: ptPulse 2s infinite;
}

@keyframes ptPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pt-hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.pt-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(241, 245, 249, 0.9);
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Hero Search Bar */
.pt-search-wrap {
  max-width: 680px;
  margin: 0 auto 24px;
  position: relative;
}

.pt-search-box {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 9999px;
  padding: 6px 8px 6px 20px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.pt-search-box:focus-within {
  border-color: #60A5FA;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.35);
}

.pt-search-icon {
  color: #64748B;
  font-size: 1.15rem;
  margin-right: 12px;
}

.pt-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  color: #0F172A;
  background: transparent;
}

.pt-search-input::placeholder {
  color: #94A3B8;
  font-size: 0.95rem;
}

.pt-search-clear {
  background: #E2E8F0;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #475569;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-right: 6px;
  transition: all 0.2s;
}

.pt-search-clear:hover {
  background: #CBD5E1;
  color: #0F172A;
}

.pt-search-btn {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
  border: none;
  padding: 10px 22px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.pt-search-btn:hover {
  background: linear-gradient(135deg, #1D4ED8, #1E40AF);
  transform: scale(1.02);
}

/* Hero Quick Stats */
.pt-hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pt-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pt-stat-item strong {
  color: #FACC15;
  font-weight: 800;
}

/* ── Department Hub Banner ── */
.pt-dept-hub-banner {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 1.5px solid #86EFAC;
  border-radius: 16px;
  padding: 16px 22px;
  margin: -24px auto 28px;
  max-width: 1160px;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 10px 24px rgba(22, 101, 52, 0.08);
}

.pt-dhb-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pt-dhb-icon {
  width: 44px;
  height: 44px;
  background: #16A34A;
  color: #FFFFFF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pt-dhb-text h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #14532D;
  margin: 0 0 2px;
}

.pt-dhb-text p {
  font-size: 0.85rem;
  color: #166534;
  margin: 0;
}

.pt-dhb-btn {
  background: #15803D;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.pt-dhb-btn:hover {
  background: #166534;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
}

/* ── Main Container ── */
.pt-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 100px;
}

/* Category Filter Tabs */
.pt-filter-section {
  margin-bottom: 24px;
}

.pt-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.pt-filter-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.pt-filter-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  background: #E2E8F0;
  padding: 4px 12px;
  border-radius: 20px;
}

.pt-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  flex-wrap: wrap;
}

.pt-filter-btn {
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: inherit;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pt-filter-btn:hover {
  border-color: #2563EB;
  color: #2563EB;
  background: #EFF6FF;
}

.pt-filter-btn.active {
  background: #1E3A8A;
  color: #FFFFFF;
  border-color: #1E3A8A;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25);
}

.pt-filter-btn .tab-badge {
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
}

.pt-filter-btn.active .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* ── Portals Grid ── */
.pt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

/* ── Portal Card ── */
.pt-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1.5px solid #E2E8F0;
  box-shadow: var(--pt-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  position: relative;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.pt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #2563EB;
}

.pt-card[data-gov="cg"]::before {
  background: linear-gradient(90deg, #059669, #10B981);
}

.pt-card[data-gov="kendra"]::before {
  background: linear-gradient(90deg, #EA580C, #F97316);
}

.pt-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--pt-shadow-lg);
  border-color: #93C5FD;
}

.pt-card[data-gov="cg"]:hover {
  border-color: #6EE7B7;
}

.pt-card[data-gov="kendra"]:hover {
  border-color: #FDBA74;
}

/* Card Header Top */
.pt-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pt-card-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pt-portal-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.pt-card-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pt-gov-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}

.tag-cg {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.tag-kendra {
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FED7AA;
}

.pt-dept-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
}

.pt-card-actions-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pt-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.pt-fav-btn {
  background: transparent;
  border: none;
  font-size: 1.05rem;
  color: #CBD5E1;
  cursor: pointer;
  padding: 3px;
  transition: all 0.2s;
}

.pt-fav-btn:hover {
  color: #EAB308;
  transform: scale(1.15);
}

.pt-fav-btn.active {
  color: #EAB308;
}

/* Card Body */
.pt-card-body {
  margin-bottom: 16px;
}

.pt-portal-name {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px;
  line-height: 1.35;
}

.pt-portal-url-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: #2563EB;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pt-portal-desc {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.55;
  margin: 0 0 14px;
}

/* Details Box */
.pt-details-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pt-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #334155;
}

.pt-detail-row strong {
  color: #0F172A;
  white-space: nowrap;
}

/* Card Bottom Buttons - Streamlined 2-Action Row */
.pt-card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.pt-btn {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.pt-btn-info {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  color: #1D4ED8;
  border: 1.5px solid #93C5FD;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.pt-btn-info:hover {
  background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
  border-color: #2563EB;
  color: #1E40AF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}

.pt-btn-wa {
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

.pt-btn-wa:hover {
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
}

.pt-btn-primary {
  background: linear-gradient(135deg, #1D4ED8, #2563EB);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.25);
}

.pt-btn-primary:hover {
  background: linear-gradient(135deg, #1E40AF, #1D4ED8);
  transform: translateY(-1px);
}

.pt-btn-secondary {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.pt-btn-secondary:hover {
  background: #DBEAFE;
}

.pt-btn-copy {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.pt-btn-copy:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* ── No Results State ── */
.pt-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1.5px dashed #CBD5E1;
  display: none;
}

.pt-no-results i {
  font-size: 3rem;
  color: #94A3B8;
  margin-bottom: 14px;
}

.pt-no-results h3 {
  font-size: 1.25rem;
  color: #1E293B;
  margin: 0 0 6px;
}

.pt-no-results p {
  color: #64748B;
  font-size: 0.9rem;
  max-width: 420px;
  margin: 0 auto 16px;
}

/* ── Safety Guidelines Section ── */
.pt-safety-section {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1.5px solid #E2E8F0;
  padding: 28px;
  margin-top: 40px;
  box-shadow: var(--pt-shadow-sm);
}

.pt-safety-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.pt-safety-header i {
  font-size: 1.8rem;
  color: #2563EB;
}

.pt-safety-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.pt-safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.pt-safety-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px;
}

.pt-safety-item .psi-icon {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.pt-safety-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 4px;
}

.pt-safety-item p {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* ── Toast Notification ── */
.pt-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #0F172A;
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.pt-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pt-toast i {
  color: #10B981;
}

/* ── Mobile Responsive Adjustments ── */
@media (max-width: 768px) {
  .pt-hero-section {
    padding: 36px 16px 52px;
  }
  .pt-hero-title {
    font-size: 1.65rem;
  }
  .pt-hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  .pt-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pt-dept-hub-banner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin: -20px 14px 24px;
  }
  .pt-dhb-left {
    flex-direction: column;
    text-align: center;
  }
  .pt-dhb-btn {
    width: 100%;
    justify-content: center;
  }
  .pt-card-footer {
    grid-template-columns: 1fr;
  }
}

/* ── 1-Click Fast Access Launchpad & Server Status ── */
.pt-quick-section {
  margin: 28px 0 32px;
}
.pt-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.pt-section-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pt-text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.pt-section-subtitle {
  font-size: 0.85rem;
  color: var(--pt-muted);
  margin-top: 4px;
}
.pt-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) {
  .pt-quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .pt-quick-grid { grid-template-columns: 1fr; }
}

.pt-qcard {
  background: var(--pt-surface);
  border: 1.5px solid var(--pt-border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--pt-shadow-sm);
  position: relative;
  overflow: hidden;
}
.pt-qcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--pt-shadow-md);
  border-color: #93C5FD;
}
.pt-qcard-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.pt-qcard-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.pt-qcard-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--pt-text);
  margin: 0 0 3px;
  line-height: 1.3;
}
.pt-qcard-dept {
  font-size: 0.75rem;
  color: var(--pt-muted);
  font-weight: 600;
}
.pt-qcard-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
}
.pt-qcard-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  margin-bottom: 12px;
  width: fit-content;
}
.pt-status-live {
  background: #ECFDF5;
  color: #059669;
}
.pt-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}
.pt-qcard-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pt-qbtn-guide,
.pt-qbtn-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: #0284C7;
  color: #FFFFFF !important;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.pt-qbtn-guide:hover,
.pt-qbtn-direct:hover {
  background: #0369A1;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}
.pt-qbtn-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  background: #25D366;
  color: #FFFFFF !important;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.pt-qbtn-help:hover {
  background: #16A34A;
}

/* Server Status Banner */
.pt-server-status-banner {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
  border: 1.5px solid #BFDBFE;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.pt-ssb-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pt-ssb-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #3B82F6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.pt-ssb-text h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #1E3A8A;
  margin: 0 0 4px;
}
.pt-ssb-text p {
  font-size: 0.82rem;
  color: #475569;
  margin: 0;
}
.pt-ssb-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pt-ssb-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1E293B;
}
.pt-ssb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #168A5B;
  color: #FFFFFF !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(22, 138, 91, 0.25);
  transition: transform 0.2s ease;
}
.pt-ssb-btn:hover {
  transform: translateY(-2px);
}

/* ==========================================
   PORTALS DIRECTORY - DARK MODE STYLES
   ========================================== */
body.dark-mode {
  --pt-surface: #1E293B;
  --pt-bg: #0B1120;
  --pt-border: #334155;
  --pt-text: #F8FAFC;
  --pt-muted: #94A3B8;
  --pt-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --pt-shadow-md: 0 10px 25px rgba(0, 0, 0, 0.5);
  --pt-shadow-lg: 0 20px 35px rgba(0, 0, 0, 0.6);
}

body.dark-mode .pt-card {
  background: #1E293B !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .pt-portal-name {
  color: #FFFFFF !important;
}

body.dark-mode .pt-portal-desc {
  color: #CBD5E1 !important;
}

body.dark-mode .pt-portal-icon {
  background: #0F172A !important;
  border: 1px solid #334155 !important;
}

body.dark-mode .pt-details-box {
  background: #0F172A !important;
  border-color: #334155 !important;
}

body.dark-mode .pt-detail-row {
  color: #94A3B8 !important;
}

body.dark-mode .pt-detail-row strong {
  color: #E2E8F0 !important;
}

body.dark-mode .pt-dept-tag {
  color: #94A3B8 !important;
}

body.dark-mode .pt-filter-title {
  color: #F8FAFC !important;
}

body.dark-mode .pt-filter-count {
  background: #334155 !important;
  color: #F1F5F9 !important;
}

body.dark-mode .pt-filter-btn {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #CBD5E1 !important;
}

body.dark-mode .pt-filter-btn:hover {
  background: #2563EB !important;
  color: #FFFFFF !important;
  border-color: #3B82F6 !important;
}

body.dark-mode .pt-filter-btn.active {
  background: #2563EB !important;
  color: #FFFFFF !important;
  border-color: #3B82F6 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
}

body.dark-mode .pt-filter-btn .tab-badge {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #F8FAFC !important;
}

body.dark-mode .pt-qcard {
  background: #1E293B !important;
  border-color: #334155 !important;
}

body.dark-mode .pt-qcard-title {
  color: #FFFFFF !important;
}

body.dark-mode .pt-qcard-dept {
  color: #94A3B8 !important;
}

body.dark-mode .pt-qcard-desc {
  color: #CBD5E1 !important;
}

body.dark-mode .pt-section-header h2 {
  color: #FFFFFF !important;
}

body.dark-mode .pt-section-subtitle {
  color: #94A3B8 !important;
}

body.dark-mode .pt-server-status-banner {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%) !important;
  border-color: #334155 !important;
}

body.dark-mode .pt-ssb-text h3 {
  color: #60A5FA !important;
}

body.dark-mode .pt-ssb-text p {
  color: #94A3B8 !important;
}

body.dark-mode .pt-ssb-pill {
  background: #0F172A !important;
  border-color: #334155 !important;
  color: #E2E8F0 !important;
}

body.dark-mode .pt-dept-hub-banner {
  background: linear-gradient(135deg, #064E3B 0%, #065F46 100%) !important;
  border-color: #059669 !important;
}

body.dark-mode .pt-dhb-text h3 {
  color: #FFFFFF !important;
}

body.dark-mode .pt-dhb-text p {
  color: #A7F3D0 !important;
}

body.dark-mode .pt-safety-section {
  background: #1E293B !important;
  border-color: #334155 !important;
}

body.dark-mode .pt-safety-header h3 {
  color: #FFFFFF !important;
}

body.dark-mode .pt-safety-item {
  background: #0F172A !important;
  border-color: #334155 !important;
}

body.dark-mode .pt-safety-item h4 {
  color: #F1F5F9 !important;
}

body.dark-mode .pt-safety-item p {
  color: #94A3B8 !important;
}

body.dark-mode .pt-btn-secondary {
  background: #0F172A !important;
  color: #60A5FA !important;
  border-color: #2563EB !important;
}

body.dark-mode .pt-btn-copy {
  background: #0F172A !important;
  color: #CBD5E1 !important;
  border-color: #334155 !important;
}

body.dark-mode .pt-btn-copy:hover {
  background: #1E293B !important;
  color: #FFFFFF !important;
}

body.dark-mode .pt-no-results {
  background: #1E293B !important;
  border-color: #334155 !important;
}

body.dark-mode .pt-no-results h3 {
  color: #FFFFFF !important;
}

body.dark-mode .pt-no-results p {
  color: #94A3B8 !important;
}

/* Additional High-Contrast Dark Mode Rules for Portals Directory */
body.dark-mode .pt-search-box {
  background: #1E293B !important;
  border-color: #334155 !important;
}
body.dark-mode .pt-search-input {
  color: #FFFFFF !important;
}
body.dark-mode .pt-search-input::placeholder {
  color: #94A3B8 !important;
}
body.dark-mode .pt-portal-url-text {
  color: #60A5FA !important;
}
body.dark-mode .tag-cg {
  background: rgba(6, 95, 70, 0.4) !important;
  color: #6EE7B7 !important;
  border-color: #047857 !important;
}
body.dark-mode .tag-kendra {
  background: rgba(154, 52, 18, 0.4) !important;
  color: #FDBA74 !important;
  border-color: #C2410C !important;
}
body.dark-mode .pt-dept-tag {
  color: #CBD5E1 !important;
}
body.dark-mode .pt-status-pill {
  background: rgba(22, 101, 52, 0.4) !important;
  color: #86EFAC !important;
  border-color: #15803D !important;
}
body.dark-mode .pt-details-box {
  background: #0F172A !important;
  border-color: #334155 !important;
}
body.dark-mode .pt-detail-row {
  color: #CBD5E1 !important;
}
body.dark-mode .pt-detail-row strong {
  color: #FFFFFF !important;
}
body.dark-mode .pt-qbtn-guide {
  background: #0F172A !important;
  color: #60A5FA !important;
  border: 1px solid #334155 !important;
}
body.dark-mode .pt-qbtn-guide:hover {
  background: #1E293B !important;
  color: #93C5FD !important;
}
body.dark-mode .pt-qcard-status {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: #334155 !important;
  color: #E2E8F0 !important;
}
body.dark-mode .pt-portal-desc {
  color: #CBD5E1 !important;
}
body.dark-mode .pt-hero-stats .pt-stat-item span {
  color: #E2E8F0 !important;
}
body.dark-mode .pt-hero-stats .pt-stat-item strong {
  color: #FFFFFF !important;
}
body.dark-mode .pt-md-label {
  color: #94A3B8 !important;
}
body.dark-mode .pt-md-val {
  color: #F8FAFC !important;
}
body.dark-mode .pt-shortcut-card {
  background: #0F172A !important;
  color: #F8FAFC !important;
  border-color: #334155 !important;
}
body.dark-mode .pt-shortcut-card span {
  color: #F8FAFC !important;
}

/* =============================================================
   PORTAL DETAILS & SHORTCUT LINKS MODAL (v3.5)
   ============================================================= */
.pt-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.76);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 12000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pt-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.pt-modal-container {
  background: #FFFFFF;
  border-radius: 24px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.08);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.pt-modal-overlay.active .pt-modal-container {
  transform: scale(1) translateY(0);
}

.pt-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  background: #F8FAFC;
  border-radius: 24px 24px 0 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.pt-modal-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pt-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.pt-modal-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.pt-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
}

.pt-modal-url {
  font-size: 0.82rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-weight: 600;
}

.pt-modal-close {
  background: #E2E8F0;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #475569;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pt-modal-close:hover {
  background: #CBD5E1;
  color: #0F172A;
  transform: rotate(90deg);
}

.pt-modal-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pt-modal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pt-msec-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pt-modal-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
}

.pt-modal-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.86rem;
}

.pt-md-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #334155;
}

.pt-md-item strong {
  color: #0F172A;
  white-space: nowrap;
}

/* Official Direct Portal Launch Card */
.pt-modal-portal-launch {
  background: linear-gradient(135deg, #091A33 0%, #0F2A4A 60%, #153861 100%);
  border-radius: 18px;
  padding: 18px 20px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 10px 24px rgba(9, 26, 51, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pt-mpl-text strong {
  display: block;
  font-size: 1.05rem;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.pt-mpl-text span {
  font-size: 0.82rem;
  color: #94A3B8;
}

.pt-mpl-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pt-btn-launch-main {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 11px 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pt-btn-launch-main:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}

.pt-btn-copy-modal {
  background: rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.pt-btn-copy-modal:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Shortcuts Header and Grid */
.pt-shortcuts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pt-shortcuts-badge {
  background: #FEF3C7;
  color: #B45309;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #FDE68A;
}

.pt-shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pt-shortcut-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s ease;
}

.pt-shortcut-card:hover {
  background: #EFF6FF;
  border-color: #3B82F6;
  color: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
}

.pt-sc-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pt-sc-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #EFF6FF;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.pt-shortcut-card:hover .pt-sc-icon {
  background: #2563EB;
  color: #FFFFFF;
}

.pt-sc-title {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.pt-sc-arrow {
  color: #94A3B8;
  font-size: 0.8rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.pt-shortcut-card:hover .pt-sc-arrow {
  color: #2563EB;
  transform: translateX(3px);
}

/* Modal Bottom Bar */
.pt-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #F8FAFC;
  border-radius: 0 0 24px 24px;
  flex-wrap: wrap;
}

.pt-btn-guide {
  background: #FFFFFF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.pt-btn-guide:hover {
  background: #EFF6FF;
  border-color: #3B82F6;
  transform: translateY(-1px);
}

.pt-btn-wa-modal {
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.pt-btn-wa-modal:hover {
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  transform: translateY(-1px);
}

/* Dark mode for modal */
body.dark-mode .pt-modal-container {
  background: #0F172A;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px #334155;
}
body.dark-mode .pt-modal-header,
body.dark-mode .pt-modal-footer {
  background: #1E293B;
  border-color: #334155;
}
body.dark-mode .pt-modal-title,
body.dark-mode .pt-msec-title {
  color: #F8FAFC;
}
body.dark-mode .pt-modal-desc {
  color: #CBD5E1;
}
body.dark-mode .pt-modal-details-grid {
  background: #1E293B;
  border-color: #334155;
}
body.dark-mode .pt-md-item {
  color: #CBD5E1;
}
body.dark-mode .pt-md-item strong {
  color: #F8FAFC;
}
body.dark-mode .pt-shortcut-card {
  background: #1E293B;
  border-color: #334155;
  color: #E2E8F0;
}
body.dark-mode .pt-shortcut-card:hover {
  background: #0F172A;
  border-color: #38BDF8;
  color: #38BDF8;
}
body.dark-mode .pt-sc-icon {
  background: #0F172A;
  color: #38BDF8;
}
body.dark-mode .pt-btn-info {
  background: #1E293B;
  color: #60A5FA;
  border-color: #3B82F6;
}
body.dark-mode .pt-btn-guide {
  background: #1E293B;
  color: #60A5FA;
  border-color: #334155;
}

@media (max-width: 640px) {
  .pt-shortcuts-grid {
    grid-template-columns: 1fr;
  }
  .pt-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .pt-modal-footer a {
    justify-content: center;
  }
  .pt-mpl-actions {
    width: 100%;
  }
  .pt-btn-launch-main {
    flex: 1;
    justify-content: center;
  }
}


