/* ===== KILL ANY HOSTING-INJECTED POPUPS ===== */
[class*="cookie"], [id*="cookie"],
[class*="consent"], [id*="consent"],
[class*="gdpr"], [id*="gdpr"],
[class*="cc-"], [id*="cc-"],
[class*="CookieConsent"], [id*="CookieConsent"],
[class*="cookie-banner"], [id*="cookie-banner"],
[class*="cookie_notice"], [id*="cookie_notice"],
[class*="cookie-notice"], [id*="cookie-notice"],
[class*="notice-banner"], [id*="notice-banner"],
[class*="popup"], [id*="popup"],
[class*="overlay"]:not(.hero *), [id*="overlay"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  z-index: -9999 !important;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== AUTH BUTTON & PANEL ===== */
.btn-auth {
  padding: 8px 22px; font-size: 0.85rem; font-weight: 600;
  background: transparent; color: #00e5ff;
  border: 1px solid rgba(0,229,255,0.3); border-radius: 100px;
  cursor: pointer; transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif; margin-left: 16px;
}
.btn-auth:hover { background: rgba(0,229,255,0.08); border-color: #00e5ff; }
.btn-auth.logged-in { color: #5ef0ff; border-color: #5ef0ff; }

.dk-auth-screen {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
}
.dk-modal { position: fixed; inset: 0; display:flex; align-items:center; justify-content:center; background: rgba(7,7,13,0.6); z-index:20000 }
.dk-modal[hidden] { display:none }
.dk-modal-panel { background: #0e0e18; border:1px solid rgba(255,255,255,0.06); border-radius:16px; padding:20px; width:100%; max-width:480px; box-shadow: 0 24px 80px rgba(0,0,0,0.6); position:relative }
.dk-modal-panel h3 { margin-bottom:10px; color:#fff }
.dk-modal-close { position:absolute; right:12px; top:8px; background:none; border:none; color:#9aa0b3; font-size:1.6rem; cursor:pointer }
.dk-modal .form-group { margin-bottom:10px }
.dk-modal .form-group label { display:block; margin-bottom:6px; color:#9aa0b3 }
.dk-modal .form-group input, .dk-modal .form-group select { width:100%; padding:10px 12px; border-radius:8px; border:1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); color:#e6eef8 }
.dk-modal .form-error { color:#ff6b6b; margin-top:6px }
/* Themed selects and role badge */
.dk-modal .form-group select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding:12px 14px; padding-right:44px; border-radius:10px; font-weight:700; font-size:1rem; color:#eaf6ff;
  background: linear-gradient(180deg, rgba(7,7,13,0.6), rgba(12,12,20,0.6));
  border: 1px solid rgba(0,229,255,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  background-image: linear-gradient( to right, transparent 0%, transparent calc(100% - 44px), rgba(255,255,255,0.06) calc(100% - 44px), rgba(255,255,255,0.06) 100% );
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.dk-modal .form-group select option { background: rgba(14,14,24,0.98); color: #eaf6ff }
.dk-modal .form-group select:focus { outline: none; box-shadow: 0 6px 18px rgba(0,229,255,0.10); border-color: rgba(0,229,255,0.36); }
.dk-modal .form-group select:hover { border-color: rgba(0,229,255,0.30); }

/* backglow for filled or focused inputs/selects */
.dk-modal .form-group input,
.dk-modal .form-group select {
  transition: box-shadow 200ms ease, border-color 160ms ease, transform 160ms ease;
}
.dk-modal .form-group input:focus,
.dk-modal .form-group select:focus,
.dk-modal .form-group input:not(:placeholder-shown) {
  box-shadow: 0 6px 18px rgba(0,229,255,0.08);
  border-color: rgba(0,229,255,0.34);
}
.dk-modal .form-group select:not(:placeholder-shown) { box-shadow: 0 6px 18px rgba(124,58,237,0.06); border-color: rgba(124,58,237,0.28); }
.su-role-badge { margin-top:8px; display:inline-block; font-weight:700; color:#00e5ff; background: rgba(0,229,255,0.03); padding:6px 10px; border-radius:999px; border:1px solid rgba(0,229,255,0.08); font-size:0.85rem }
@media (max-width:600px) { .dk-modal-panel { max-width: 92%; padding:16px } }
.dk-auth-screen[hidden] { display: none; }
.auth-panel {
  background: #0e0e18; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 40px; width: 100%; max-width: 420px;
  position: relative;
}
.auth-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: #6b7080;
  font-size: 1.8rem; cursor: pointer; transition: color 0.2s;
}
.auth-close:hover { color: #fff; }
.auth-panel h3 {
  font-size: 1.4rem; font-weight: 700; color: #fff;
  margin-bottom: 24px; text-align: center;
}
.auth-panel .form-group { margin-bottom: 16px; }
.auth-panel .form-group label { display: block; margin-bottom: 6px; color: #8a8fa0; font-size: 0.85rem; font-weight: 500; }
.auth-panel .form-group input {
  width: 100%; padding: 12px 16px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  color: #fff; font-size: 0.95rem; font-family: 'Poppins', sans-serif;
  transition: border-color 0.3s;
}
.auth-panel .form-group input:focus { outline: none; border-color: rgba(0,229,255,0.4); }
.auth-panel .form-error { color: #ff4d6a; font-size: 0.85rem; margin-bottom: 12px; }
.auth-submit { width: 100%; margin-top: 8px; }
.auth-switch {
  text-align: center; margin-top: 20px;
  font-size: 0.85rem; color: #6b7080;
}
.auth-switch a { color: #00e5ff; font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ===== USER BAR ===== */
.user-bar {
  position: fixed; top: 72px; right: 24px; z-index: 999;
  background: rgba(14,14,24,0.95); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 10px 20px;
  display: flex; align-items: center; gap: 14px;
  font-size: 0.85rem; color: #b0b4be;
  backdrop-filter: blur(10px);
}
.user-bar[hidden] { display: none; }
.user-bar span { font-weight: 600; color: #00e5ff; }
.btn-small {
  padding: 6px 16px; font-size: 0.78rem; font-weight: 600;
  background: rgba(255,77,106,0.1); color: #ff4d6a;
  border: 1px solid rgba(255,77,106,0.2); border-radius: 100px;
  cursor: pointer; font-family: 'Poppins', sans-serif;
  transition: all 0.3s;
}
.btn-small:hover { background: rgba(255,77,106,0.2); }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: #07070d;
  color: #b0b4be;
  line-height: 1.75;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== REUSABLE ===== */
.neon-text {
  color: #00e5ff;
  text-shadow: 0 0 10px rgba(0,229,255,0.35);
}
.section {
  padding: 120px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block; padding: 6px 20px;
  background: rgba(0,229,255,0.05);
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: 100px; font-size: 0.75rem; font-weight: 600;
  color: #00e5ff; margin-bottom: 18px; letter-spacing: 1px;
  text-transform: uppercase;
}
.section-header h2 {
  font-size: 2.8rem; font-weight: 800; color: #fff; margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-sub {
  color: #6b7080; font-size: 1.05rem; max-width: 520px; margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 36px; border-radius: 12px; font-weight: 600;
  font-size: 1rem; transition: all 0.3s ease; border: none; cursor: pointer;
  font-family: inherit; position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, #00e5ff, #0090ff);
  color: #07070d;
  box-shadow: 0 0 24px rgba(0,229,255,0.2), 0 4px 16px rgba(0,144,255,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0,229,255,0.4), 0 8px 30px rgba(0,144,255,0.25);
}

/* ===== NAVBAR ===== */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(7,7,13,0.75);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1200px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
}
.logo { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.logo span { color: #00e5ff; }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: #6b7080;
  transition: color 0.25s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: #00e5ff;
  border-radius: 1px; transition: width 0.3s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu { position: absolute; top: 34px; left: 0; background: rgba(7,7,13,0.98); padding: 8px 12px; border-radius: 10px; display: none; box-shadow: 0 8px 24px rgba(0,0,0,0.6); border:1px solid rgba(255,255,255,0.04) }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { display:block }
.nav-dropdown .dropdown-menu a { display:block; padding:8px 12px; color:#b0b4be; white-space:nowrap }
.nav-dropdown .dropdown-menu a:hover { color:#fff }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: #b0b4be;
  border-radius: 2px; transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; text-align: center; padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 70%);
}
.hero-glow {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(120px);
}
.hero-glow-1 {
  width: 550px; height: 550px; top: -15%; left: 15%;
  background: rgba(0,229,255,0.07);
}
.hero-glow-2 {
  width: 400px; height: 400px; bottom: -10%; right: 10%;
  background: rgba(0,144,255,0.05);
}
.hero-content {
  position: relative; z-index: 1; max-width: 720px;
  animation: heroFadeIn 1s ease forwards;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-tag {
  display: inline-block; padding: 8px 22px;
  background: rgba(0,229,255,0.05); border: 1px solid rgba(0,229,255,0.12);
  border-radius: 100px; font-size: 0.82rem; color: #00e5ff;
  font-weight: 600; margin-bottom: 28px;
}
.hero h1 {
  font-size: 5rem; font-weight: 800; line-height: 1.08;
  color: #fff; margin-bottom: 24px; letter-spacing: -2.5px;
}
.hero-sub {
  font-size: 1.25rem; color: #6b7080; margin-bottom: 44px;
  max-width: 460px; margin-left: auto; margin-right: auto;
}
.hero-particles {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.particle {
  position: absolute; width: 2px; height: 2px;
  background: rgba(0,229,255,0.5); border-radius: 50%;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

/* ===== HERO PRODUCTS (embedded in hero) ===== */
.hero-products {
  width: 100%; max-width: 1160px; margin: 36px auto 32px;
  padding: 0 20px;
}
.hero-products-label {
  font-size: 1rem; font-weight: 600; color: #6b7080;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 20px;
}
.products-grid {
  display: grid; grid-template-columns: repeat(3, 360px); gap: 32px;
  text-align: left; justify-content: center;
}
.product-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  backdrop-filter: blur(6px);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(0,229,255,0.05), 0 16px 48px rgba(0,0,0,0.25);
  border-color: rgba(0,229,255,0.15);
}
.product-card-top { padding: 20px 20px 12px; }
.product-card-top h3 {
  font-size: 1.05rem; font-weight: 700; color: #fff;
  margin-bottom: 6px;
}
.product-card-top p {
  font-size: 0.82rem; color: #6b7080; line-height: 1.6;
}

/* Growth card */
.product-card .growth-live-count {
  display: flex; align-items: baseline; gap: 8px; margin-top: 10px;
}
.product-card .growth-number {
  font-size: 1.8rem; font-weight: 800; color: #00e5ff;
  text-shadow: 0 0 14px rgba(0,229,255,0.25);
}
.product-card .growth-label {
  font-size: 0.72rem; color: #4a4e5a; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.product-card-chart { padding: 0 16px 16px; }
.product-card-chart .growth-filters {
  display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap;
}
.product-card-chart .growth-filter {
  padding: 4px 12px; font-size: 0.7rem; font-weight: 600;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 100px; cursor: pointer; color: #4a4e5a;
  font-family: 'Poppins', sans-serif; transition: all 0.3s;
}
.product-card-chart .growth-filter:hover { color: #b0b4be; }
.product-card-chart .growth-filter.active {
  background: rgba(0,229,255,0.1); color: #00e5ff;
  border-color: rgba(0,229,255,0.25);
}
.product-card-chart canvas { width: 100% !important; height: 140px !important; }

/* Book card */
.book-badges-mini {
  display: flex; gap: 8px; margin-top: 10px;
}
.book-badges-mini span {
  font-size: 0.7rem; font-weight: 600; color: #00e5ff;
  padding: 3px 10px; background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.1); border-radius: 100px;
}
.product-card-carousel { padding: 0 16px 8px; }
.product-card-carousel .book-slides {
  position: relative; width: 100%; height: 180px;
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #0c0c14, #14141e);
}
.product-card-carousel .book-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1s ease;
}
.product-card-carousel .book-slide.active { opacity: 1; }
.product-card-carousel .book-dots {
  display: flex; justify-content: center; gap: 6px; padding: 10px 0 4px;
}
.product-card-carousel .book-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.12); cursor: pointer; transition: all 0.3s;
}
.product-card-carousel .book-dot.active {
  background: #00e5ff; box-shadow: 0 0 8px rgba(0,229,255,0.4);
  transform: scale(1.3);
}

/* Coming Soon card */
.product-card-placeholder {
  display: flex; align-items: center; justify-content: center;
  padding: 20px; flex: 1;
}
.product-card-placeholder svg { width: 80px; height: 80px; }
.product-card-soon { cursor: default; }
.product-card-soon:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 16px rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.08);
}
.product-card-footer {
  padding: 12px 20px; border-top: 1px solid rgba(255,255,255,0.04);
}

.product-card-acadify { display:flex; flex-direction:column }
.product-card-acadify .product-card-placeholder svg { width:72px; height:72px }
.product-link {
  font-size: 0.78rem; font-weight: 600; color: #00e5ff;
  transition: letter-spacing 0.25s, color 0.25s;
}
.product-card:hover .product-link { letter-spacing: 0.8px; color: #5ef0ff; }
.product-link-muted { color: #4a4e5a; }

@media (max-width: 900px) {
  .products-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .product-card-chart canvas { height: 120px !important; }
}

/* ===== BLOG SECTION ===== */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}
.blog-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 40px rgba(0,229,255,0.07), 0 20px 50px rgba(0,0,0,0.25);
  border-color: rgba(0,229,255,0.12);
}
.blog-card-img {
  width: 100%; height: 210px; object-fit: cover;
  background: linear-gradient(135deg, #0c0c14, #14141e);
}
.blog-card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h3 {
  font-size: 1.18rem; font-weight: 700; color: #fff;
  margin-bottom: 10px; line-height: 1.45;
}
.blog-card-body .preview {
  color: #6b7080; font-size: 0.9rem; flex: 1;
}
.blog-card-full {
  margin-top: 16px; color: #b0b4be; font-size: 0.93rem;
  line-height: 1.85; white-space: pre-wrap;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 16px;
  animation: contentExpand 0.35s ease;
}
@keyframes contentExpand {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.blog-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 26px; border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.8rem; color: #4a4e5a;
}
.read-more {
  color: #00e5ff; font-weight: 600; cursor: pointer;
  transition: letter-spacing 0.25s, color 0.25s;
  user-select: none;
}
.read-more:hover { letter-spacing: 0.5px; color: #5ef0ff; }

/* ===== NEWS SECTION ===== */
.news-section {
  background: linear-gradient(180deg, transparent, rgba(0,229,255,0.01), transparent);
}
.news-timeline {
  max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 24px;
  position: relative; padding-left: 32px;
}
.news-timeline::before {
  content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(0,229,255,0.3), rgba(0,229,255,0.05));
  border-radius: 2px;
}
.news-card {
  display: flex; gap: 20px; padding: 28px 32px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px; position: relative;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.news-card:hover {
  transform: translateX(8px);
  box-shadow: 0 0 30px rgba(0,229,255,0.05);
  border-color: rgba(0,229,255,0.12);
}
.news-card::before {
  content: ''; position: absolute; left: -32px; top: 34px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 12px rgba(0,229,255,0.5);
  transform: translateX(-0.5px);
}
.news-content { flex: 1; }
.news-date {
  font-size: 0.75rem; font-weight: 600; color: #00e5ff;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px;
}
.news-content h3 {
  font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.news-content p { color: #6b7080; font-size: 0.9rem; }

/* ===== ACHIEVEMENTS SECTION ===== */
.achievements-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.achievement-card {
  padding: 38px 28px; text-align: center;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.achievement-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 35px rgba(0,229,255,0.08);
  border-color: rgba(0,229,255,0.15);
}
.achievement-icon {
  width: 68px; height: 68px; border-radius: 18px;
  background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; margin: 0 auto 22px;
}
.achievement-card h3 {
  font-size: 1.08rem; font-weight: 700; color: #fff; margin-bottom: 10px;
}
.achievement-card p { color: #6b7080; font-size: 0.87rem; }
.achievement-year {
  display: inline-block; margin-top: 16px; padding: 4px 16px;
  background: rgba(0,229,255,0.05); border: 1px solid rgba(0,229,255,0.1);
  border-radius: 100px; font-size: 0.72rem; font-weight: 600; color: #00e5ff;
}

/* ===== CONTACT SECTION ===== */
.contact-form {
  max-width: 600px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 22px;
}
.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-size: 0.85rem; font-weight: 600; color: #b0b4be;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  padding: 15px 18px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025); color: #e2e8f0;
  font-size: 1rem; font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.form-success {
  margin-top: 16px; padding: 14px 20px;
  background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.15);
  border-radius: 12px; color: #00e5ff; font-weight: 600;
  font-size: 0.92rem; animation: successFade 0.4s ease;
}
.form-error {
  margin-top: 0; margin-bottom: 4px; padding: 12px 18px;
  background: rgba(255,60,60,0.07); border: 1px solid rgba(255,60,60,0.2);
  border-radius: 12px; color: #ff5c5c; font-weight: 600;
  font-size: 0.88rem; animation: successFade 0.4s ease;
}
@keyframes successFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 64px 24px 32px;
  background: rgba(0,0,0,0.25);
}
.footer-inner {
  max-width: 1100px; margin: auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
}
.footer-brand p { color: #4a4e5a; margin-top: 12px; font-size: 0.9rem; }
.footer-socials {
  display: flex; gap: 14px; margin-top: 20px;
}
.footer-socials a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: #6b7080; transition: all 0.3s ease;
}
.footer-socials a:hover {
  color: #00e5ff; border-color: rgba(0,229,255,0.2);
  background: rgba(0,229,255,0.06);
  transform: translateY(-2px);
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links h4 { color: #fff; font-size: 0.92rem; margin-bottom: 4px; font-weight: 700; }
.footer-links a { color: #4a4e5a; font-size: 0.86rem; transition: color 0.25s; }
.footer-links a:hover { color: #00e5ff; }
.footer-bottom {
  text-align: center; padding-top: 32px; margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: #333640; font-size: 0.8rem;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero h1 { font-size: 3.4rem; }
  .section-header h2 { font-size: 2.2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(7,7,13,0.97); padding: 24px; gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  }
  .nav-links.open a::after { display: none; }
  .hero h1 { font-size: 2.6rem; letter-spacing: -1px; }
  .hero-sub { font-size: 1.05rem; }
  .section { padding: 80px 20px; }
  .section-header h2 { font-size: 1.9rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .news-timeline { padding-left: 0; }
  .news-timeline::before { display: none; }
  .news-card::before { display: none; }
  .news-card { padding: 22px; }
}

/* ===== ACADIFY PROTOTYPE STYLES ===== */
.acadify-container { max-width:1100px; margin: 0 auto; }
.acadify-hero { text-align: center; margin-bottom: 8px; }
.proto-grid { display:grid; grid-template-columns: 1fr 420px; gap:24px; align-items:stretch }
/* define calendar row height at container scope so lists inherit properly */
.proto-grid, .acadify-container { --cal-entry-h: 48px; }
@media(max-width:900px){ .proto-grid{ grid-template-columns: 1fr } }
.card { background: rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.04); border-radius:12px; padding:18px; }
/* make left column card stretch to match aside height so chat window aligns */
.proto-grid > section.card { display:flex; flex-direction:column; height:100% }
.chat-room-list { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px }
.chat-room { padding:8px 12px; background:rgba(255,255,255,0.02); border-radius:999px; cursor:pointer; color:#b0b4be }
.chat-room.active{ background: linear-gradient(90deg,#00e5ff,#7c3aed); color:#07070d; box-shadow: 0 6px 18px rgba(124,58,237,0.12) }
.chat-window {
  /* allow chat-window to grow to fill the card height and match aside */
  display:flex; flex-direction:column; gap:8px; padding:12px; overflow:auto; min-height:0; flex:1
}
.msg { max-width:78%; padding:10px 12px; border-radius:12px; font-size:0.95rem; font-family: 'Poppins', system-ui, sans-serif }
.msg.mine{ align-self:flex-end; background:linear-gradient(90deg,#00e5ff,#7c3aed); color:#07070d; box-shadow: 0 8px 24px rgba(0,229,255,0.08) }
.msg.theirs{ align-self:flex-start; background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); color:#dfe6f0; border:1px solid rgba(255,255,255,0.03) }
.chat-input { display:flex; gap:8px; margin-top:8px }
.chat-input input{ flex:1; padding:10px 12px; border-radius:10px; border:1px solid rgba(255,255,255,0.06); background:transparent; color:inherit }
.chat-input button { padding:10px 14px; border-radius:10px }
.small { font-size:0.88rem; color:#6b7080 }
.calendar-list { /* fixed to show 5 entries, rest scrollable; single box list (no internal rounded cards) */
  --cal-list-h: calc(var(--cal-entry-h) * 5);
  max-height: var(--cal-list-h);
  height: var(--cal-list-h);
  overflow-y: auto; overflow-x: hidden; display:flex; flex-direction:column; gap:4px; padding:6px; background: rgba(255,255,255,0.01); border-radius:8px; border:1px solid rgba(255,255,255,0.03);
  /* debug: always show scrollbar and visible outline to help file:// testing */
  -ms-overflow-style: auto; /* IE/Edge */
  scrollbar-width: thin; /* Firefox */
}

/* Themed scrollbar to match neon palette */
/* WebKit browsers */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0,229,255,0.18), rgba(124,58,237,0.18));
  border-radius: 99px;
  border: 2px solid rgba(7,7,13,0.65);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(0,229,255,0.26), rgba(124,58,237,0.26)); }

/* Firefox */
* { scrollbar-width: thin; scrollbar-color: rgba(0,229,255,0.18) transparent; }
  .calendar-list.debug-force-scroll { outline: 1px dashed rgba(0,229,255,0.18); }
  .calendar-list .cal-row { padding:8px 10px; border-bottom:1px solid rgba(255,255,255,0.03); color: #e6eef8; display:flex; justify-content:space-between; align-items:center; height: var(--cal-entry-h); box-sizing: border-box; font-family: 'Poppins', system-ui, sans-serif; background: linear-gradient(90deg, rgba(0,229,255,0.02), rgba(124,58,237,0.02)); border-radius:8px }
.calendar-list .cal-row:last-child { border-bottom: none; }
.cal-entry { /* fallback for other parts using cal-entry */ padding:0; border-radius:0; background:transparent; border:none }
.form-row{ display:flex; gap:8px; flex-wrap:wrap }
.form-row input, .form-row select { padding:8px 10px; border-radius:8px; border:1px solid rgba(255,255,255,0.06); background:transparent; color:inherit }

/* Themed buttons for Teacher / Student calendars */
#t-add, #s-add, #t-clear, #s-clear {
  padding:10px 14px; border-radius:10px; border: none; cursor: pointer;
  font-weight: 700; font-size: 0.9rem; font-family: 'Poppins', system-ui, sans-serif;
  background: linear-gradient(90deg, #00e5ff, #7c3aed); color: #07070d;
  box-shadow: 0 8px 26px rgba(0,229,255,0.08);
}
#t-clear, #s-clear { background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)); color: #b0b4be; border:1px solid rgba(255,255,255,0.04); box-shadow: none }
#t-add:hover, #s-add:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0,229,255,0.12) }
#t-clear:hover, #s-clear:hover { background: rgba(255,255,255,0.04); color: #e6eef8 }

/* Make these buttons visually match smaller contexts */
#t-add, #s-add { min-width:140px }

/* subtle header spacing so page feels connected to hero */
.section.acadify-hero { padding-top: 40px; }