/* CNG Technology Guide - Styles
   Institutional branding for Colegio Nueva Granada */

:root {
  /* CNG Institutional Colors */
  --cng-primary: #214377;
  --cng-secondary: #689ac7;
  --cng-navy: #1a3a6b;
  --cng-blue: #2d5d9e;
  --cng-cyan: #53b7e8;
  --cng-sky: #00adee;
  --cng-gray: #929496;
  --cng-black: #000000;
  /* UI Colors */
  --white: #FFFFFF;
  --light-bg: #f4f7fa;
  --card-bg: #ffffff;
  --text-dark: #1a3a6b;
  --text-muted: #5a6b7d;
  --border-light: #e1e8ef;
  /* Shadows */
  --shadow-soft: 0 2px 12px rgba(33,67,119,0.08);
  --shadow-medium: 0 8px 30px rgba(33,67,119,0.12);
  --shadow-strong: 0 12px 40px rgba(33,67,119,0.18);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  /* Fonts */
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Open Sans', -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Top Contact Bar */
.top-bar {
  background: var(--cng-navy);
  color: white;
  padding: 8px 24px;
  font-size: 13px;
  display: flex;
  justify-content: center;
  gap: 32px;
}
.top-bar a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.top-bar a:hover { opacity: 1; }

/* Header */
.header {
  background: white;
  padding: 16px 24px;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--cng-primary);
}
.logo-subtitle {
  font-size: 11px;
  color: var(--cng-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Icon Navigation */
.icon-nav {
  display: flex;
  gap: 8px;
}
.icon-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  border-radius: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  color: var(--text-muted);
}
.icon-nav-btn:hover {
  background: rgba(104,154,199,0.15);
  color: var(--cng-primary);
}
.icon-nav-btn.active {
  background: rgba(104,154,199,0.15);
  color: var(--cng-primary);
}
.icon-nav-btn .nav-icon { font-size: 24px; }
.icon-nav-btn .nav-label { font-size: 11px; font-weight: 600; }

/* Hero Section */
.hero {
  padding: 60px 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--cng-primary);
  line-height: 1.3;
  margin-bottom: 16px;
}
.hero-content h1 span { color: var(--cng-cyan); }
.hero-content p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}
.btn-primary {
  background: var(--cng-primary);
  color: white;
}
.btn-primary:hover {
  background: var(--cng-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}
.btn-secondary {
  background: white;
  color: var(--cng-primary);
  border: 2px solid var(--cng-secondary);
}
.btn-secondary:hover {
  background: var(--cng-primary);
  color: white;
  border-color: var(--cng-primary);
}

/* Hero Visual - Image */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 500px;
}
.hero-image {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow-medium);
  object-fit: cover;
}

/* Category Grid Section */
.categories-section {
  padding: 40px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--cng-primary);
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
}

