/* ─────────────────────────────────────────────────────────────────────────────
   Subpage Layout & Banners
   ───────────────────────────────────────────────────────────────────────────── */

.subpage-banner {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #ffffff;
  padding: 0 1.5rem;
  margin-top: 0;
}

.subpage-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(11, 19, 43, 0.75) 0%, rgba(11, 19, 43, 0.88) 100%);
}

.subpage-banner-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.subpage-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.subpage-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.subpage-content {
  padding: 5rem 0 6rem;
}

/* "N current offers ↓" jump link under a service page banner subtitle */
.subpage-offers-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}

.subpage-offers-link:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* Service Detail Cards on Subpages */
.service-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.service-detail-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.service-detail-card:nth-child(even) {
  grid-template-columns: 1fr 1.2fr;
}

.service-detail-card:nth-child(even) .service-detail-img-wrap {
  order: -1;
}

.service-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(21, 101, 224, 0.12);
  border-color: rgba(21, 101, 224, 0.4);
}

.service-detail-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.service-detail-text p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-detail-img-wrap {
  overflow: hidden;
  border-radius: 16px;
}

.service-detail-img {
  width: 100%;
  height: 320px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-detail-card:hover .service-detail-img {
  transform: scale(1.04);
}

@media (max-width: 900px) {
  .service-detail-card, .service-detail-card:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
  .service-detail-card:nth-child(even) .service-detail-img-wrap {
    order: 0;
  }
}

@media (max-width: 640px) {
  .subpage-banner {
    height: auto;
    min-height: 220px;
    /* Clears the fixed header (logo badge) so it never covers the title */
    padding: 6.75rem 1rem 2.25rem;
  }
  .subpage-title {
    font-size: clamp(1.65rem, 6vw, 2.2rem);
  }
  .subpage-subtitle {
    font-size: 0.92rem;
  }
  .service-detail-card, .service-detail-card:nth-child(even) {
    padding: 1.25rem;
    border-radius: 18px;
    gap: 1.25rem;
  }
  .service-detail-img {
    height: 200px;
  }
  .service-detail-text h2 {
    font-size: 1.45rem;
    margin-bottom: 0.65rem;
  }
  .service-detail-text p {
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Home Spotlight & Testimonials
   ───────────────────────────────────────────────────────────────────────────── */

.spotlight-section {
  background: linear-gradient(135deg, #0B132B 0%, #152244 100%);
  color: #ffffff;
  padding: 6rem 0;
  margin: 5rem 0;
  border-radius: 32px;
  overflow: hidden;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.spotlight-tag {
  display: inline-block;
  background: rgba(34, 197, 94, 0.2);
  color: var(--brand-green);
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.spotlight-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.spotlight-desc {
  font-size: 1.05rem;
  color: #94A3B8;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.spotlight-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.spotlight-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.spotlight-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spotlight-img {
  width: 100%;
  height: 420px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Testimonial Section */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(21, 101, 224, 0.3);
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: #475569;
  font-style: italic;
  margin-bottom: 1.75rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 2px solid var(--brand-blue-light);
}

.author-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
}

.author-role {
  font-size: 0.85rem;
  color: #64748b;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Application Portal (/apply)
   ───────────────────────────────────────────────────────────────────────────── */

.portal-container {
  max-width: 820px;
  margin: 0 auto;
}

.portal-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

.tab-list {
  display: flex;
  background: var(--brand-sand);
  padding: 0.4rem;
  border-radius: 14px;
  gap: 0.35rem;
  margin-bottom: 2.5rem;
}

.tab-btn {
  flex: 1;
  padding: 0.85rem 1rem;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.tab-btn.active {
  background: #ffffff;
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.application-standards {
  margin: -1rem 0 2rem;
  padding: 1rem 1.15rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
}

.application-standards a {
  color: #166534;
  text-decoration: underline;
}

.submit-note {
  margin-top: -0.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

.application-standards-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 0.55rem;
}

.application-standards ol,
.application-standards ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: #365314;
  font-size: 0.84rem;
  font-weight: 600;
}

.application-standards li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.application-standards li span {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--brand-green);
  color: #ffffff;
  font-size: 0.75rem;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--foreground);
}

.form-label .required {
  color: #ef4444;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--foreground);
  background: #ffffff;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(21, 101, 224, 0.1);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

/* File Upload Zone */
.file-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  transition: var(--transition-smooth);
}

.file-dropzone:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-light);
}

.dropzone-icon {
  width: 32px;
  height: 32px;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}

.dropzone-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--foreground);
  display: block;
}

.dropzone-subtext {
  font-size: 0.78rem;
  color: #94a3b8;
  display: block;
  margin-top: 0.25rem;
}

.dropzone-selected {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-green);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.portal-submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(21, 101, 224, 0.3);
  transition: var(--transition-smooth);
  margin-top: 0.5rem;
}

