/* Scholarvalley – frontend styled like the 2017 site */

:root {
  --color-navy: #0d0d0d;
  --color-navy-light: #1a1a1a;
  --color-gold: #b8860b;
  --color-gold-light: #d4a84b;
  --color-white: #fff;
  --color-off-white: #f7fafc;
  --color-text: #2d3748;
  --color-text-muted: #718096;
  --font-heading: "Crimson Pro", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 960px;
  --header-height: 64px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

/* Optional: full-page background from archive (add class="bg-image" to body and put image in static/assets/) */
body.bg-image {
  background-image: url("/static/assets/body-bg.jpg");
  background-repeat: repeat;
  background-color: var(--color-off-white);
}

/* Hero background (body3-bg) – main home hero uses full-cover image */
.hero.bg-image {
  background-image: url("/static/assets/body3-bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #0d0d0d;
  min-height: calc(100vh - var(--header-height));
}

.hero.bg-image .hero-inner {
  background: rgba(0, 0, 0, 0.7);
  color: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
}

.hero.bg-image h1,
.hero.bg-image .hero-tagline {
  color: inherit;
}

.hero.bg-image .hero-tagline {
  opacity: 0.95;
}

/* Header with background image (all pages) */
.site-header.header-bg {
  background-image: url("/static/assets/header-bg.png");
  background-size: cover;
  background-position: center;
  background-color: #0d0d0d;
}

.site-header.header-bg .header-inner {
  background: rgba(0, 0, 0, 0.9);
}

/* Page banner – top of inner pages (About, Services, Contact, Register, Login, Dashboard) */
.page-banner {
  min-height: 160px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.page-banner--about {
  background-image: url("/static/assets/about-bg.jpg");
}

.page-banner--services {
  background-image: url("/static/assets/body2-bg.jpg");
  min-height: 280px;
  align-items: center;
  justify-content: center;
  padding-bottom: 0;
  background-position: center -90px;
}

@media (max-width: 640px) {
  .page-banner--services {
    min-height: 220px;
    background-position: center -50px;
  }
}

.page-banner--blog {
  background-image: url("/static/assets/body2-bg.jpg");
}

.page-banner--contact {
  background-image: url("/static/assets/hero-bg.jpg");
}

.page-banner--auth {
  background-image: url("/static/assets/hero-bg.jpg");
}

/* Sign in page: larger top banner, black background below (no second image) */
.page-auth {
  background: #0d0d0d;
  background-image: none;
}

.page-auth .page-banner--auth {
  min-height: 50vh;
  background-size: cover;
  background-position: center;
  width: 75%;
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.page-auth .section-auth-choice {
  background: #0d0d0d;
}

.page-auth .section-auth-choice .about-lead {
  color: rgba(255, 255, 255, 0.9);
}

.page-banner--register {
  background-image: url("/static/assets/hero-bg.jpg");
}

.page-banner--dashboard {
  background-image: url("/static/assets/register-bg.jpg");
}

.page-banner h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin: 0;
  color: inherit;
}

/* Index page section backgrounds */
.section-about.with-bg {
  /* Main page should only use body-bg + body2-bg */
  background-image: url("/static/assets/body-bg.jpg");
  background-size: cover;
  background-position: center;
  background-color: var(--color-off-white);
}

.section-about.with-bg .container {
  background: rgba(255, 255, 255, 0.92);
  padding: 2rem 1.5rem;
  border-radius: 8px;
}

.section-services.with-bg {
  background-image: url("/static/assets/body2-bg.jpg");
  background-size: cover;
  background-position: center;
  background-color: var(--color-off-white);
}

.section-services.with-bg .container {
  background: rgba(255, 255, 255, 0.92);
  padding: 2rem 1.5rem;
  border-radius: 8px;
}

.section-contact.with-bg {
  background-image: url("/static/assets/body2-bg.jpg");
  background-size: cover;
  background-position: center;
  background-color: var(--color-off-white);
}

.section-contact.with-bg .container {
  background: rgba(255, 255, 255, 0.92);
  padding: 2rem 1.5rem;
  border-radius: 8px;
}

/* Inner pages (About, Services, Contact) */
.page-main {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

.section-page {
  padding: 3rem 1.5rem;
}

.section-page h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 1rem;
  text-align: center;
}

.section-page .about-lead,
.page-intro {
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto 2rem;
  color: var(--color-text);
}

.container--about {
  max-width: 760px;
}

/* About page */
.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.about-value-card {
  padding: 1.5rem;
  background: var(--color-off-white);
  border-radius: 8px;
  border-top: 3px solid var(--color-gold);
  box-shadow: var(--shadow);
}

.about-value-card h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 0.65rem;
  text-align: left;
}

.about-value-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--color-text);
  text-align: left;
}