/* Category Cards - Institutional Style */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.category-card {
  background: white;
  border-radius: 16px;
  padding: 24px 16px;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  text-align: center;
  border: 2px solid var(--border-light);
  position: relative;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: var(--cng-secondary);
}
.category-card.c1 .category-icon { background: linear-gradient(135deg, #214377, #2d5d9e); }
.category-card.c2 .category-icon { background: linear-gradient(135deg, #2d5d9e, #689ac7); }
.category-card.c3 .category-icon { background: linear-gradient(135deg, #1a3a6b, #214377); }
.category-card.c4 .category-icon { background: linear-gradient(135deg, #53b7e8, #00adee); }
.category-card.c5 .category-icon { background: linear-gradient(135deg, #689ac7, #53b7e8); }
.category-card.c6 .category-icon { background: linear-gradient(135deg, #214377, #1a3a6b); }
.category-card.c7 .category-icon { background: linear-gradient(135deg, #00adee, #53b7e8); }
.category-card.c8 .category-icon { background: linear-gradient(135deg, #2d5d9e, #214377); }
.category-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--cng-primary);
  box-shadow: var(--shadow-soft);
}
.category-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--cng-primary);
  margin-bottom: 4px;
}
.category-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Modal / Detail Panel */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: white;
  border-radius: 24px;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s var(--transition-smooth);
}
.modal-overlay.open .modal-content {
  transform: scale(1) translateY(0);
}
.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.modal-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cng-primary), var(--cng-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.modal-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--cng-primary);
}
.modal-header p {
  font-size: 14px;
  color: var(--text-muted);
}
.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: var(--light-bg);
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s;
}
.modal-close:hover {
  background: var(--cng-primary);
  color: white;
}
.modal-body {
  padding: 24px 32px;
  overflow-y: auto;
  max-height: calc(85vh - 100px);
}

/* Accordion Items */
.accordion-item {
  background: var(--light-bg);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid var(--border-light);
}
.accordion-item:hover {
  background: rgba(104,154,199,0.1);
  border-color: var(--cng-secondary);
}
.accordion-header {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--cng-primary);
}
.accordion-toggle {
  font-size: 18px;
  color: var(--cng-secondary);
  transition: transform 0.3s;
}
.accordion-item.open .accordion-toggle {
  transform: rotate(180deg);
}
.accordion-body {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
}
.accordion-item.open .accordion-body {
  padding: 0 24px 20px;
  max-height: 500px;
}
.accordion-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Data Table */
.table-container {
  overflow-x: auto;
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow-soft);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cng-primary);
  background: var(--light-bg);
  border-bottom: 2px solid var(--cng-secondary);
}
.data-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}
.data-table tr:hover td {
  background: rgba(104,154,199,0.05);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}
.status-badge.allow {
  background: #D1FAE5;
  color: #059669;
}
.status-badge.block {
  background: #FEE2E2;
  color: #DC2626;
}

/* Grouped Table */
.group-header {
  background: linear-gradient(135deg, var(--cng-primary), var(--cng-blue));
  color: white;
}
.group-header td {
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  color: white !important;
  border-bottom: none;
}
.data-table tr.group-header:hover td {
  background: transparent;
}

/* Chatbot Trigger */
.chat-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cng-primary) 0%, var(--cng-blue) 100%);
  border: none;
  cursor: pointer;
  color: white;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(33,67,119,0.35);
  z-index: 1500;
  transition: all 0.3s var(--transition-smooth);
}
.chat-trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(33,67,119,0.45);
}

