/* ==========================================================================
   Asian Institute of Professionals (AIP) - Student Verification Portal
   Strictly Mobile-First Academic Design System & Responsive Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens & Variables
   -------------------------------------------------------------------------- */
:root {
  --primary: #0f2b48;
  --primary-dark: #091a2d;
  --primary-light: #1e3a5f;
  --accent-gold: #c59b27;
  --accent-gold-light: #fef3c7;
  --accent-red: #991b1b;
  --accent-red-hover: #7f1d1d;
  --accent-green: #059669;
  --accent-green-bg: #ecfdf5;
  --accent-blue: #1d4ed8;
  --accent-blue-bg: #eff6ff;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --border-light: #e2e8f0;
  --border-dark: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles (Mobile Default)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   Header & Navigation (Mobile Default)
   -------------------------------------------------------------------------- */
.aip-header {
  background: linear-gradient(135deg, #091a2d 0%, #0f2b48 100%);
  border-bottom: 3px solid var(--accent-gold);
  color: #ffffff;
  padding: 0.85rem 1rem;
  position: relative;
  z-index: 50;
  box-shadow: var(--shadow-md);
}

.header-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  min-width: 0;
}

.header-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.header-title-box h1 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.25;
}

.header-title-box p {
  font-size: 0.72rem;
  color: #cbd5e1;
  font-weight: 500;
  line-height: 1.2;
}

.header-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Hero & Search Section (Mobile Default)
   -------------------------------------------------------------------------- */
.hero-section {
  background: radial-gradient(circle at 50% 0%, #1e3a5f 0%, #0f2b48 100%);
  color: #ffffff;
  padding: 2rem 1rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

body.landing-state .hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(197, 155, 39, 0.18);
  border: 1px solid rgba(197, 155, 39, 0.45);
  color: #fde68a;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.hero-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 1.35rem;
  font-weight: 400;
  line-height: 1.45;
}

/* Search Box Container (Mobile-First Stacked) */
.search-wrapper {
  background: #ffffff;
  padding: 0.6rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.search-wrapper:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(197, 155, 39, 0.25);
}

.search-icon-box {
  display: none;
}

.search-input {
  width: 100%;
  border: 1px solid var(--border-light);
  background: #f8fafc;
  border-radius: var(--radius-md);
  outline: none;
  font-size: 16px; /* Prevents auto zoom in mobile Safari */
  padding: 0.75rem 0.85rem;
  color: var(--text-main);
  font-weight: 600;
  text-align: center;
  min-height: 48px;
  box-sizing: border-box;
}

.search-input:focus {
  background: #ffffff;
  border-color: var(--primary-light);
}

.search-input::placeholder {
  color: var(--text-subtle);
  font-size: 0.9rem;
  font-weight: 400;
}

.search-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-red) 0%, #7f1d1d 100%);
  color: #ffffff;
  border: none;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.35);
}

.search-btn:active {
  transform: scale(0.98);
}

/* --------------------------------------------------------------------------
   Main Content Layout (Mobile Default)
   -------------------------------------------------------------------------- */
.main-container {
  width: 100%;
  margin: -1.25rem auto 2.5rem;
  padding: 0 1rem;
  position: relative;
  z-index: 20;
  flex: 1;
}

/* --------------------------------------------------------------------------
   Multi-Award Switcher (Mobile Default - Swipeable)
   -------------------------------------------------------------------------- */
.awards-switcher {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.awards-switcher-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.awards-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  width: 100%;
}

.award-tab-btn {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.award-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   Student Record Card (Mobile Default)
   -------------------------------------------------------------------------- */
.student-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  width: 100%;
}

/* Verified Status Top Banner */
.card-top-banner {
  background: linear-gradient(90deg, #059669 0%, #047857 100%);
  color: #ffffff;
  padding: 0.65rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.banner-right {
  font-family: monospace;
  font-size: 0.72rem;
  opacity: 0.9;
}

/* Profile Header Section */
.profile-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  width: 100%;
}

.profile-main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  border: 2px solid var(--accent-gold);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-info h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  word-break: break-word;
}

.profile-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-id {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--accent-red);
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
}