.portal-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 101, 224, 0.4);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Digital Boarding Pass Ticket / Receipt
   ───────────────────────────────────────────────────────────────────────────── */

.receipt-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-width: 680px;
  margin: 0 auto;
}

.receipt-header {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
  padding: 1.75rem 2rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.receipt-brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.receipt-badge {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.receipt-body {
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  background: #ffffff;
}

.receipt-body-full {
  grid-column: 1 / -1;
}

.receipt-item-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-bottom: 0.3rem;
}

.receipt-item-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--foreground);
}

.receipt-item-val.ref {
  color: var(--brand-blue);
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.receipt-footer {
  background: #f8fafc;
  border-top: 1px dashed var(--border-color);
  padding: 1.25rem 2rem;
  font-size: 0.88rem;
  color: #64748b;
  text-align: center;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Live Application Tracker (/track)
   ───────────────────────────────────────────────────────────────────────────── */

.tracker-timeline {
  margin: 2.5rem 0;
  position: relative;
}

.timeline-progress-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 4px;
  position: relative;
  margin: 0 2rem;
}

.timeline-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: -14px;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 120px;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: var(--transition-smooth);
}

.timeline-step.completed .step-circle {
  background: var(--brand-green);
  color: #ffffff;
}

.timeline-step.active .step-circle {
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(21, 101, 224, 0.2);
}

.step-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--foreground);
}

.step-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

.status-callout {
  padding: 1.5rem;
  border-radius: 14px;
  margin: 2rem 0;
  line-height: 1.6;
}

.status-callout.pending {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  color: #92400e;
}

.status-callout.reviewing {
  background: #e0f2fe;
  border-left: 4px solid #0284c7;
  color: #0369a1;
}

.status-callout.approved {
  background: #dcfce7;
  border-left: 4px solid #16a34a;
  color: #15803d;
}

.status-callout.rejected {
  background: #fee2e2;
  border-left: 4px solid #dc2626;
  color: #991b1b;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Responsive Overrides for Portal, Receipts & Tracker
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .subpage-content {
    padding: 2.5rem 0 4rem;
  }

  .portal-card {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .tab-list {
    gap: 0.25rem;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
  }

  .tab-btn {
    font-size: 0.78rem;
    padding: 0.55rem 0.35rem;
    border-radius: 8px;
  }

  .application-standards {
    padding: 0.75rem 1rem;
    margin: -0.5rem 0 1.5rem;
  }

  .application-standards ol,
  .application-standards ul {
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.8rem;
  }

  .receipt-card {
    border-radius: 18px;
  }

  .receipt-header {
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }

  .receipt-brand {
    font-size: 1.15rem;
  }

  .receipt-body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
  }

  .receipt-footer {
    padding: 1rem 1.25rem;
    font-size: 0.84rem;
  }

  .tracker-timeline {
    margin: 1.75rem 0;
  }

  .timeline-progress-bar {
    margin: 0 1rem;
  }

  .timeline-steps {
    margin-top: -12px;
  }

  .timeline-step {
    width: auto;
    flex: 1;
  }

  .step-circle {
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
    border-width: 2px;
  }

  .step-label {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .step-date {
    font-size: 0.65rem;
  }

  .status-callout {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.92rem;
  }
}

/* Track page lookup help */
.track-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
}

.track-help-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

.track-help-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 0.6rem;
}

.track-help-card p + p,
.track-help-card ul + p {
  margin-top: 0.6rem;
}

.track-help-card ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.track-help-card li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.track-help-card li span {
  font-size: 0.82rem;
  color: #64748b;
}

.track-help-card code {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-blue);
  background: var(--brand-blue-light, #eef4ff);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
}

.track-help-card dt {
  font-weight: 700;
  color: var(--foreground);
}

.track-help-card dd {
  margin: 0 0 0.45rem;
}

.track-help-card a {
  color: var(--brand-blue);
  font-weight: 700;
}

/* Service page "jump to a service" chips */
.service-jump-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.service-jump-nav a {
  padding: 0.45rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.service-jump-nav a:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
}

@media (max-width: 640px) {
  /* One swipeable row on phones instead of several wrapped lines */
  .service-jump-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin: 0 -1rem 2rem;
    padding: 0 1rem 0.25rem;
    scrollbar-width: none;
  }

  .service-jump-nav a {
    flex-shrink: 0;
    white-space: nowrap;
  }
}