/* Chat Window */
.chat-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(33,67,119,0.2);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--transition-smooth);
}
.chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}
.chat-header {
  background: linear-gradient(135deg, var(--cng-primary) 0%, var(--cng-blue) 100%);
  padding: 18px 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.chat-header h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
}
.chat-header p {
  font-size: 12px;
  opacity: 0.8;
}
.chat-close {
  background: rgba(255,255,255,0.2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s;
}
.chat-close:hover {
  background: rgba(255,255,255,0.3);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--light-bg);
}
.message {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.message.user {
  background: var(--cng-primary);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 6px;
}
.message.bot {
  background: white;
  color: var(--text-dark);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-soft);
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  background: white;
  border-radius: 20px;
  width: fit-content;
  box-shadow: var(--shadow-soft);
}
.typing-indicator span {
  width: 8px;
  height: 8px;
  background: var(--cng-secondary);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Streaming cursor animation */
.message.bot.streaming::after {
  content: '▊';
  animation: blink 0.7s infinite;
  color: var(--cng-primary);
  margin-left: 2px;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Cached response indicator */
.message.cached {
  position: relative;
}
.cached-indicator {
  display: inline-block;
  font-size: 14px;
  margin-right: 6px;
  color: #f59e0b;
  animation: flash 0.5s ease-out;
}
@keyframes flash {
  0% { opacity: 0; transform: scale(1.5); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* Chat Input Area */
.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
  background: white;
}
.chat-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border-light);
  border-radius: 50px;
  font-size: 14px;
  font-family: var(--font-body);
  transition: all 0.3s;
}
.chat-input:focus {
  outline: none;
  border-color: var(--cng-secondary);
}
.chat-send {
  width: 48px;
  height: 48px;
  background: var(--cng-primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
}
.chat-send:hover {
  background: var(--cng-navy);
  transform: scale(1.05);
}
.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--light-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}
.loading-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
  box-shadow: var(--shadow-medium);
}
.loading-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--cng-primary);
}
.loading-subtext {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}
.loading-bar {
  width: 200px;
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  margin-top: 32px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cng-primary) 0%, var(--cng-secondary) 50%, var(--cng-cyan) 100%);
  border-radius: 3px;
  animation: loadingBar 1.5s ease-in-out infinite;
}
@keyframes loadingBar {
  0% { width: 0%; }
  50% { width: 80%; }
  100% { width: 100%; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-content h1 { font-size: 32px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .hero-image-container { max-width: 400px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .top-bar { flex-direction: column; gap: 8px; padding: 12px; }
  .icon-nav { display: none; }
  .hero { padding: 40px 20px; }
  .hero-content h1 { font-size: 28px; }
  .hero-image-container { max-width: 320px; }
  .hero-image { border-radius: 16px; }
  .categories-section { padding: 24px 16px 60px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .category-card { padding: 20px 16px; }
  .category-icon { width: 60px; height: 60px; font-size: 28px; }
  .modal-content { border-radius: 20px; max-height: 90vh; }
  .modal-header { padding: 20px; }
  .modal-body { padding: 20px; }
  .chat-window { width: calc(100% - 32px); right: 16px; bottom: 96px; height: 70vh; border-radius: 20px; }
  .chat-trigger { width: 56px; height: 56px; bottom: 16px; right: 16px; font-size: 24px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--cng-secondary); border-radius: 3px; }

/* ============ GRADE 6 PROTECTION SECTION ============ */
.grade6-section {
  padding: 60px 24px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fc 50%, #f5f9ff 100%);
  position: relative;
  overflow: hidden;
}
.grade6-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(104, 154, 199, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.grade6-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}
.grade6-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--cng-primary) 0%, var(--cng-secondary) 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(33, 67, 119, 0.3);
}
.badge-icon { font-size: 18px; }
.grade6-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--cng-primary);
  margin-bottom: 12px;
}
.grade6-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* Tab Navigation */
.grade6-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.grade6-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--cng-secondary);
  border-radius: 30px;
  background: white;
  color: var(--cng-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.grade6-tab:hover {
  background: var(--cng-secondary);
  color: white;
  transform: translateY(-2px);
}
.grade6-tab.active {
  background: var(--cng-primary);
  border-color: var(--cng-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(33, 67, 119, 0.3);
}
.tab-icon { font-size: 18px; }
.tab-label { font-size: 14px; }

/* Protection Flow Diagram */
.protection-flow {
  max-width: 1200px;
  margin: 0 auto;
}
.flow-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding: 20px;
}
.flow-node {
  background: white;
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  min-width: 160px;
  max-width: 180px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.5s ease;
  position: relative;
}
.flow-node.active {
  border-color: var(--cng-primary);
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(33, 67, 119, 0.2);
}
.flow-node.school { border-top: 4px solid #4CAF50; }
.flow-node.hub { border-top: 4px solid var(--cng-primary); }
.flow-node.home { border-top: 4px solid #FF9800; }
.flow-node.parent { border-top: 4px solid #9C27B0; }

.node-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--light-bg) 0%, #e8f4fc 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
}
.node-title {
  font-weight: 700;
  color: var(--cng-primary);
  font-size: 16px;
  margin-bottom: 4px;
}
.node-platform {
  font-size: 13px;
  color: var(--cng-secondary);
  font-weight: 600;
  margin-bottom: 12px;
}
.node-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.node-features span {
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--light-bg);
  padding: 4px 10px;
  border-radius: 12px;
}

/* Flow Arrows */
.flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.5;
  transition: all 0.5s ease;
}
.flow-arrow.active {
  opacity: 1;
  transform: scale(1.1);
}
.arrow-svg {
  width: 50px;
  height: 25px;
}
.arrow-label {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 4px;
}

