@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --text: #fffaf0;
  --muted: #d0d8e7;
  --gold: #e4c77e;
  --gold-strong: #f2db9f;
  --panel: linear-gradient(180deg, rgba(10, 19, 35, 0.9), rgba(20, 33, 57, 0.82));
  font-family: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(228, 199, 126, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(101, 130, 170, 0.18), transparent 32%),
    linear-gradient(180deg, #10203b 0%, #09111f 42%, #060b14 100%);
  color: var(--text);
}

.site-brand {
  display: flex;
  justify-content: center;
  padding: 24px 16px 0;
}

.site-brand-logo {
  width: min(110px, 24vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  color: var(--text);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.narrow-shell {
  width: min(720px, calc(100% - 32px));
}

.hero {
  display: grid;
  gap: 24px;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  margin-bottom: 24px;
}

.student-topbar {
  display: grid;
  gap: 16px;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  margin-bottom: 20px;
}

.student-layout {
  display: grid;
  gap: 20px;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.student-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.student-news {
  margin-bottom: 20px;
}

.hero-copy,
.panel,
.auth-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.hero-copy,
.panel,
.panel-highlight,
.auth-card {
  padding: 32px;
}

.student-summary,
.student-logout {
  padding: 20px 22px;
  border-radius: 24px;
}

.student-content {
  min-width: 0;
}

.student-sidebar {
  display: grid;
  gap: 22px;
  padding: 20px 22px;
  border-radius: 24px;
  min-width: 0;
}

.student-sidebar-section {
  display: grid;
  gap: 10px;
}

.student-sidebar-section + .student-sidebar-section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-copy h1,
.panel h2,
.auth-card h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 1;
}

.hero-copy h1,
.auth-card h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.94;
}

.panel h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.home-access-card h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.15;
}

.home-access-card p {
  line-height: 1.6;
}

.student-name {
  margin-top: 4px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.student-sidebar .student-name {
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lead,
.hero-copy p,
.panel p,
.auth-card p,
.auth-form span,
.text-link,
.alert {
  color: var(--muted);
  line-height: 1.8;
}

.muted-note {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: #9ca8c3;
}

.section-intro {
  margin: 12px 0 0;
  max-width: 72ch;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 140px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, rgba(242, 219, 159, 0.24), rgba(242, 219, 159, 0.5), rgba(242, 219, 159, 0.2));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 136px;
  top: 11px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(242, 219, 159, 0.1);
}

.timeline-year {
  position: relative;
  z-index: 1;
  padding-top: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-strong);
}

.timeline-content {
  position: relative;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 17, 31, 0.4);
}

.timeline-content h3 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.4rem, 1.8vw, 1.8rem);
  line-height: 1.1;
  color: var(--text);
}

.timeline-content p {
  margin: 0;
}

.timeline-content p + p {
  margin-top: 10px;
}

.timeline-highlight .timeline-content {
  border-color: rgba(242, 219, 159, 0.28);
  background: linear-gradient(180deg, rgba(35, 45, 24, 0.24), rgba(20, 33, 57, 0.72));
}

.timeline-highlight::before {
  background: var(--gold-strong);
  box-shadow: 0 0 0 8px rgba(242, 219, 159, 0.14);
}

.mission-card,
.principles,
.course-highlight {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 17, 31, 0.42);
}

.mission-card h3,
.value-card h3,
.principles h3,
.course-highlight h3 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.45rem, 1.8vw, 1.9rem);
  line-height: 1.1;
  color: var(--text);
}

.values-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.value-card {
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.principles-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.principles-list li {
  position: relative;
  padding-left: 28px;
}

.principles-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-strong);
  font-weight: 700;
}

.course-highlight {
  background: linear-gradient(180deg, rgba(30, 40, 20, 0.24), rgba(20, 33, 57, 0.78));
  border-color: rgba(242, 219, 159, 0.18);
}

.course-tag {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-strong);
}

.section-header {
  margin-bottom: 24px;
}

.training-section {
  margin-top: 24px;
}

.training-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.training-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(14, 24, 43, 0.92), rgba(20, 33, 57, 0.76));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.training-category {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-strong);
}

.training-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1.05;
  color: var(--text);
}

.training-card p {
  margin: 0;
}

.training-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.training-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.hero-copy .lead {
  max-width: 34ch;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.stat {
  display: grid;
  gap: 6px;
  align-content: start;
}

.stat strong {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  line-height: 1;
  color: var(--text);
}

.stat span {
  color: var(--muted);
  line-height: 1.45;
}

.training-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  transform: translateY(-50%);
}

.news-card-link {
  display: block;
  margin-top: 18px;
}

.news-card-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
}

.news-card-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 18, 0.08) 0%, rgba(5, 10, 18, 0.22) 36%, rgba(5, 10, 18, 0.84) 100%);
  pointer-events: none;
}

.news-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  display: block;
}

