.classroom-page {
  padding-top: 24px;
}

.page-hero {
  padding: 70px 0 30px;
}

.page-hero-content {
  max-width: 900px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
}

.page-hero p {
  color: var(--muted);
  line-height: 1.95;
}
.classroom-layout {
  display: block;
    width: 100%;

}
.portal-sidebar {
  border-radius: 24px;
  padding: 22px;
  position: sticky;
  top: 100px;
}

.portal-sidebar h3,
.sidebar-note h4 {
  color: var(--purple-dark);
  margin-top: 0;
}

.quick-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 22px;
}

.quick-links a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  border: 1px solid rgba(123, 94, 167, 0.1);
  transition: var(--transition);
}

.quick-links a:hover {
  transform: translateX(-4px);
  background: rgba(123, 94, 167, 0.08);
  color: var(--purple-dark);
}

.sidebar-note {
  padding: 16px;
  border-radius: 18px;
  background: rgba(123, 94, 167, 0.08);
}

.sidebar-note p {
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.8;
}

.portal-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.embed-card {
  border-radius: 28px;
  overflow: hidden;
}

.embed-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(123, 94, 167, 0.1);
}

.embed-topbar p {
  margin: 0;
  margin-right: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.embed-body {
  min-height: 520px;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(236, 226, 246, 0.34));
}

.embed-body iframe {
  width: 100%;
  min-height: 520px;
  border: 0;
  background: #fff;
}

.embed-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 28px;
  background:
    radial-gradient(circle at top, rgba(123, 94, 167, 0.12), transparent 30%),
    rgba(249, 245, 240, 0.95);
}

.embed-fallback.show {
  display: flex;
}

.fallback-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.embed-fallback h3 {
  color: var(--purple-dark);
  margin: 6px 0 12px;
}

.embed-fallback p {
  color: var(--muted);
  max-width: 620px;
  line-height: 1.9;
  margin-bottom: 18px;
}

.portal-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 992px) {
  .classroom-layout {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .portal-features {
    grid-template-columns: 1fr;
  }

  .embed-body,
  .embed-body iframe {
    min-height: 460px;
  }
}