/* Flow Benefits */
.flow-benefits {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.benefit-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.benefit-icon {
  font-size: 18px;
  color: #4CAF50;
}
.benefit-text {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Features Grid */
.features-grid {
  max-width: 900px;
  margin: 0 auto;
}
.features-intro {
  text-align: center;
  margin-bottom: 32px;
}
.platform-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}
.classwize-logo {
  background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
  color: white;
}
.qustodio-logo {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: white;
}
.parent-logo {
  background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
  color: white;
}
.logo-icon { font-size: 24px; }
.features-intro p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Feature Cards */
.features-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.feature-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  padding: 20px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
}
.feature-card:hover {
  border-color: var(--cng-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.feature-card.expanded {
  border-color: var(--cng-primary);
  background: linear-gradient(135deg, #f8fbff 0%, white 100%);
}
.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--light-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.feature-content { flex: 1; }
.feature-title {
  font-weight: 600;
  color: var(--cng-primary);
  font-size: 15px;
  margin-bottom: 4px;
}
.feature-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.feature-expand {
  width: 28px;
  height: 28px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--cng-primary);
  flex-shrink: 0;
}

/* Teacher Note */
.teacher-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  padding: 16px 24px;
  border-radius: 12px;
  border-left: 4px solid #4CAF50;
}
.note-icon { font-size: 20px; }
.note-text {
  font-size: 14px;
  color: #2E7D32;
  font-weight: 500;
}

/* Parent CTA */
.parent-cta {
  text-align: center;
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  padding: 32px;
  border-radius: 20px;
  border: 2px solid #FF9800;
}
.parent-cta h4 {
  font-size: 20px;
  color: #E65100;
  margin-bottom: 8px;
}
.parent-cta p {
  color: #F57C00;
  margin-bottom: 20px;
}
.app-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.app-btn.ios {
  background: #000;
  color: white;
}
.app-btn.android {
  background: #4CAF50;
  color: white;
}
.app-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Parent Hub Section */
.parent-hub-section {
  max-width: 900px;
  margin: 0 auto;
}
.hub-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.hub-card {
  background: white;
  padding: 28px 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.hub-card:hover {
  border-color: #9C27B0;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(156, 39, 176, 0.15);
}
.hub-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}
.hub-card h4 {
  font-size: 16px;
  color: var(--cng-primary);
  margin-bottom: 8px;
}
.hub-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Privacy Note */
.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  padding: 24px;
  border-radius: 16px;
  border-left: 4px solid var(--cng-primary);
}
.privacy-icon {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.privacy-content h4 {
  font-size: 16px;
  color: var(--cng-primary);
  margin-bottom: 6px;
}
.privacy-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Grade 6 Responsive */
@media (max-width: 900px) {
  .flow-container {
    flex-direction: column;
    gap: 20px;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
  .flow-arrow.active {
    transform: rotate(90deg) scale(1.1);
  }
  .flow-node {
    min-width: 200px;
    max-width: 280px;
  }
}
@media (max-width: 600px) {
  .grade6-section { padding: 40px 16px; }
  .grade6-title { font-size: 28px; }
  .grade6-tabs { gap: 6px; }
  .grade6-tab { padding: 10px 16px; font-size: 13px; }
  .tab-label { display: none; }
  .features-cards { grid-template-columns: 1fr; }
  .hub-features { grid-template-columns: 1fr; }
  .benefit-card { width: 100%; justify-content: center; }
}
