/* ===== EXAMQUICK.IN — SHARED STYLES (Mobile-First) ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1a56db;
  --blue-dark: #1341b0;
  --blue-light: #e8f0fe;
  --blue-mid: #3b82f6;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --green: #059669;
  --green-light: #d1fae5;
  --red: #dc2626;
  --red-light: #fee2e2;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(26,86,219,0.10);
  --shadow-md: 0 4px 24px rgba(26,86,219,0.14);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  padding-bottom: 72px; /* space for mobile nav */
}

/* ===== MOBILE NAV (default: shown) ===== */
.mobile-nav {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.mobile-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  text-decoration: none;
  color: var(--gray-600);
  font-size: 10px;
  gap: 3px;
  transition: color 0.2s;
}
.mobile-nav a.active, .mobile-nav a:hover { color: var(--blue); }
.mobile-nav a svg { width: 22px; height: 22px; }

/* ===== DESKTOP NAV (default: hidden) ===== */
.desktop-nav {
  display: none;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--blue);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(26,86,219,0.3);
}
.site-header .logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.site-header .logo span { color: #93c5fd; }

/* ===== MAIN CONTENT ===== */
.main { padding: 16px; max-width: 900px; margin: 0 auto; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  margin-bottom: 20px;
  text-align: center;
}
.hero h1 { font-size: 1.6rem; font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.hero p { font-size: 0.95rem; opacity: 0.9; margin-bottom: 16px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.card h2 { font-size: 1.1rem; color: var(--blue); margin-bottom: 10px; font-weight: 700; }
.card h3 { font-size: 1rem; color: var(--gray-800); margin-bottom: 8px; font-weight: 600; }

/* ===== QUICK LINKS GRID ===== */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.quick-link {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--gray-800);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.quick-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quick-link svg { width: 28px; height: 28px; color: var(--blue); }
.quick-link span { font-size: 0.82rem; font-weight: 600; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-full { display: block; width: 100%; text-align: center; }

/* ===== ALERT BOXES ===== */
.alert {
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.alert-blue { background: var(--blue-light); border-left: 4px solid var(--blue); color: var(--blue-dark); }
.alert-green { background: var(--green-light); border-left: 4px solid var(--green); color: #065f46; }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; margin: 12px 0; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th { background: var(--blue); color: var(--white); padding: 10px 12px; text-align: left; }
td { padding: 9px 12px; border-bottom: 1px solid var(--gray-200); }
tr:nth-child(even) td { background: var(--gray-50); }

/* ===== LIST STYLES ===== */
ul.check-list { list-style: none; }
ul.check-list li { padding: 6px 0; padding-left: 24px; position: relative; font-size: 0.92rem; }
ul.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-light);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--gray-800);
  color: var(--gray-300);
  text-align: center;
  padding: 20px 16px;
  font-size: 0.82rem;
  margin-top: 30px;
}
.site-footer a { color: var(--blue-mid); text-decoration: none; }

/* ===== CALCULATOR SPECIFIC ===== */
.calc-result { border-radius: var(--radius); padding: 20px; text-align: center; margin-top: 16px; display: none; }
.calc-result.pass { background: var(--green-light); border: 2px solid var(--green); }
.calc-result.fail { background: var(--red-light); border: 2px solid var(--red); }
.calc-result .result-label { font-size: 1.8rem; font-weight: 800; }
.calc-result.pass .result-label { color: var(--green); }
.calc-result.fail .result-label { color: var(--red); }
.calc-input { width: 100%; padding: 12px; border: 1.5px solid var(--gray-300); border-radius: 8px; font-size: 1rem; margin-top: 6px; }
.calc-input:focus { outline: none; border-color: var(--blue); }
.form-group { margin-bottom: 16px; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--gray-700); display: block; }

/* ===== DESKTOP OVERRIDES ===== */
@media (min-width: 701px) {
  body { padding-bottom: 0; }

  .mobile-nav { display: none; }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .desktop-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s;
  }
  .desktop-nav a:hover { background: rgba(255,255,255,0.15); color: white; }
  .desktop-nav a.calc-btn {
    background: var(--white);
    color: var(--blue);
    font-weight: 700;
    padding: 6px 14px;
  }
  .desktop-nav a.calc-btn:hover { background: var(--blue-light); }

  .main { padding: 28px 24px; }
  .hero { padding: 48px 40px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.05rem; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 24px; }
}