:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-alt: #eef5fa;
  --ink: #0f2540;
  --muted: #54657d;
  --line: rgba(12, 39, 66, 0.12);
  --primary: #0d4a8c;
  --primary-strong: #083463;
  --accent: #1e7f78;
  --accent-soft: #d8efec;
  --sand: #f0e7d4;
  --shadow: 0 18px 45px rgba(8, 34, 64, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(30, 127, 120, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(13, 74, 140, 0.16), transparent 30%),
    linear-gradient(180deg, #fdfefe 0%, #edf5fb 52%, #f4f8fb 100%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12, 39, 66, 0.08);
}

.admin-header {
  z-index: 1200;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  flex-shrink: 0;
}

.brand-logo {
  width: clamp(132px, 19vw, 200px);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-nav a,
.nav-cta {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 999px;
  transition: 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  background: rgba(13, 74, 140, 0.08);
  color: var(--primary-strong);
  outline: none;
}

.nav-cta {
  background: var(--primary);
  color: #fff;
}

.nav-cta-outline {
  background: transparent;
  color: var(--primary-strong);
  border: 1px solid rgba(13, 74, 140, 0.2);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
}

.admin-brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.admin-page-title {
  font-size: clamp(1.15rem, 2.1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-menu-toggle {
  display: none;
}

.hero {
  padding: 44px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 245, 251, 0.94));
  border: 1px solid rgba(12, 39, 66, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 48px);
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: '';
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(30, 127, 120, 0.22), transparent 68%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #0d5d57;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-title,
.page-hero h1,
.article-title,
.admin-page-title,
.news-card h3,
.feature-card h3,
.team-card h3,
.stat-card strong {
  font-family: 'Sora', sans-serif;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.02;
  margin: 18px 0 16px;
  max-width: 11ch;
}

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button-link:hover,
.button-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(8, 34, 64, 0.14);
  outline: none;
}

.button-primary {
  background: var(--primary);
  color: #fff;
}

.button-secondary {
  background: #fff;
  color: var(--primary-strong);
  border: 1px solid rgba(13, 74, 140, 0.18);
}

.hero-aside {
  display: grid;
  gap: 18px;
}

.slider-card,
.about-card,
.stats-grid,
.feature-card,
.video-section,
.news-card,
.team-card,
.content-card,
.login-card,
.dashboard-card,
.article-shell,
.form-shell {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(12, 39, 66, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.slider-card {
  overflow: hidden;
  position: relative;
  min-height: 320px;
}

.banner {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}

.banner.active {
  opacity: 1;
  pointer-events: auto;
}

.banner-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-logo {
  background: linear-gradient(180deg, #f8fbff, #deeaf7);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.banner-logo .banner-media {
  object-fit: contain;
  padding: 24px 32px 120px;
}

.banner-video {
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.banner-video .banner-media {
  object-fit: cover;
}

.video-grid-reverse {
  direction: rtl;
}

.video-grid-reverse > * {
  direction: ltr;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 25, 46, 0.08), rgba(5, 25, 46, 0.78));
}

.banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 28px;
  color: #fff;
}

.banner-content span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  opacity: 0.86;
}

.banner-content h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.banner-content p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.slider-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.slider-controls button,
.news-carousel-btn,
.back-to-top {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-strong);
  font-size: 1.1rem;
  cursor: pointer;
}

.about-card {
  padding: 22px;
}

.about-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-top: 10px;
}

.section-block {
  padding: 20px 0 56px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.08;
}

.section-description {
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.7;
}

.section-heading .section-description {
  margin-top: 14px;
}

.stats-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 18px;
  background: linear-gradient(160deg, var(--surface-alt), #fff);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
}

.stat-card span {
  color: var(--muted);
  line-height: 1.5;
}

.features-grid,
.team-grid,
.news-grid,
.platform-grid,
.resource-grid {
  display: grid;
  gap: 20px;
}

.features-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.team-card,
.content-card,
.news-card,
.dashboard-card,
.form-shell,
.login-card {
  padding: 24px;
}

