.education-page {
  background-image: url('/assets/img/background-care.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Poppins', 'Roboto', sans-serif;
  min-height: 100vh;
}

.education-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.edu-topbar {
  padding: 1.5rem 0 0.75rem;
}

.edu-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.edu-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.edu-sticky-home {
  position: fixed;
  bottom: clamp(16px, 5vw, 32px);
  right: clamp(16px, 5vw, 32px);
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(100, 116, 139, 0.45);
  color: #1f2937;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.edu-sticky-home:hover,
.edu-sticky-home:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.edu-sticky-home:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.55);
  outline-offset: 3px;
}

[data-theme="dark"] .edu-sticky-home,
[data-bs-theme="dark"] .edu-sticky-home {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.45);
  color: #f8fafc;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
}

.edu-sticky-home .bi {
  font-size: 1.05rem;
}

.edu-back-link span {
  white-space: nowrap;
}

.edu-main {
  flex: 1;
  padding: 1rem 0 3rem;
}

.edu-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.edu-content-surface {
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
  backdrop-filter: blur(2px);
}

.education-page .education-content {
  display: grid;
  gap: 1.5rem;
}

.education-page .edu-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);
}

.education-page .edu-card .edu-card-title {
  background: rgba(37, 99, 235, 0.08);
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.education-page .edu-card .edu-card-content {
  padding: 1.5rem 1.75rem;
  background: transparent;
}

.education-page .education-content p,
.education-page .education-content li {
  line-height: 1.8;
}

.education-page .education-content h1,
.education-page .education-content h2,
.education-page .education-content h3 {
  font-weight: 700;
  color: var(--heading-color);
}

.education-page .education-content a:not(.btn) {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.education-page .education-content ul {
  padding-left: 1.4rem;
}

.education-page .education-content li::marker {
  font-weight: 700;
}

.education-page .education-content blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  color: var(--muted);
}

.education-page .edu-content .edu-card:last-child {
  margin-bottom: 0;
}

.education-page .edu-content strong,
.education-page .edu-content b {
  color: inherit;
}

.education-page .edu-card video,
.education-page .edu-card iframe {
  width: 100%;
  border-radius: 12px;
  margin-top: 1rem;
}

.education-page .edu-card .toggle-btn {
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.education-page .edu-card .toggle-btn:hover {
  background: rgba(37, 99, 235, 0.08);
}

.education-page .edu-card .toggle-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.education-page .education-content .alert {
  border-radius: 14px;
}

.education-page .education-content .btn {
  border-radius: 999px;
  font-weight: 600;
}

[data-theme="dark"] .edu-content-surface {
  background: #1b2430;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .education-page .edu-card {
  background: #1f2a37;
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .education-page .edu-card .edu-card-title {
  background: rgba(148, 163, 184, 0.12);
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .education-page .education-content h1,
[data-theme="dark"] .education-page .education-content h2,
[data-theme="dark"] .education-page .education-content h3 {
  color: #ffffff !important;
}

[data-theme="dark"] .education-page .education-content p,
[data-theme="dark"] .education-page .education-content li {
  color: var(--text);
}

[data-theme="dark"] .education-page .education-content blockquote {
  color: var(--muted);
  border-left-color: var(--accent);
}

[data-theme="dark"] .education-page .education-content a:not(.btn) {
  color: var(--accent);
}

@media (max-width: 768px) {
  .edu-content-surface {
    padding: 1.25rem;
  }

  .education-page .edu-card .edu-card-content {
    padding: 1.25rem;
  }
}

@media (max-width: 576px) {
  .edu-topbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .edu-back-link {
    width: 100%;
    justify-content: center;
  }

  .edu-container {
    padding: 0 1rem;
  }

  .edu-sticky-home {
    right: 1rem;
    left: auto;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    font-size: 0.95rem;
    padding-inline: 1.1rem;
    width: auto;
  }
}
