/* ==========================================================================
   Federal Ministry of Education (FME) Unity Schools Posting Portal 2026
   Senior UI/UX Design System & Style Suite
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - FME National Emerald & Gold System */
  --primary-dark: #061a12;
  --primary-navy: #0b2e21;
  --primary-emerald: #10b981;
  --primary-emerald-dark: #059669;
  --primary-emerald-light: #34d399;
  
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-gold-dark: #d97706;
  
  --bg-slate: #0b1512;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8fafc;
  
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border-light: #e2e8f0;
  --border-emerald: rgba(16, 185, 129, 0.2);
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 35px -10px rgba(6, 26, 18, 0.25);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: #06150f;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* Header & Top Bar */
.top-bar {
  background: rgba(6, 26, 18, 0.95);
  color: var(--text-white);
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-live {
  background: rgba(16, 185, 129, 0.2);
  color: var(--primary-emerald-light);
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.75rem;
  border: 1px solid rgba(16, 185, 129, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-live::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--primary-emerald-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-emerald-light);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Navbar */
.navbar {
  background: rgba(11, 46, 33, 0.85);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  padding: 14px 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.brand-text h2 {
  font-size: 1.15rem;
  color: var(--text-white);
  letter-spacing: -0.3px;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--primary-emerald-light);
  font-weight: 500;

}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-emerald-light);
}

.btn-portal-login {
  background: linear-gradient(135deg, var(--primary-emerald), var(--primary-emerald-dark));
  color: var(--text-white);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-portal-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 60%),
              linear-gradient(180deg, #061a12 0%, #082419 100%);
  padding: 70px 0 90px;
  overflow: hidden;
  color: var(--text-white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.text-highlight {
  background: linear-gradient(135deg, #6ee7b7, #10b981, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 30px;
  max-width: 520px;
}

.hero-stats-mini {
  display: flex;
  gap: 24px;
  margin-top: 40px;
}

.stat-item-mini {
  border-left: 3px solid var(--primary-emerald);
  padding-left: 14px;
}

.stat-item-mini h3 {
  font-size: 1.5rem;
  color: var(--text-white);
}

.stat-item-mini p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
}

/* Checker Form Card (Glassmorphism) */
.checker-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-dark);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.checker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-emerald), var(--accent-gold));
}

.checker-header {
  margin-bottom: 24px;
}

.checker-header h3 {
  font-size: 1.5rem;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.checker-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.input-wrapper i {
  position: absolute;
  left: 16px;
  color: #64748b;
  font-size: 1.1rem;
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--primary-navy);
  transition: var(--transition);
  background: #f8fafc;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-emerald);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.btn-check-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary-navy), #061a12);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(6, 26, 18, 0.3);
  transition: var(--transition);
}

.btn-check-submit:hover {
  background: linear-gradient(135deg, var(--primary-emerald-dark), var(--primary-navy));
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.4);
}

/* Demo Preset Badge */
.demo-preset-box {
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-preset-box span {
  font-size: 0.8rem;
  color: var(--primary-navy);
  font-weight: 600;
}

.btn-preset {
  background: var(--primary-emerald);
  color: var(--text-white);
  border: none;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-preset:hover {
  background: var(--primary-emerald-dark);
}

/* Features Grid */
.features-section {
  padding: 80px 0;
  background: #ffffff;
}

.section-title {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary-navy);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-emerald);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(245, 158, 11, 0.15));
  color: var(--primary-emerald-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ Accordion Section */
.faq-section {
  padding: 80px 0;
  background: #f8fafc;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-header {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--primary-navy);
}

.accordion-header:hover {
  color: var(--primary-emerald-dark);
}

.accordion-body {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: none;
  border-top: 1px solid #f1f5f9;
  margin-top: 10px;
}

.accordion-item.active .accordion-body {
  display: block;
}

/* Official Placement Slip View (`posting_result.html`) */
.slip-view-section {
  padding: 50px 0 80px;
  background: #082419;
  min-height: 100vh;
}

.slip-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.btn-action-back {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-action-print {
  background: var(--accent-gold);
  color: var(--primary-dark);
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-action-print:hover {
  background: var(--accent-gold-light);
  transform: translateY(-2px);
}

/* Official Document Card */
.slip-document-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  color: #1e293b;
  border: 3px double #cbd5e1;
}

.watermark-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.04;
  pointer-events: none;
  width: 500px;
}

.slip-header {
  text-align: center;
  border-bottom: 2px solid var(--primary-navy);
  padding-bottom: 20px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slip-header-logo {
  height: 80px;
}

.slip-header-title h2 {
  font-size: 1.6rem;
  color: var(--primary-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slip-header-title h4 {
  font-size: 1rem;
  color: var(--primary-emerald-dark);
  margin-top: 4px;
}

.status-badge-placed {
  background: #ecfdf5;
  color: #047857;
  border: 2px solid #a7f3d0;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.slip-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th, .info-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.info-table th {
  text-align: left;
  color: #64748b;
  width: 35%;
  font-weight: 600;
  background: #f8fafc;
}

.info-table td {
  font-weight: 700;
  color: #0f172a;
}

/* Scores Grid */
.scores-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 30px;
}

.scores-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.scores-table th {
  background: var(--primary-navy);
  color: var(--text-white);
  padding: 10px 14px;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.scores-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  font-weight: 700;
}

/* Placement Result Highlight Card */
.placement-box {
  background: linear-gradient(135deg, #061a12, #0b2e21);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 8px solid var(--accent-gold);
}

.placement-details h3 {
  font-size: 1.4rem;
  color: var(--accent-gold-light);
  margin-bottom: 6px;
}

.placement-details p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.placement-tag {
  background: rgba(255, 255, 255, 0.15);
  color: var(--primary-emerald-light);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* QR Code Section */
.qr-container {
  text-align: center;
  padding: 14px;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
}

.qr-container img {
  width: 130px;
  height: 130px;
}

/* Footer */
.footer {
  background: #04100b;
  color: #94a3b8;
  padding: 50px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--text-white);
  margin-bottom: 16px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}

/* Print Rules */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .top-bar, .navbar, .slip-action-bar, .footer {
    display: none !important;
  }
  .slip-view-section {
    padding: 0;
    background: none;
  }
  .slip-document-card {
    box-shadow: none;
    border: none;
    padding: 0;
  }
}
