/* ==========================================================================
   SOLDIER CITY KARACHI — CUSTOMER PORTAL STYLES
   Signature 2nd Source Solutions Theme (Royal Blue, Deep Navy, Amber Orange)
   ========================================================================== */

.portal-body {
  display: flex;
  min-height: 100vh;
  background-color: #F8FAFC;
  color: var(--sc-text-main);
  font-family: var(--font-sans);
}

.portal-layout {
  display: flex;
  width: 100%;
}

/* --------------------------------------------------------------------------
   1. CUSTOMER PORTAL SIDEBAR
   -------------------------------------------------------------------------- */
.portal-sidebar {
  width: 270px;
  background: linear-gradient(180deg, #001124 0%, #001A33 60%, #002244 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.35rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 4px 0 24px rgba(0, 26, 51, 0.15);
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}

.portal-sidebar-greeting {
  font-size: 0.72rem;
  color: #FF8601;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
}

.portal-sidebar-name {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  margin-top: 0.25rem;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}

.portal-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  margin-bottom: 0.4rem;
  text-decoration: none;
  transition: all 0.18s ease;
}

.portal-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  transform: translateX(3px);
}

.portal-nav-link.active {
  background: linear-gradient(135deg, #005199 0%, #206BD8 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 81, 153, 0.4);
  border-left: 3.5px solid #FF8601;
}

/* --------------------------------------------------------------------------
   2. PORTAL MAIN & TOPBAR
   -------------------------------------------------------------------------- */
.portal-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.portal-topbar {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 1.25rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0, 26, 51, 0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}

.portal-page-title {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--sc-navy);
  line-height: 1.2;
}

.portal-page-subtitle {
  font-size: 0.82rem;
  color: var(--sc-text-muted);
}

.portal-content {
  padding: 1.5rem 1.85rem;
  flex: 1;
}

/* --------------------------------------------------------------------------
   3. HERO SUMMARY CARD (High-Contrast Luxury Gradient)
   -------------------------------------------------------------------------- */
.portal-summary-card {
  background: linear-gradient(135deg, #001A33 0%, #002B54 50%, #005199 100%);
  color: #FFFFFF;
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 15px 35px -5px rgba(0, 26, 51, 0.25);
  border: 1px solid rgba(255, 134, 1, 0.35);
  position: relative;
  overflow: hidden;
}

.portal-summary-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 134, 1, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.portal-stat-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.portal-stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.portal-stat-val {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #FFFFFF;
  margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   4. HAMBURGER NAVIGATION & RESPONSIVE BREAKPOINTS (Mobile & Tablet)
   -------------------------------------------------------------------------- */
.portal-hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 38px;
  height: 38px;
  padding: 9px 8px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.portal-hamburger-btn:hover {
  background: #EFF6FF;
  border-color: #005199;
}

.portal-hamburger-btn span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: #001A33;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.portal-sidebar-close {
  display: none;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.portal-sidebar-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #EF4444;
}

.portal-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 17, 36, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.portal-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

body.portal-drawer-open {
  overflow: hidden !important;
}

@media (max-width: 1024px) {
  .portal-hamburger-btn {
    display: flex;
  }
  .portal-sidebar-close {
    display: flex;
  }
  .portal-drawer-backdrop {
    display: block;
  }
  .portal-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 285px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
  }
  .portal-sidebar.active {
    transform: translateX(0) !important;
  }
  .portal-sidebar > div:first-of-type {
    padding-right: 2.25rem;
  }
  .portal-sidebar nav {
    flex-direction: column !important;
    overflow-x: visible !important;
    margin-top: 2rem !important;
    gap: 0.5rem !important;
  }
  .portal-nav-link {
    white-space: normal !important;
    padding: 0.8rem 1.1rem !important;
    font-size: 0.92rem !important;
  }
  .portal-main {
    margin-left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .portal-topbar {
    padding: 1rem 1.35rem !important;
    min-height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .portal-page-title {
    font-size: 1.25rem !important;
  }
  .portal-page-subtitle {
    font-size: 0.78rem !important;
  }
  .portal-content {
    padding: 1.25rem 1rem !important;
  }
  .portal-summary-card {
    padding: 1.75rem 1.35rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 14px !important;
  }
  .portal-summary-card h2 {
    font-size: 2.1rem !important;
  }
  .summary-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem 1rem !important;
    margin-top: 1.75rem !important;
    padding-top: 1.5rem !important;
  }
  .profile-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .portal-card {
    padding: 1.35rem !important;
    border-radius: 14px !important;
    margin-bottom: 1.5rem !important;
  }
}

@media (max-width: 640px) {
  .portal-topbar {
    padding: 0.85rem 1rem !important;
    flex-wrap: wrap !important;
    gap: 0.65rem !important;
  }
  .portal-topbar-right {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }
  .demo-badge {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.5rem !important;
  }
  .portal-page-title {
    font-size: 1.15rem !important;
  }
  .portal-summary-card {
    padding: 1.35rem 1rem !important;
  }
  .portal-summary-card h2 {
    font-size: 1.8rem !important;
  }
  .portal-summary-card p {
    font-size: 0.86rem !important;
  }
  .summary-stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem 0.75rem !important;
    margin-top: 1.25rem !important;
    padding-top: 1.15rem !important;
  }
  .summary-stat-val {
    font-size: 1.15rem !important;
  }
  .profile-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
  .change-password-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  .doc-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .portal-card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
  }
  .till-paid-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
  #next-due-card {
    width: 100% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
  }
  #next-due-card .btn-submit-slip {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* --------------------------------------------------------------------------
   5. PORTAL DATA TABLES (Luxury Spacing & High-Contrast Typography)
   -------------------------------------------------------------------------- */
