/* safetyacademy.css
   Training & Learning Focused — bright, friendly, modern
*/
:root{
  --bg: #ffffff;
  --muted: #6b7280;
  --primary: #0ea5e9; /* bright cyan-blue */
  --accent: #06b6d4;
  --card: #fbfdff;
  --shadow: rgba(16,24,40,0.06);
  --radius: 12px;
  --max-width: 1100px;
  --glass: rgba(255,255,255,0.7);
  --success: #10b981;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:#0f172a;
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  -webkit-tap-highlight-color:transparent;
}

/* Layout container */
.container{
  width:90%;
  max-width:var(--max-width);
  margin:0 auto;
}

/* Header */
.header{
  position:sticky;top:0;z-index:60;
  backdrop-filter: blur(6px);
  background:linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border-bottom:1px solid #eef2f7;
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;padding:18px 0;
}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.brand img{height:52px;width:52px;object-fit:contain;border-radius:10%}
.brand h1{font-size:15px;font-weight:700;letter-spacing:0.2px}
.brand p{font-size:12px;color:var(--muted);margin-top:-4px}

/* Desktop nav */
.nav{
  display:flex;align-items:center;gap:18px;
}
.nav a{font-weight:600;color:#0f172a;text-decoration:none;padding:8px;border-radius:8px;transition:all .18s}
.nav a:hover{color:var(--primary);transform:translateY(-1px)}
.cta{background:linear-gradient(90deg,var(--primary),var(--accent));color:#fff;padding:9px 14px;border-radius:10px;box-shadow:0 6px 18px rgba(6,182,212,0.12);font-weight:700}

/* Mobile menu button */
.mobile-toggle{display:none;background:transparent;border:0;padding:8px;border-radius:8px}

/* Hero */
.hero{
  padding:64px 0;
  display:grid;
  grid-template-columns:1fr 420px;
  gap:36px;align-items:center;
}
@media (max-width:980px){
  .hero{grid-template-columns:1fr; padding:40px 0}
  .nav{display:none}
  .mobile-toggle{display:inline-flex}
}

/* Hero content */
.hero h2{font-size:36px;line-height:1.02;margin-bottom:12px}
.hero p{color:var(--muted);font-size:16px;margin-bottom:18px}
.hero-ctas{display:flex;gap:12px;margin-top:8px}
.btn{display:inline-flex;align-items:center;gap:10px;padding:12px 18px;border-radius:10px;font-weight:700;text-decoration:none;border:1px solid transparent}
.btn-primary{background:linear-gradient(90deg,var(--primary),var(--accent));color:white;box-shadow:0 10px 30px rgba(14,165,233,0.12)}
.btn-ghost{background:transparent;border:1px solid #e6eef2;color:var(--primary)}

/* Card / Enrollment panel */
.panel{
  background:var(--card);
  border-radius:14px;padding:20px;
  border:1px solid #eef6fb;
  box-shadow:0 10px 30px var(--shadow);
}
.form-row{display:flex;gap:10px}
.form-row input, .panel input, .panel select, .panel textarea{
  width:100%;padding:10px;border-radius:8px;border:1px solid #e6eef2;background:white;font-size:14px;
}
.panel .small{font-size:13px;color:var(--muted);margin-top:6px}

/* Featured courses grid */
.section{
  padding:56px 0;
}
.section h3{font-size:22px;margin-bottom:14px}
.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media (max-width:980px){ .course-grid{grid-template-columns:1fr} }

/* Course card */
.course{
  background:white;border-radius:12px;padding:18px;border:1px solid #eef2f7;box-shadow:0 6px 20px rgba(14,165,233,0.03);
}
.course h4{font-size:16px;margin-bottom:6px}
.course p{color:var(--muted);font-size:14px;margin-bottom:10px}
.price{font-weight:800;color:var(--primary);font-size:20px}

/* Why choose section */
.why{display:grid;grid-template-columns:2fr 1fr;gap:20px;align-items:center;padding:56px 0;background:linear-gradient(180deg,#fbfeff,#ffffff)}
@media (max-width:980px){ .why{grid-template-columns:1fr} }

.features{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.feature{background:white;padding:16px;border-radius:12px;border:1px solid #eef6fb}
.feature h5{font-size:15px;margin-bottom:8px}

/* Instructors */
.instructors{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media (max-width:980px){ .instructors{grid-template-columns:1fr} }
.instructor{background:white;padding:16px;border-radius:12px;text-align:center;border:1px solid #eef6fb}
.avatar{width:84px;height:84px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#f0fbfe;color:var(--primary);font-weight:700;margin-bottom:10px}

/* FAQ */
.faq{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.faq details{background:white;padding:14px;border-radius:10px;border:1px solid #eef6fb}

/* Contact */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
@media (max-width:980px){ .contact-grid{grid-template-columns:1fr} }

/* Footer */
.footer{
  padding:36px 0;border-top:1px solid #f1f5f9;background:linear-gradient(180deg,#ffffff,#fbfdff)
}
.footer .legal{color:var(--muted);font-size:14px}

/* Small utilities */
.kicker{display:inline-block;padding:6px 10px;background:#ecfeff;border-radius:999px;color:var(--primary);font-weight:700;font-size:12px;margin-bottom:12px}
.center{text-align:center}
.muted{color:var(--muted);font-size:14px}

/* Smooth anchor scroll offset helper */
:target::before{content:"";display:block;height:88px;margin-top:-88px}

/* Simple animation */
.fade-up{opacity:0;transform:translateY(10px);transition:all .6s cubic-bezier(.16,1,.3,1)}
.fade-up.visible{opacity:1;transform:none}

/* small screens */
@media (max-width:520px){
  .brand h1{font-size:16px}
  .hero h2{font-size:26px}
  .mobile-only{display:inline}
}

/* --- additions for application + outlines + small ghost buttons --- */
.small-btn{padding:8px 12px;font-size:14px;border-radius:8px}
.btn-ghost.small-btn{background:transparent;border:1px solid #e6eef2;color:var(--primary);font-weight:700}
.panel h2, .panel h3{margin-bottom:8px}
@media (max-width:980px){
  /* stack the two-column layouts on small screens */
  .section > div[style*="grid-template-columns:2fr 1fr"]{
    grid-template-columns:1fr !important;
  }
}

/* Login Card Style (matches screenshot design) */
.login-card {
  background: #ffffff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  max-width: 460px;
}

/* Title */
.login-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Subtitle text */
.muted-text {
  color: #5e6a75;
  margin-bottom: 18px;
}

/* Large blue login button */
.btn-primary-full {
  background: #00a9e0;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.btn-primary-full:hover {
  background: #0096c8;
}

/* "Not signed in" status */
.status-text {
  margin: 12px 0;
  font-size: 13px;
  color: #6b6b6b;
}

/* Underbuttons row */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

/* Outline button (Create account) */
.btn-outline {
  flex: 1;
  padding: 10px;
  font-weight: 600;
  border: 1px solid #dce3e8;
  border-radius: 8px;
  background: #fff;
  color: #0093dd;
  cursor: pointer;
}
.btn-outline:hover {
  background: #f4f9ff;
}

/* Purple text button (Go to Dashboard) */
.btn-plain {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  background: #f7f2ff;
  color: #7a3af9;
  border-radius: 8px;
  border: 1px solid #e4d8ff;
}
.btn-plain:hover {
  background: #ede4ff;
}
