:root {
  --ink: #1b2637;
  --navy: #102f57;
  --blue: #1f5f9d;
  --gold: #bd9b55;
  --red: #9c3c32;
  --green: #457468;
  --paper: #f7f4ed;
  --soft: #eef3f4;
  --line: #ddd4c4;
  --white: #ffffff;
  --shadow: 0 18px 46px rgba(27, 38, 55, 0.12);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
}

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

img {
  display: block;
  max-width: 100%;
}

.scrolling-tabs {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: scroll-tabs 24s linear infinite;
}

.scrolling-tabs:hover {
  animation-play-state: paused;
}

.scrolling-tabs a {
  display: inline-flex;
  min-width: 220px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-weight: 900;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.scrolling-tabs a:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

@keyframes scroll-tabs {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 7px));
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(27, 38, 55, 0.06);
}

.top-strip {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 8px clamp(16px, 5vw, 72px);
  background: var(--navy);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 700;
}

.student-link {
  color: #f1d99d;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 12px clamp(16px, 5vw, 72px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
  color: var(--navy);
}

.brand-logo {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.brand strong,
.brand-text {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a,
.nav-button {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
}

.main-nav a:hover,
.nav-button:hover,
.tab-button:hover {
  border-color: var(--line);
  background: var(--paper);
}

.nav-button.subtle {
  color: var(--red);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: 690px;
  padding: clamp(42px, 7vw, 96px) clamp(18px, 6vw, 90px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(247, 244, 237, 0.82)),
    linear-gradient(135deg, #f4efe5, #eaf1f4);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 16px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 1.22rem;
}

.lead,
.section-heading p,
.contact-section p,
.feature-card p,
.project-card p,
.timeline-item p,
.testimonial-card p,
.news-panel p {
  color: #536274;
  line-height: 1.72;
}

.lead {
  max-width: 720px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.button.ghost {
  background: var(--white);
}

.button.danger {
  border-color: rgba(156, 60, 50, 0.35);
  color: var(--red);
}

.hero-identity {
  position: relative;
  display: grid;
  min-height: 500px;
  align-items: center;
  justify-items: center;
}

.hero-logo {
  width: min(88%, 460px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.mentor-photo {
  position: absolute;
  right: 0;
  bottom: 10px;
  width: min(34vw, 180px);
  aspect-ratio: 1;
  border: 8px solid var(--white);
  border-radius: 999px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.news-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 6vw, 90px);
  transform: translateY(-34px);
  background: var(--line);
  box-shadow: var(--shadow);
}

.news-panel article {
  min-height: 150px;
  padding: 24px;
  background: var(--white);
}

.news-panel span,
.project-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-panel strong {
  display: block;
  color: var(--navy);
  font-size: 1.08rem;
}

.section-band,
.section-block,
.contact-section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 6vw, 90px);
}

.section-band {
  background: var(--paper);
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered h2,
.section-heading.centered p {
  margin-left: auto;
  margin-right: auto;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--navy);
}

.stats-bar div {
  min-height: 132px;
  padding: 28px clamp(18px, 4vw, 52px);
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.stats-bar strong {
  display: block;
  color: #f1d99d;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
}

.stats-bar span {
  color: rgba(255, 255, 255, 0.86);
}

.feature-grid,
.offer-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.project-card,
.testimonial-card,
.contact-panel,
.editor-group {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(27, 38, 55, 0.06);
}

.feature-card,
.project-card,
.testimonial-card {
  min-height: 230px;
  padding: 28px;
}

.project-card {
  position: relative;
  border-top: 5px solid var(--gold);
}

.project-card::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 36px;
  height: 3px;
  background: var(--red);
}

.method-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 72px);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding: 22px 24px;
  border-left: 5px solid var(--red);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(27, 38, 55, 0.06);
}

.timeline-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}

.testimonial-card p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.testimonial-card strong {
  color: var(--navy);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 430px);
  gap: clamp(26px, 6vw, 70px);
  align-items: start;
  background: var(--navy);
  color: var(--white);
}

.contact-section h2,
.contact-section .eyebrow {
  color: var(--white);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 26px;
  color: var(--ink);
}

.contact-panel a {
  color: var(--navy);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 6vw, 90px);
  color: #5c6876;
  background: var(--white);
}

.mobile-cta {
  display: none;
}

.admin-page {
  background: var(--soft);
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: var(--white);
}

.tab-button {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab-button.active {
  border-color: var(--line);
  background: var(--paper);
  color: var(--navy);
}

.admin-workspace {
  padding: clamp(20px, 4vw, 44px);
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.admin-toolbar h1,
.login-panel h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.import-label input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-form {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.form-field {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 900;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.list-editor {
  display: grid;
  gap: 16px;
}

.editor-group {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.editor-group legend {
  padding: 0 8px;
  color: var(--red);
  font-weight: 900;
}

.status-message {
  min-height: 24px;
  margin-top: 18px;
  color: var(--green);
  font-weight: 900;
}

.login-page {
  min-height: 100vh;
  background: var(--paper);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(100%, 440px);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-logo {
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
  border-radius: 8px;
  object-fit: cover;
}

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

.login-back {
  display: inline-block;
  margin-top: 20px;
  color: var(--navy);
  font-weight: 900;
}

@media (max-width: 980px) {
  .nav-row,
  .admin-toolbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .main-nav a {
    white-space: nowrap;
  }

  .hero,
  .method-section,
  .contact-section,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-identity {
    min-height: 420px;
    order: -1;
  }

  .feature-grid,
  .offer-grid,
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 68px;
  }

  .top-strip {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .nav-row {
    gap: 12px;
    min-height: auto;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand strong {
    font-size: 1.35rem;
  }

  .main-nav {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .hero {
    padding: 28px 16px 56px;
  }

  .hero-copy {
    text-align: left;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.7rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

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

  .hero-identity {
    min-height: 330px;
  }

  .hero-logo {
    width: min(100%, 330px);
  }

  .mentor-photo {
    right: 6px;
    bottom: 0;
    width: 118px;
    border-width: 6px;
  }

  .news-panel {
    grid-template-columns: 1fr;
    margin: -28px 16px 0;
    transform: none;
  }

  .stats-bar,
  .feature-grid,
  .offer-grid,
  .testimonial-grid,
  .admin-sidebar {
    grid-template-columns: 1fr;
  }

  .section-band,
  .section-block,
  .contact-section {
    padding: 52px 16px;
  }

  .section-heading.centered {
    text-align: left;
  }

  .mobile-cta {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 4px;
    background: var(--red);
    color: var(--white);
    font-weight: 900;
    box-shadow: var(--shadow);
  }
}