.feature-card h3,
.team-card h3,
.content-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature-card p,
.team-card p,
.content-card p,
.platform-copy p,
.article-content,
.page-copy p,
.page-copy li,
.news-card p,
.news-card .news-meta,
.empty-state {
  color: var(--muted);
  line-height: 1.7;
}

.project-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 180px;
  background: linear-gradient(180deg, #fff, #f0f6fc);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: box-shadow 200ms, transform 200ms;
  text-decoration: none;
}

a.project-logo-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.video-section {
  overflow: hidden;
}

.video-grid,
.platform-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.video-full {
  grid-template-columns: 1fr;
}

.video-full .video-frame {
  min-height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-frame {
  min-height: 360px;
  background: linear-gradient(160deg, rgba(8, 52, 99, 0.94), rgba(10, 92, 112, 0.82));
  position: relative;
}

.video-frame video,
.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 32px;
  color: #fff;
  gap: 14px;
}

.video-fallback strong {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  line-height: 1.1;
}

.video-copy,
.platform-copy {
  padding: 32px;
}

.platform-cta-row {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.button-lg {
  padding: 16px 48px;
  font-size: 1.1rem;
}

.feature-card-cad {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 24px;
  align-self: start;
}

.feature-card-cad .button-link {
  align-self: center;
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-role {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--sand);
  color: #6a5123;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-section {
  padding-bottom: 56px;
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
}

.news-card-image {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.news-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 25, 46, 0), rgba(5, 25, 46, 0.46));
}

.news-category {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-strong);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 800;
}

.news-card h3 {
  font-size: 1.2rem;
}

.news-meta {
  font-size: 0.88rem;
}

.news-link {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.news-carousel-shell {
  position: relative;
}

.news-carousel {
  overflow: hidden;
}

.news-track {
  display: flex;
  gap: 20px;
  transition: transform 260ms ease;
}

.news-slide {
  min-width: calc(33.333% - 14px);
}

.news-carousel-btn {
  position: absolute;
  top: calc(50% - 21px);
  z-index: 2;
  box-shadow: var(--shadow);
}

.news-carousel-btn.prev {
  left: -12px;
}

.news-carousel-btn.next {
  right: -12px;
}

.page-hero {
  padding: 52px 0 20px;
}

.page-shell,
.article-shell {
  padding: clamp(28px, 4vw, 40px);
}

.page-hero h1,
.article-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.page-shell .eyebrow {
  margin-bottom: 16px;
}

.video-copy .eyebrow,
.news-section .section-heading .eyebrow {
  margin-bottom: 16px;
}

.page-copy {
  display: grid;
  gap: 22px;
}

.page-copy ul {
  padding-left: 22px;
}

.platform-grid,
.resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-card {
  background: linear-gradient(160deg, #fff, #f0f6fc);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
}

.resource-card a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.article-shell {
  margin: 40px auto 80px;
  width: min(960px, calc(100% - 32px));
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
}

.article-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 18px 0 28px;
}

.article-content {
  font-size: 1.05rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 26px 0 12px;
  color: var(--ink);
}

.article-content img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 18px auto;
}

@media (min-width: 769px) {
  .article-content img {
    width: 50%;
  }
}

.login-section,
.admin-section {
  padding: 48px 0 86px;
}

.login-shell,
.form-shell,
.dashboard-card {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.login-shell {
  width: min(520px, calc(100% - 32px));
}

.login-card h1,
.dashboard-card h1,
.form-shell h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}

.success-shell {
  width: min(620px, calc(100% - 32px));
  margin: 0 auto;
}

.success-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(12, 39, 66, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 50px rgba(8, 34, 64, 0.18);
  text-align: center;
  padding: clamp(28px, 5vw, 46px);
}

.success-stage {
  position: relative;
}

.success-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 74, 140, 0.05), rgba(30, 127, 120, 0.06));
  pointer-events: none;
}

