﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8fafc;
}

/* Page-level Global Header & Navigation */
.page-global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 2px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.page-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.page-nav .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  font-size: 1.2rem;
  font-weight: 550;
  line-height: 1.3;
  color: #1e293b;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 0 rgba(14, 165, 233, 0.15);
  transition: all 0.25s ease;
  min-height: 44px;
  cursor: pointer;
}

.page-nav .nav-link:hover,
.page-nav .nav-link:focus-visible {
  color: #0e7490;
  border-color: rgba(14, 165, 233, 0.35);
  background: rgba(14, 165, 233, 0.12);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.25);
  text-decoration: none;
}

.page-nav .nav-link-action {
  background: rgba(255, 255, 255, 0.6);
  border-color: transparent;
  box-shadow: inset 0 0 0 0 rgba(14, 165, 233, 0.15);
}

@media (max-width: 880px) {
  .page-global-header {
    position: static !important;
    top: auto !important;
  }

  .page-nav {
    overflow-x: auto;
    padding: 8px 12px;
    justify-content: flex-start;
  }

  .page-nav .nav-link {
    flex: 0 0 auto;
    padding: 10px 16px;
    min-width: auto;
    font-size: 1rem;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .page-nav .nav-link {
    flex: 0 0 auto;
    min-width: auto;
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}


/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ef4444;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  border: none;
}

.back-to-top:hover {
  background: #dc2626;
}

/* Header */
.firstaid-header {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.main-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.main-subtitle {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.emergency-number {
  font-size: 1.5rem;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  padding: 10px 25px;
  border-radius: 25px;
  display: inline-block;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Alert Banner */
.alert-banner {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 25px;
}

.alert-text {
  color: #92400e;
}

.alert-text h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

/* Section */
.section {
  background: white;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-title {
  font-size: 1.8rem;
  color: #1e293b;
  margin-bottom: 20px;
  border-left: 4px solid #ef4444;
  padding-left: 15px;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.info-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 15px;
  border-left: 3px solid #ef4444;
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.info-card h3 {
  font-size: 1.1rem;
  color: #1e293b;
  margin-bottom: 8px;
}

.info-card p, .info-card ul {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.info-card ul {
  margin-left: 18px;
  margin-top: 8px;
}

/* Procedure Card */
.procedure-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 20px;
  border-top: 3px solid #ef4444;
  margin-bottom: 15px;
}

.procedure-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.procedure-icon {
  font-size: 1.5rem;
}

.steps-list {
  list-style: none;
}

.steps-list li {
  padding: 8px 10px 8px 30px;
  position: relative;
  margin-bottom: 6px;
  background: white;
  border-radius: 4px;
  border-left: 2px solid #ef4444;
  font-size: 0.9rem;
}

.steps-list li::before {
  content: attr(data-step);
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Warning/Success Boxes */
.warning-box {
  background: #fee2e2;
  border-left: 3px solid #dc2626;
  padding: 12px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 0.9rem;
}

.warning-box h4 {
  color: #991b1b;
  margin-bottom: 5px;
  font-size: 1rem;
}

.success-box {
  background: #dcfce7;
  border-left: 3px solid #22c55e;
  padding: 12px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 0.9rem;
}

.success-box h4 {
  color: #166534;
  margin-bottom: 5px;
  font-size: 1rem;
}

/* Checklist */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px;
  background: #f8fafc;
  border-radius: 4px;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.checklist-item input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checklist-item label {
  cursor: pointer;
  flex: 1;
}

/* Print Card */
.print-card {
  border: 2px dashed #cbd5e1;
  padding: 30px;
  border-radius: 12px;
  background: white;
  margin: 20px 0;
}

.print-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.print-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* CTA */
.cta-section {
  background: #1e293b;
  color: white;
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 25px;
}

.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.cta-btn {
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 5px;
  font-size: 0.95rem;
}

.cta-btn-primary {
  background: #ef4444;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .main-title {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 20px 15px;
  }
}

@media print {
  .back-to-top, .cta-section, .print-btn {
    display: none !important;
  }
}

/* Language switching */
.lang-content {
  display: none;
}
.lang-content.active {
  display: block;
}
.lang-content.inline {
  display: inline;
}
.lang-content.inline.active {
  display: inline;
}