.portal-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(0, 26, 51, 0.05);
  margin-bottom: 2rem;
}

.portal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1.5px solid #F1F5F9;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.portal-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #001A33;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.portal-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.portal-table, table.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.portal-table th, table.table th {
  background: #001A33;
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 0.65rem 0.55rem;
  border: none;
}

.portal-table td, table.table td {
  padding: 0.65rem 0.55rem;
  font-size: 0.82rem;
  color: #1E293B;
  border-bottom: 1px solid #EDF2F7;
  vertical-align: middle;
}

.portal-table tbody tr:hover, table.table tbody tr:hover {
  background-color: #F8FAFC;
}

.portal-table tbody tr:last-child td, table.table tbody tr:last-child td {
  border-bottom: none;
}

.receipt-badge {
  background: #E0F2FE;
  color: #0369A1;
  font-family: monospace;
  font-weight: 800;
  font-size: 0.80rem;
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  border: 1px solid #BAE6FD;
  display: inline-block;
}

.amount-highlight {
  color: #15803D;
  font-weight: 800;
  font-size: 0.95rem;
}

.status-cleared-pill {
  background: #DCFCE7;
  color: #15803D;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid #86EFAC;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* --------------------------------------------------------------------------
   6. PERSONAL INFORMATION & PROFILE SECTION (Locked Read-Only Boxes)
   -------------------------------------------------------------------------- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem 1.15rem;
  margin-bottom: 1.15rem;
}

@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.locked-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.locked-field-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.locked-badge-pill {
  font-size: 0.68rem;
  font-weight: 700;
  background: #F1F5F9;
  color: #64748B;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  border: 1px solid #CBD5E1;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.locked-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.locked-input-control {
  width: 100%;
  height: 38px;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: #001A33;
  cursor: not-allowed;
  user-select: text;
  box-sizing: border-box;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.locked-input-control:focus {
  outline: none;
  border-color: #94A3B8;
}

.locked-icon-suffix {
  position: absolute;
  right: 12px;
  color: #94A3B8;
  font-size: 0.88rem;
  pointer-events: none;
}

.profile-notice-box {
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  border-left: 4.5px solid #005199;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: #1E3A8A;
  line-height: 1.5;
}

/* Change Password Card Inside Profile */
.change-password-box {
  background: #FAFAFA;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.change-password-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #E2E8F0;
}

.change-password-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
  .change-password-grid {
    grid-template-columns: 1fr;
  }
}