.about-block {
  margin-bottom: 2rem;
  padding: 1.75rem 2rem;
  background: var(--color-white);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow);
}

.about-block h2 {
  text-align: left;
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.about-block p {
  text-align: left;
  max-width: none;
  margin: 0 0 1rem;
  line-height: 1.7;
}

.page-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.page-cta p {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--color-text);
}

.page-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.page-cta .btn-secondary {
  border-color: var(--color-navy);
}

/* Contact page */
.contact-info-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-info-item {
  padding: 1.25rem 1.5rem;
  background: var(--color-off-white);
  border-radius: 8px;
  border-left: 3px solid var(--color-gold);
  text-align: center;
}

.contact-info-item h2 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 0.5rem;
}

.contact-info-item p {
  margin: 0;
}

.contact-info-item a {
  color: var(--color-navy);
  font-weight: 600;
  text-decoration: none;
}

.contact-info-item a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  text-align: center;
  margin: 0 0 1.5rem;
  color: var(--color-navy);
}

.form-actions--center {
  justify-content: center;
}

/* Rich footer on inner pages */
.site-footer--rich {
  background: #0d0d0d;
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 1.5rem 1.5rem;
}

.site-footer--rich .footer-col h3 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.site-footer--rich .footer-col a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer--rich .footer-col a:hover {
  color: var(--color-gold-light);
}

.site-footer--rich .footer-copy {
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.footer-note {
  font-size: 0.9rem;
  opacity: 0.85;
}

.section-home-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-white);
  text-align: center;
  margin: 0 0 0.75rem;
}

.section-home-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.section-home-cta-text {
  margin: 0 0 1.25rem;
  opacity: 0.9;
}

.hero.bg-image .hero-tagline {
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
}

.hero.bg-image .hero-actions {
  margin-top: 0.5rem;
}

.hero.bg-image .hero-actions .btn-secondary {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.8);
}

.hero.bg-image .hero-actions .btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

/* Header – fixed, black bar with white text */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: #0d0d0d;
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-image: url("/static/assets/header-bg.png");
  background-size: cover;
  background-position: center;
  background-color: #0d0d0d;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  margin: 0 -0.75rem 0 0;
}

.logo:hover {
  color: var(--color-gold-light);
}

.logo .logo-img {
  display: block;
  max-height: 48px;
  width: auto;
  vertical-align: middle;
  filter: contrast(1.2);
}

.logo .logo-text {
  display: none;
}

.logo .logo-img[style*="display: none"] + .logo-text {
  display: inline;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--color-gold-light);
}

.main-nav .nav-api {
  color: var(--color-gold-light);
}

.main-nav .nav-active {
  color: var(--color-gold-light);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-white);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: var(--color-navy-light);
    gap: 0.75rem;
  }
  .nav-toggle {
    display: flex;
  }
}

/* Hero – full-width band, classic headline + CTA */
.hero {
  margin-top: var(--header-height);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--color-off-white) 0%, var(--color-white) 100%);
  border-bottom: 3px solid var(--color-gold);
  padding: 3rem 1.5rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
}

.btn-primary:hover {
  background: var(--color-gold-light);
  color: var(--color-navy);
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

.btn-secondary:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 1.5rem;
  text-align: center;
}

.section-services {
  background: var(--color-white);
}

.services-list {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
  line-height: 1.7;
}

.services-list li {
  margin-bottom: 0.75rem;
}

.container--services {
  max-width: 720px;
}

.services-overview {
  font-size: 1.125rem;
  line-height: 1.75;
  text-align: center;
  margin: 0 0 2.5rem;
  color: var(--color-text);
}

