/* ================================================================
   SonChat — Security Education (Pro Max / Liquid Glass)
   ================================================================ */

:root {
  --sec-blue: #3B82F6;
  --sec-teal: #10B981;
  --sec-gold: #F59E0B;
  --sec-bg: #F0F4F8;
  --glass-card: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --text-main: #1E293B;
  --text-sub: #64748B;
}

html,
body {
  height: auto;
  overflow: visible;
  overflow-x: hidden;
}

body {
  background: var(--sec-bg);
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-main);
  margin: 0;
}

/* ─── Background Mesh ────────────────────────────────────── */
.bg-mesh {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 10% 10%, #DBEAFE 0%, transparent 40%),
              radial-gradient(circle at 90% 90%, #D1FAE5 0%, transparent 40%);
  z-index: -1;
}

/* ─── Container ─────────────────────────────────────────── */
.security-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.edu-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.edu-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #1E293B 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.edu-subtitle {
  font-size: 18px;
  color: var(--text-sub);
  font-weight: 500;
}

/* ─── Bento Grid ────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.edu-card {
  background: var(--glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 40px;
  border-radius: 32px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.edu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

.card-wide { grid-column: span 2; }

/* ─── Components ────────────────────────────────────────── */
.edu-badge {
  display: inline-flex;
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--sec-blue);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  width: fit-content;
}

.edu-icon-wrap {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  color: var(--sec-blue);
}

.edu-section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.edu-text {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 24px;
}

.edu-text strong {
  color: var(--text-main);
  font-weight: 700;
}

.concept-box {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 24px;
  margin-top: auto;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.concept-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--sec-blue);
}

/* ─── Roadmap / Flow ────────────────────────────────────── */
.step-flow {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  gap: 20px;
}

.step-item {
  flex: 1;
  text-align: center;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--sec-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}

/* ─── Table ─────────────────────────────────────────────── */
.table-container {
  overflow-x: auto;
  margin-top: 24px;
}

.edu-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.edu-table th, .edu-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.edu-table th {
  font-weight: 700;
  color: var(--text-sub);
  font-size: 14px;
}

/* ─── Navigation ────────────────────────────────────────── */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 40px;
  transition: color 0.2s;
}

.btn-back:hover {
  color: var(--sec-blue);
}

/* ─── Animations ────────────────────────────────────────── */
.reveal {
  animation: reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 850px) {
  .bento-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; }
  .step-flow { flex-wrap: wrap; }
  .step-item { min-width: 120px; }
}