.pwd-input-control {
  width: 100%;
  height: 36px;
  padding: 0.45rem 0.75rem;
  border: 1.5px solid #CBD5E1;
  border-radius: 7px;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  color: #001A33;
  box-sizing: border-box;
}

.pwd-input-control:focus {
  outline: none;
  border-color: #005199;
  box-shadow: 0 0 0 3px rgba(0, 81, 153, 0.12);
}

.btn-update-pwd {
  background: linear-gradient(135deg, #005199 0%, #003B73 100%);
  color: #FFFFFF;
  border: none;
  height: 36px;
  padding: 0 1.15rem;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 81, 153, 0.25);
}

.btn-update-pwd:hover {
  background: linear-gradient(135deg, #FF8601 0%, #E67700 100%);
  box-shadow: 0 4px 14px rgba(255, 134, 1, 0.35);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   7. 5-YEAR INSTALLMENT SCHEDULE & TILL-PAID MILESTONE STYLES
   -------------------------------------------------------------------------- */
.till-paid-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F7FF 100%);
  border: 1.5px solid #BAE6FD;
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 81, 153, 0.06);
}

.till-paid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.till-paid-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #DCFCE7;
  color: #15803D;
  border: 1.5px solid #86EFAC;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.12);
}

.portal-progress-track {
  width: 100%;
  height: 14px;
  background: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin: 0.75rem 0 0.5rem;
}

.portal-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #16A34A 0%, #22C55E 70%, #FF8601 100%);
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.schedule-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.schedule-btn-filter {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  color: #334155;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.schedule-btn-filter.active, .schedule-btn-filter:hover {
  background: #001A33;
  color: #FFFFFF;
  border-color: #001A33;
}

.status-paid-pill {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-pending-pill {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FCD34D;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-due-pill {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-submit-slip {
  background: #FF8601;
  color: #FFFFFF;
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(255, 134, 1, 0.25);
}

.btn-submit-slip:hover {
  background: #E67700;
  transform: translateY(-1px);
}

.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 26, 51, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-modal {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-modal-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: #FFFFFF;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
}

/* --------------------------------------------------------------------------
   8. QUICK NAVIGATION CARDS (Executive Dashboard Grid)
   -------------------------------------------------------------------------- */
.portal-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 860px) {
  .portal-nav-grid {
    grid-template-columns: 1fr;
  }
}

.portal-nav-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 16px rgba(0, 26, 51, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.portal-nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #005199;
  transition: width 0.2s ease, background 0.2s ease;
}

.portal-nav-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: 0 12px 28px rgba(0, 26, 51, 0.09);
}

.portal-nav-card:hover::before {
  width: 6px;
  background: #FF8601;
}

.portal-nav-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.15rem;
  color: #005199;
}

.portal-nav-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #001A33;
  margin-bottom: 0.4rem;
}

.portal-nav-card-desc {
  font-size: 0.85rem;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.portal-nav-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #005199;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.portal-nav-card:hover .portal-nav-card-link {
  color: #FF8601;
  gap: 0.6rem;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

@media (max-width: 900px) {
  .doc-grid {
    grid-template-columns: 1fr;
  }
}

.doc-card-item {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 26, 51, 0.03);
}

.doc-card-item:hover {
  border-color: #93C5FD;
  box-shadow: 0 8px 24px rgba(0, 81, 153, 0.08);
  transform: translateY(-2px);
}

.doc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.doc-card-content {
  flex: 1;
  min-width: 0;
}

.doc-card-title {
  font-size: 0.94rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #001A33;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.doc-card-desc {
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.doc-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.doc-badge-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: #EFF6FF;
  color: #005199;
  border: 1px solid #BFDBFE;
}

.doc-action-btn {
  background: #001A33;
  color: #FFFFFF;
  border: none;
  padding: 0.38rem 0.85rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: all 0.18s ease;
}

.doc-action-btn:hover {
  background: #FF8601;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.doc-action-btn-secondary {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
  padding: 0.45rem 0.9rem;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: all 0.18s ease;
}

.doc-action-btn-secondary:hover {
  background: #E2E8F0;
  color: #001A33;
}