.success-check {
  width: clamp(94px, 12vw, 126px);
  height: clamp(94px, 12vw, 126px);
  margin: 2px auto 22px;
  border-radius: 999px;
  background: #f2fbf5;
  color: #2f9a63;
  border: 4px solid rgba(47, 154, 99, 0.24);
  display: grid;
  place-items: center;
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(47, 154, 99, 0.18);
}

.success-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.95rem, 4.2vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.success-message {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 46ch;
  margin: 0 auto;
}

.success-countdown {
  margin: 22px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #0d5d57;
  font-weight: 800;
}

.success-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.success-actions .button-link {
  min-width: 120px;
}

.section-subtitle {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin: 0;
  color: #111827;
}

.form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group label {
  font-weight: 800;
}

.form-control,
.form-shell input[type="text"],
.form-shell input[type="password"],
.form-shell input[type="datetime-local"],
.form-shell input[type="file"],
.form-shell select,
.form-shell textarea,
.login-card input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(12, 39, 66, 0.14);
  border-radius: 16px;
  background: #fff;
}

.form-shell textarea {
  min-height: 220px;
  resize: vertical;
}

.invalid-field {
  border-color: #c0392b !important;
  background: #fff5f5;
}

.invalid-field:focus {
  outline: 3px solid rgba(192, 57, 43, 0.2);
}

.invalid-group label {
  color: #c0392b;
}

.invalid-group .form-control,
.invalid-group select {
  border-color: #c0392b !important;
}

.form-control.disabled-field,
.form-control:disabled {
  background: #9ca3af !important;
  color: #111827 !important;
  border-color: #6b7280 !important;
  cursor: not-allowed;
  opacity: 1 !important;
}

.disabled-field {
  background: #f4f4f4 !important;
  color: #6b7280;
}

.loading-field {
  background: repeating-linear-gradient(
    90deg,
    #eef2f7,
    #eef2f7 12px,
    #e3e9f2 12px,
    #e3e9f2 24px
  ) !important;
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 74, 140, 0.08);
  color: var(--primary-strong);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.helper-text {
  color: var(--muted);
  font-size: 0.9rem;
}

.login-card .eyebrow,
.dashboard-card .eyebrow,
.form-shell .eyebrow {
  margin-bottom: 16px;
}

.login-card .section-description {
  margin-bottom: 20px;
}

.login-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(161, 54, 42, 0.28);
  background: rgba(161, 54, 42, 0.1);
  color: #8b2a1f;
  font-weight: 700;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.table-shell {
  overflow-x: auto;
  margin-top: 22px;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(12, 39, 66, 0.08);
  text-align: left;
  vertical-align: top;
}