.service-step {
  margin-bottom: 2rem;
  padding: 1.75rem 2rem;
  background: var(--color-off-white);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow);
}

.service-step-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.service-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.service-step h2 {
  text-align: left;
  margin: 0;
  font-size: 1.35rem;
  flex: 1 1 auto;
}

.service-fee {
  font-weight: 600;
  color: var(--color-gold);
  font-size: 0.95rem;
  white-space: nowrap;
}

.service-fee-label {
  font-weight: 600;
  margin: 1rem 0 0.35rem;
  color: var(--color-navy);
}

.service-step p {
  margin: 0 0 1rem;
  line-height: 1.7;
}

.service-step p:last-child {
  margin-bottom: 0;
}

.services-disclaimer {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 2rem 0 0;
  padding: 1rem 1.25rem;
  background: #f7fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.services-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.services-cta .btn {
  min-width: 220px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  padding: 1.5rem;
  background: var(--color-off-white);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 0.5rem;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.section-about {
  background: var(--color-off-white);
}

.section-about .page-intro,
.section-about .about-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 680px;
}

.about-block .about-services-list,
.about-block .services-list {
  margin: 0.5rem 0 1rem;
}

.section-about .about-services-list li {
  text-align: left;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--color-text);
  margin: 0 0 1rem;
}

.section-about p {
  margin: 0 0 0.75rem;
  line-height: 1.7;
}

.section-about .services-list {
  max-width: none;
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
  text-align: left;
}

.section-about .services-list li {
  text-align: left;
  margin-bottom: 0.5rem;
}

.section-contact {
  background: var(--color-white);
}

.section-contact .page-intro {
  margin-bottom: 2rem;
}

.section-contact p {
  margin: 0 0 0.75rem;
}

.section-blog {
  background: var(--color-off-white);
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.blog-post {
  padding: 1.5rem 1.75rem;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
}

.blog-post h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-navy);
}