.copy-id-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.copy-id-btn:active {
  transform: scale(0.9);
}

.tag-degree {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.tag-nationality {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
}

/* Action Toolbar (Mobile Full-Width Buttons) */
.card-actions-bar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-pdf {
  background: linear-gradient(135deg, var(--accent-red) 0%, #b91c1c 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(185, 28, 28, 0.25);
}

.btn-pdf:active {
  transform: scale(0.98);
}

.btn-print {
  background: #ffffff;
  border: 1px solid var(--border-dark);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-print:active {
  background: #f1f5f9;
}

/* --------------------------------------------------------------------------
   Structured Details Body (Mobile Default)
   -------------------------------------------------------------------------- */
.card-body {
  padding: 1.25rem 1rem;
  width: 100%;
}

/* Academic Progression Timeline (Mobile 2x2 Grid) */
.timeline-box {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.timeline-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.timeline-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  width: 100%;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: #ffffff;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.step-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  word-break: break-word;
}

.step-val.highlight-award {
  color: var(--accent-red);
}

/* Details Grid & Section Boxes (Mobile Single Column Stacked Rows) */
.details-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.section-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.box-header {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.box-header svg {
  color: var(--accent-gold);
}

.field-list {
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed #f1f5f9;
  width: 100%;
}

.field-row:last-child {
  border-bottom: none;
}

.field-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.field-value {
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.92rem;
  word-break: break-word;
}

.field-value.highlight {
  color: var(--primary);
  font-weight: 800;
}

.field-value.code {
  font-family: monospace;
  color: var(--accent-red);
}

/* Security Verification Footer (Mobile Default) */
.security-footer-box {
  border-top: 2px dashed var(--border-light);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  width: 100%;
}

.security-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

.verified-seal-badge {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.25);
  flex-shrink: 0;
}

.seal-text h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.seal-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 440px;
}

/* --------------------------------------------------------------------------
   Welcome & Guide Component (Mobile-First Semantic Design)
   -------------------------------------------------------------------------- */
.welcome-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  width: 100%;
}

.welcome-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.welcome-title-group h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.welcome-title-group p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.welcome-status-badge {
  background: var(--accent-green-bg);
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
}

/* 3 Step Verification Cards */
.welcome-steps-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.step-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.step-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.step-icon.red { background: #fee2e2; color: var(--accent-red); }
.step-icon.blue { background: #eff6ff; color: var(--primary); }
.step-icon.gold { background: #fef3c7; color: #b45309; }

.step-content h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.step-content p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Quick Test Students List */
.welcome-samples-section {
  width: 100%;
}

.samples-heading {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.samples-heading span {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.samples-heading small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.samples-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.sample-student-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  background: #ffffff;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  min-height: 52px;
  transition: all 0.2s ease;
}

.sample-student-card:active {
  background: #f1f5f9;
  border-color: var(--primary);
}

.sample-student-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sample-id {
  font-family: monospace;
  font-weight: 800;
  color: var(--accent-red);
  font-size: 0.85rem;
}

.sample-name {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sample-student-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.sample-program {
  font-size: 0.72rem;
  background: var(--accent-blue-bg);
  color: var(--accent-blue);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sample-arrow {
  color: var(--text-subtle);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Empty / Error State (Mobile Default)
   -------------------------------------------------------------------------- */
.empty-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  width: 100%;
}

.empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.empty-icon.not-found {
  background: #fee2e2;
  color: var(--accent-red);
}

.empty-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.45rem;
}

.empty-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   Footer (Mobile Default)
   -------------------------------------------------------------------------- */
.aip-footer {
  margin-top: auto;
  background: #091a2d;
  color: #94a3b8;
  padding: 1.5rem 1rem;
  font-size: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  width: 100%;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  color: #cbd5e1;
}

/* ==========================================================================
   PROGRESSIVE ENHANCEMENTS: TABLET & DESKTOP (min-width media queries)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Small Tablets & Landscape Phones (>= 600px)
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .search-wrapper {
    flex-direction: row;
    align-items: center;
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .search-icon-box {
    display: flex;
    padding-left: 0.85rem;
    color: var(--text-muted);
  }

  .search-input {
    border: none;
    background: transparent;
    text-align: left;
    min-height: auto;
    padding: 0.75rem 0.5rem;
  }

  .search-btn {
    width: auto;
    min-height: auto;
    white-space: nowrap;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-lg);
  }

  .card-actions-bar {
    flex-direction: row;
    width: auto;
  }

  .btn-action {
    width: auto;
  }

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

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

  .sample-program {
    max-width: 160px;
  }

  .timeline-track {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-top-banner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1.5rem;
  }

  .security-footer-box {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }

  .security-seal {
    flex-direction: row;
    width: auto;
  }
}

/* --------------------------------------------------------------------------
   Medium Tablets & Desktops (>= 768px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .aip-header {
    padding: 1rem 1.5rem;
  }

  .header-logo {
    height: 52px;
  }

  .header-title-box h1 {
    font-size: 1.15rem;
  }

  .header-title-box p {
    font-size: 0.78rem;
  }

  .hero-section {
    padding: 3.5rem 1.5rem 4rem;
  }

  body.landing-state .hero-section {
    padding: 4.5rem 1.5rem 5.5rem;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .hero-desc {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .main-container {
    max-width: 1050px;
    margin: -2rem auto 3rem;
    padding: 0 1.5rem;
  }

  .profile-header {
    padding: 1.75rem 2rem 1.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .profile-avatar {
    width: 68px;
    height: 68px;
    font-size: 1.5rem;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .card-body {
    padding: 2rem;
  }

  .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .field-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
  }

  .field-label {
    width: 40%;
    font-size: 0.82rem;
  }

  .field-value {
    width: 60%;
    text-align: right;
  }

  .welcome-card {
    padding: 2.5rem;
  }

  .welcome-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .welcome-status-badge {
    align-self: auto;
  }

  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   PRINT FRIENDLY STYLESHEET (@media print)
   Optimized for clean A4 institutional printing
   ========================================================================== */
@media print {
  .aip-header,
  .hero-section,
  .card-actions-bar,
  .awards-switcher,
  .aip-footer,
  .btn-action,
  .btn-print,
  .btn-pdf,
  .copy-id-btn,
  .no-print {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
    line-height: 1.4;
    padding: 0;
    margin: 0;
  }

  .main-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .student-card {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .print-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2pt solid #0f2b48;
    padding-bottom: 12pt;
    margin-bottom: 14pt;
  }

  .print-header img {
    height: 55px;
    width: auto;
  }

  .print-title {
    text-align: right;
  }

  .print-title h1 {
    font-size: 13pt;
    font-weight: bold;
    color: #0f2b48;
    margin: 0;
    text-transform: uppercase;
  }

  .print-title p {
    font-size: 9pt;
    color: #475569;
    margin: 2pt 0 0;
  }

  .card-top-banner {
    background: #059669 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: 6pt 10pt;
    font-size: 9pt;
  }

  .profile-header {
    background: none !important;
    padding: 10pt 0 !important;
    border-bottom: 1pt solid #cbd5e1 !important;
  }

  .profile-avatar {
    display: none !important;
  }

  .profile-info h2 {
    font-size: 15pt !important;
    color: #0f2b48 !important;
  }

  .details-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12pt !important;
    margin-bottom: 12pt !important;
  }

  .section-box {
    border: 1pt solid #cbd5e1 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .box-header {
    background: #f1f5f9 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-size: 8.5pt !important;
    padding: 4pt 8pt !important;
  }

  .field-list {
    padding: 6pt 8pt !important;
  }

  .field-row {
    flex-direction: row !important;
    justify-content: space-between !important;
    padding: 3pt 0 !important;
    font-size: 9pt !important;
  }

  .timeline-box {
    border: 1pt solid #cbd5e1 !important;
    background: #f8fafc !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: 8pt 10pt !important;
    margin-bottom: 12pt !important;
    page-break-inside: avoid;
  }

  .timeline-track {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .security-footer-box {
    border-top: 1pt dashed #94a3b8 !important;
    padding-top: 10pt !important;
    page-break-inside: avoid;
  }
}

.print-only {
  display: none;
}