.status-badge {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.status-badge.ativo {
  background: #d8efec;
  color: #0d5d57;
}

.status-badge.oculto {
  background: #f5e1dc;
  color: #8b3d26;
}

.thumb-preview {
  width: 88px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
}

.action-inline {
  display: inline-flex;
}

.action-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.icon-action-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(13, 74, 140, 0.2);
  border-radius: 10px;
  background: #fff;
  color: var(--primary-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: 180ms ease;
}

.icon-action-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-action-btn:hover,
.icon-action-btn:focus-visible {
  background: rgba(13, 74, 140, 0.08);
  color: var(--primary);
  outline: none;
}

.icon-action-btn.danger {
  color: #a1362a;
  border-color: rgba(161, 54, 42, 0.28);
}

.icon-action-btn.danger:hover,
.icon-action-btn.danger:focus-visible {
  background: rgba(161, 54, 42, 0.1);
  color: #8b2a1f;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 23, 43, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1500;
}

.confirm-modal.active {
  display: flex;
}

.confirm-modal-card {
  width: min(460px, 100%);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.confirm-modal-card h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
}

.confirm-modal-card p {
  color: var(--muted);
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.limit-toggle-row {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(12, 39, 66, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.limit-toggle-meta {
  display: flex;
  align-items: center;
}

.limit-toggle-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
}

.limit-switch {
  position: relative;
  width: 128px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid #d3d8e0;
  background: #f2f4f8;
  color: #5b5f66;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.limit-switch-label {
  position: relative;
  z-index: 2;
  transform: translateX(10px);
}

.limit-switch.is-on {
  background: linear-gradient(145deg, #0f4f94 0%, #0b3f79 100%);
  border-color: rgba(8, 52, 99, 0.45);
  color: #ffffff;
}

.limit-switch.is-on .limit-switch-label {
  transform: translateX(-10px);
}

.limit-switch-knob {
  position: absolute;
  top: 50%;
  left: 6px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(160deg, #4660ff 0%, #5f4bff 100%);
  transform: translateY(-50%);
  box-shadow: 0 4px 10px rgba(58, 74, 190, 0.3);
  transition: left 200ms ease, background 180ms ease;
}

.limit-switch.is-on .limit-switch-knob {
  left: calc(100% - 32px);
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(3, 24, 48, 0.2);
}

.limit-switch:focus-visible {
  outline: 3px solid rgba(13, 74, 140, 0.3);
  outline-offset: 3px;
}

.site-footer {
  border-top: 1px solid rgba(12, 39, 66, 0.08);
  background: linear-gradient(160deg, #041a35 0%, #073470 52%, #0a4a8c 100%);
  color: rgba(255, 255, 255, 0.88);
  padding-top: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.9fr;
  gap: 24px;
}

.footer-grid h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  margin-bottom: 12px;
  color: #fff;
}

.footer-brand {
  width: min(220px, 100%);
  margin-bottom: 14px;
}

.footer-copy,
.footer-links a,
.footer-bottom-row,
.footer-bottom-row a {
  color: rgba(255, 255, 255, 0.74);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
}

.footer-partner-logo {
  display: block;
  width: min(800px, 100%);
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255,255,255,0.74);
}

.footer-social-link svg {
  flex-shrink: 0;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-footer {
  margin-top: 40px;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: none;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.empty-state {
  padding: 24px;
  text-align: center;
  border: 1px dashed rgba(12, 39, 66, 0.18);
  border-radius: var(--radius-md);
}

@media (max-width: 1024px) {
  .hero-grid,
  .video-grid,
  .platform-grid,
  .footer-grid,
  .features-grid,
  .team-grid,
  .news-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .news-slide {
    min-width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .admin-brand-group {
    gap: 10px;
  }

  .admin-page-title {
    font-size: clamp(1rem, 5vw, 1.3rem);
    white-space: normal;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .admin-menu-toggle {
    display: inline-flex;
    margin-left: auto;
    position: relative;
    z-index: 1301;
  }

  .admin-header .admin-shell {
    flex-direction: row;
    align-items: center;
    position: relative;
  }

  .admin-header .admin-actions {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(12, 39, 66, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow);
    z-index: 1300;
  }

  .admin-header .admin-actions.active {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(12, 39, 66, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

  .main-nav.active {
    display: flex;
  }

  .hero,
  .page-hero,
  .section-block,
  .news-section,
  .login-section,
  .admin-section {
    padding-top: 20px;
  }

  .slider-card {
    min-height: 280px;
  }

  .section-heading,
  .footer-bottom-row,
  .admin-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-heading .eyebrow {
    margin-bottom: 16px;
  }

  .video-copy .eyebrow,
  .platform-copy .eyebrow {
    margin-bottom: 16px;
  }

  .section-heading .section-title {
    margin-left: 10px;
  }

  .video-copy .section-title,
  .platform-copy .section-title {
    margin-left: 10px;
  }

  .section-heading .section-description {
    margin-top: 16px;
    margin-left: 10px;
    max-width: 32ch;
  }

  .news-slide {
    min-width: 100%;
  }

  .news-carousel-btn {
    display: none;
  }

  .dashboard-table th,
  .dashboard-table td {
    white-space: nowrap;
  }
}

.button-hover-blue:hover {
  background: var(--primary);
  color: #fff;
}