.blog-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.blog-post p {
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.blog-post a {
  color: var(--color-navy-light);
  text-decoration: underline;
}

.blog-post a:hover {
  color: var(--color-gold);
}

/* Home page (2017 archive layout) – hero on body3-bg, sections on solid/overlay backgrounds */
.section-home-audience {
  background: #000;
}

.section-home-cta {
  position: relative;
  color: var(--color-white);
  background-image: url("/static/assets/body2-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.section-home-cta .container {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 3rem 1.5rem;
  border-radius: 8px;
}

.section-home-blog {
  background: #000;
}

.home-audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.home-audience-card {
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(26, 54, 93, 0.15);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.home-audience-card h2,
.home-audience-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 0.75rem;
  text-align: left;
}

.home-audience-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.6;
}

.section-home-cta h2 {
  margin-bottom: 1rem;
}

.section-home-cta p {
  margin: 0;
  text-align: center;
}

.section-home-blog h2 {
  color: var(--color-white);
}

.section-home-blog .home-blog-intro {
  text-align: center;
  margin: 0;
  color: var(--color-white);
}

.section-home-blog .home-blog-intro a {
  color: var(--color-gold-light);
  text-decoration: underline;
}

.section-home-blog .home-blog-intro a:hover {
  color: var(--color-white);
}

/* Home footer (Quick Links, Free evaluation, Contact, Mission) */
.site-footer--home {
  padding: 2.5rem 1.5rem 1.5rem;
}

.container--footer {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-gold-light);
  margin: 0 0 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-col ul a:hover {
  color: var(--color-gold-light);
}

.footer-col p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-col .btn {
  margin-top: 0.5rem;
}

.site-footer--home .footer-copy {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info {
  margin: 1.5rem 0 2rem;
  padding: 1.5rem;
  background: var(--color-off-white);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.contact-info p {
  margin: 0.5rem 0;
}

.contact-info a {
  color: var(--color-navy);
  font-weight: 600;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-note {
  margin-top: 1rem;
}

.contact-note a {
  color: var(--color-navy-light);
  text-decoration: underline;
}

.contact-note a:hover {
  color: var(--color-gold);
}

/* Footer */
.site-footer {
  background: #0d0d0d;
  color: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
}

/* Register / Login pages – white content area, black text */
.section-register,
.section-login {
  background: #ffffff;
}

.section-register,
.section-register p,
.section-register label,
.section-register h1,
.section-register h2,
.section-register .section-intro,
.section-login,
.section-login p,
.section-login label,
.section-login h1,
.section-login h2,
.section-login .section-intro {
  color: #000000;
}

/* Dashboard page – white content area, black text */
.section-dashboard {
  background: #ffffff;
}

.section-dashboard,
.section-dashboard p,
.section-dashboard h1,
.section-dashboard h2,
.section-dashboard .section-intro {
  color: #000000;
}

/* Auth choice (Register vs Log in) */
.section-auth-choice .about-lead {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 640px;
  margin: 0 auto;
}

.auth-choice-card {
  display: block;
  padding: 2rem 1.75rem;
  background: var(--color-white);
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-choice-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.2);
}

.auth-choice-card h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 0.75rem;
  text-align: left;
}

.auth-choice-card p {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.auth-choice-cta {
  font-weight: 600;
  color: var(--color-gold);
  font-size: 0.95rem;
}

.auth-choice-card:hover .auth-choice-cta {
  color: var(--color-gold-light);
}

/* Register form */
.section-register .section-intro {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
}

.container-narrow {
  max-width: 520px;
  margin: 0 auto;
}

.register-form .form-row {
  margin-bottom: 1.25rem;
}

.register-form label {
  display: block;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.register-form .required {
  color: #c53030;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"],
.register-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  background: var(--color-white);
}

.register-form textarea {
  resize: vertical;
  min-height: 120px;
}

.register-form input[type="file"] {
  width: 100%;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.register-form input:focus,
.register-form textarea:focus {
  outline: none;
  border-color: var(--color-navy-light);
  box-shadow: 0 0 0 2px rgba(44, 82, 130, 0.2);
}

.register-form input.invalid {
  border-color: #c53030;
}

.register-form .form-error {
  display: block;
  font-size: 0.85rem;
  color: #c53030;
  margin-top: 0.25rem;
}

.register-form .form-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.register-form .form-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.register-form .form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.4em;
}

.register-form .form-status.success {
  color: #276749;
}

.register-form .form-status.error {
  color: #c53030;
}

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
}

.form-footer a {
  color: var(--color-navy-light);
  text-decoration: underline;
}

.form-row-hint {
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.form-row-hint a {
  color: var(--color-navy-light);
  text-decoration: underline;
}

/* Dashboard table */
.section-dashboard .section-intro {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-aside {
  padding: 1.5rem;
  background: var(--color-off-white);
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.progress-card,
.status-card,
.quick-actions {
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.progress-card h2,
.status-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.progress-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.progress-steps li {
  flex: 1 1 120px;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  text-align: center;
  background: #f7fafc;
}

.progress-steps li.is-complete {
  background: #276749;
  border-color: #276749;
  color: #ffffff;
}

.progress-steps li.is-current {
  background: #b8860b;
  border-color: #b8860b;
  color: #ffffff;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.notifications-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notifications-list li {
  font-size: 0.9rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.notifications-list li:last-child {
  border-bottom: none;
}

.notifications-empty {
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.applicants-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.applicants-table th,
.applicants-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.applicants-table th {
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-off-white);
}

.applicants-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-badge.status-draft { background: #e2e8f0; color: #4a5568; }
.status-badge.status-in_review { background: #feebc8; color: #c05621; }
.status-badge.status-accepted { background: #c6f6d5; color: #276749; }
.status-badge.status-rejected { background: #fed7d7; color: #c53030; }
.status-badge.status-archived { background: #e2e8f0; color: #718096; }

.no-data {
  color: var(--color-text-muted);
  margin-top: 1rem;
}

.no-data a {
  color: var(--color-navy-light);
  text-decoration: underline;
}

.applicants-table tbody td a {
  color: var(--color-navy);
  font-weight: 600;
  text-decoration: none;
}
.applicants-table tbody td a:hover {
  text-decoration: underline;
  color: var(--color-gold);
}

.profile-card {
  padding: 1.5rem;
  background: var(--color-off-white);
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}
.profile-card h2 { margin: 0 0 0.5rem; }
.profile-meta { margin: 0 0 0.5rem; color: var(--color-text-muted); }

.btn-logout {
  margin-left: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.1);
}