.news-title-overlay {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.02;
  color: var(--text);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.news-copy {
  margin-top: 18px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.student-meta {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.student-meta-stacked {
  margin-top: 6px;
}

.student-meta p {
  display: grid;
  gap: 4px;
  margin: 0;
  line-height: 1.5;
}

.student-meta span {
  color: #9ca8c3;
}

.student-meta strong {
  font-size: 0.98rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.student-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.student-actions .button,
.student-actions form,
.student-actions form .button {
  width: 100%;
}

.student-actions .button {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  white-space: normal;
  text-align: center;
}

.student-logout h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.student-logout p {
  margin: 10px 0 0;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
  font-size: 0.85rem;
}

.button-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold-strong);
  color: #14243d;
  border-color: rgba(242, 219, 159, 0.35);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--text);
}

.button-block {
  width: 100%;
}

.section-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-card {
  display: grid;
  gap: 24px;
}

.auth-form {
  display: grid;
  gap: 20px;
}

.auth-form label {
  display: grid;
  gap: 10px;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 17, 31, 0.72);
  color: var(--text);
  min-height: 52px;
  padding: 0 16px;
  font: inherit;
}

.auth-form textarea,
.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 17, 31, 0.72);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

.auth-form textarea:focus,
.admin-form input:focus,
.admin-form textarea:focus {
  outline: 2px solid rgba(242, 219, 159, 0.5);
  outline-offset: 2px;
}

.auth-form input::placeholder {
  color: #7d89a7;
}

.auth-form input:focus {
  outline: 2px solid rgba(242, 219, 159, 0.5);
  outline-offset: 2px;
}

.alert {
  border-radius: 20px;
  border: 1px solid rgba(235, 87, 87, 0.4);
  background: rgba(235, 87, 87, 0.12);
  padding: 14px 16px;
}

.table-scroll {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: auto;
  margin-top: 18px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  text-align: left;
  color: var(--gold-strong);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.data-table td {
  color: var(--muted);
}

.text-link {
  color: var(--gold-strong);
}

.admin-panel,
.admin-news-item,
.admin-news-summary {
  display: grid;
  gap: 22px;
}

.admin-news-list {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.admin-news-item {
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  align-items: start;
}

.admin-news-summary {
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  align-items: center;
}

.admin-news-preview {
  min-width: 0;
}

.admin-news-forms {
  display: grid;
  gap: 16px;
}

.admin-news-summary-copy {
  display: grid;
  gap: 12px;
}

.admin-news-summary-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.admin-news-summary-head h2 {
  margin: 0;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form label {
  display: grid;
  gap: 8px;
}

.admin-source-field {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.admin-source-field legend {
  padding: 0 6px;
  color: var(--gold-strong);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-inline-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.upload-library-item {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
}

.upload-library-copy {
  display: grid;
  gap: 10px;
}

.upload-path {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 17, 31, 0.52);
  word-break: break-all;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-strong);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 219, 159, 0.4);
  background: rgba(242, 219, 159, 0.1);
}

.icon-button-svg {
  width: 18px;
  height: 18px;
}

.admin-success {
  border-color: rgba(86, 204, 136, 0.45);
  background: rgba(86, 204, 136, 0.12);
}

@media (max-width: 920px) {
  .hero,
  .section-grid,
  .training-grid,
  .values-grid,
  .hero-stats,
  .student-topbar,
  .student-layout {
    grid-template-columns: 1fr;
  }

  .admin-news-item {
    grid-template-columns: 1fr;
  }

  .admin-news-summary {
    grid-template-columns: 1fr;
  }

  .upload-library-item {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .auth-card h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 760px) {
  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 28px;
  }

  .timeline-item::before {
    left: 6px;
    top: 13px;
  }

  .timeline-year {
    padding-top: 0;
  }
}

@media print {
  .site-brand {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  body * {
    visibility: hidden;
  }

  .print-classification,
  .print-classification * {
    visibility: visible;
  }

  .print-classification {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .print-classification .eyebrow,
  .print-classification h2,
  .print-classification .muted-note {
    color: #000;
  }

  .print-classification .muted-note {
    margin-top: 12px;
    font-size: 1rem;
  }

  .is-admin .print-classification .table-scroll {
    border: 0;
    margin-top: 16px;
  }

  .is-admin .print-classification .data-table {
    min-width: 0;
  }

  .is-admin .print-classification .data-table th,
  .is-admin .print-classification .data-table td {
    color: #000;
    border-color: #d7d7d7;
  }

  .is-admin .print-classification .text-link {
    color: #000;
    text-decoration: none;
  }
}


/* =========================
   MELHORIAS VISUAIS
   ========================= */

.hero{
  grid-template-columns:2fr 1fr;
  gap:32px;
}

.hero-copy{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.hero-copy p{
  margin:0;
  max-width:68ch;
}

.hero-copy h1{
  font-size:clamp(2.3rem,4vw,3.5rem);
  line-height:1.05;
  letter-spacing:-.02em;
}

.user-card{
  display:grid;
  gap:24px;
}

.user-name{
  margin:0;
  font-size:clamp(1.6rem,2vw,2rem);
  line-height:1.2;
}

.user-info{
  display:grid;
  gap:16px;
}

.user-info p{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.user-info span{
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:#97a7c8;
}

.user-info strong{
  font-size:1rem;
  font-weight:600;
}

.panel{
  position:relative;
  overflow:hidden;
}

.panel::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
}

.section-grid{
  align-items:stretch;
}

.section-grid .panel{
  display:flex;
  flex-direction:column;
}

.button{
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease,
    border-color .18s ease;
}

.button:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(0,0,0,.25);
}
