/* ShikshaMitra Public Website — Premium Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-light: #E3F2FD;
  --secondary: #0288D1;
  --accent: #00897B;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text-1: #1A1A2E;
  --text-2: #546E7A;
  --text-3: #90A4AE;
  --border: #E2E8F0;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .10);
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-1);
  background: var(--surface);
  -webkit-font-smoothing: antialiased
}

img {
  max-width: 100%;
  height: auto
}

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

/* ── Container ── */
.pub-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem
}

/* ── Navigation ── */
.pub-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  transition: all .2s
}

.pub-nav--transparent {
  background: transparent
}

.pub-nav--scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, .08)
}

.pub-nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary)
}

.pub-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 2rem
}

.pub-nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color .15s;
  padding: .25rem 0;
  border-bottom: 2px solid transparent
}

.pub-nav-link:hover,
.pub-nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary)
}

.pub-nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-1)
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap
}

.btn-primary {
  background: var(--primary);
  color: #fff
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(21, 101, 192, .35);
  transform: translateY(-1px)
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-1);
  border: 1.5px solid var(--border)
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary)
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary)
}

.btn-outline:hover {
  background: var(--primary-light)
}

.btn-sm {
  padding: .4rem .9rem;
  font-size: .82rem
}

.btn-lg {
  padding: .75rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg)
}

.btn-xl {
  padding: .9rem 2.5rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg)
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #EBF3FF 0%, #F0F9FF 50%, #E8F5E9 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231565C0' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #E3F2FD;
  color: #1565C0;
  padding: .35rem .875rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.25rem
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--text-1);
  margin-bottom: 1.25rem
}

.hero h1 span {
  color: var(--primary)
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px
}

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

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(21, 101, 192, .15)
}

.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary)
}

.hero-stat-label {
  font-size: .78rem;
  color: var(--text-2);
  margin-top: .1rem
}

.hero-illustration {
  position: relative
}

.hero-illustration img {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(21, 101, 192, .15))
}

.hero-float-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  padding: .875rem 1.1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .82rem;
  font-weight: 500
}

.hero-float-card.card-1 {
  top: 10%;
  left: -5%
}

.hero-float-card.card-2 {
  bottom: 15%;
  right: -5%
}

.float-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--primary);
  padding: 1.5rem 0
}

.stats-bar-inner {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap
}

.stats-bar-item {
  text-align: center;
  color: white
}

.stats-bar-num {
  font-size: 2rem;
  font-weight: 800
}

.stats-bar-label {
  font-size: .8rem;
  opacity: .85;
  margin-top: .1rem
}

/* ── Section Headings ── */
.section {
  padding: 5rem 0
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem
}

.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 1rem
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text-1);
  margin-bottom: .875rem
}

.section-sub {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7
}

/* ── Job Cards ── */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem
}

.job-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all .18s;
  position: relative;
  overflow: hidden
}

.job-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px)
}

.job-card.featured {
  border-color: #FFB300;
  background: linear-gradient(135deg, #FFFDE7, #FFFFFF)
}

.job-card-featured-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: #FFB300;
  color: #5D3A00;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: .2rem .5rem;
  border-radius: 100px
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  margin-bottom: .875rem
}

.school-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  color: var(--primary)
}

.job-card-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
  margin-bottom: .2rem
}

.job-card-school {
  font-size: .8rem;
  color: var(--text-2);
  font-weight: 500
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .875rem
}

.job-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  color: var(--text-2);
  background: var(--bg);
  padding: .2rem .55rem;
  border-radius: 100px;
  border: 1px solid var(--border)
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .875rem;
  border-top: 1px solid var(--border)
}

.job-salary {
  font-size: .85rem;
  font-weight: 700;
  color: var(--success, #2E7D32)
}

.job-posted {
  font-size: .72rem;
  color: var(--text-3)
}

/* ── How It Works ── */
.how-it-works {
  background: var(--bg);
  padding: 5rem 0
}

.how-tabs {
  display: flex;
  gap: .5rem;
  background: white;
  border: 1.5px solid var(--border);
  padding: .35rem;
  border-radius: var(--radius-lg);
  margin: 0 auto 2.5rem;
  width: fit-content
}

.how-tab {
  padding: .55rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  border: none;
  background: transparent;
  color: var(--text-2)
}

.how-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(21, 101, 192, .3)
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem
}

.step-item-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border)
}

.step-circle {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem
}

.step-number-badge {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: .5rem
}

.step-desc {
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.6
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem
}

.feature-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: all .18s
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md)
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem
}

.feature-icon.blue {
  background: #E3F2FD
}

.feature-icon.green {
  background: #E8F5E9
}

.feature-icon.amber {
  background: #FFF8E1
}

.feature-icon.purple {
  background: #F3E5F5
}

.feature-icon.teal {
  background: #E0F2F1
}

.feature-icon.red {
  background: #FFEBEE
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: .5rem
}

.feature-desc {
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.6
}

/* ── Testimonials ── */
.testimonials {
  background: linear-gradient(135deg, #1565C0, #0D47A1);
  padding: 5rem 0
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem
}

.testimonial-card {
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  color: white
}

.testimonial-quote {
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  opacity: .9
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .3)
}

.testimonial-name {
  font-size: .875rem;
  font-weight: 600
}

.testimonial-inst {
  font-size: .75rem;
  opacity: .7
}

.testimonial-stars {
  color: #FFD600;
  font-size: .75rem;
  margin-bottom: .5rem
}

/* ── Blog ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem
}

.blog-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all .18s
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px)
}

.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg)
}

.blog-card-body {
  padding: 1.25rem
}

.blog-cat {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  margin-bottom: .6rem
}

.blog-card-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: .5rem;
  line-height: 1.4
}

.blog-card-excerpt {
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1rem
}

.blog-card-meta {
  font-size: .72rem;
  color: var(--text-3)
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, #00897B, #00695C);
  padding: 5rem 0;
  text-align: center;
  color: white
}

.cta-banner h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: .9;
  max-width: 520px;
  margin: 0 auto 2.5rem
}

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

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

.btn-white:hover {
  background: #F5F5F5
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, .6)
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, .1);
  border-color: white
}

/* ── Footer ── */
.pub-footer {
  background: #1A1A2E;
  padding: 4rem 0 2rem;
  color: rgba(255, 255, 255, .7)
}

.pub-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem
}

.footer-heading {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: white;
  margin-bottom: 1rem
}

.footer-link {
  display: block;
  font-size: .875rem;
  color: rgba(255, 255, 255, .6);
  margin-bottom: .5rem;
  transition: color .15s
}

.footer-link:hover {
  color: white
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, .1);
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  color: white;
  transition: background .15s
}

.social-icon:hover {
  background: var(--primary)
}

.pub-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255, 255, 255, .4);
  flex-wrap: wrap;
  gap: .5rem
}

/* ── Job Listings Page ── */
.jobs-page {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start
}

.filter-panel {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  position: sticky;
  top: 80px
}

.filter-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border)
}

.filter-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none
}

.filter-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .875rem
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--text-2);
  margin-bottom: .5rem;
  cursor: pointer
}

.filter-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary)
}

/* ── Auth Pages ── */
.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface)
}

.auth-left {
  background: linear-gradient(135deg, #1565C0, #0D47A1);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white
}

.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem
}

.auth-box {
  width: 100%;
  max-width: 440px
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: .5rem
}

.auth-sub {
  font-size: .9rem;
  color: var(--text-2);
  margin-bottom: 2rem
}

.form-group {
  margin-bottom: 1.25rem
}

.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: .4rem
}

.form-control {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 .875rem;
  font-size: .9rem;
  color: var(--text-1);
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, .12)
}

.form-control.is-invalid {
  border-color: #C62828
}

.form-error {
  font-size: .78rem;
  color: #C62828;
  margin-top: .3rem;
  font-weight: 500
}

.form-hint {
  font-size: .78rem;
  color: var(--text-3);
  margin-top: .3rem
}

textarea.form-control {
  height: auto;
  padding: .75rem .875rem;
  resize: vertical;
  min-height: 100px
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  font-size: .82rem;
  color: var(--text-3)
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border)
}

/* ── Responsive ── */
@media(max-width:1024px) {

  .hero-grid,
  .jobs-grid,
  .features-grid,
  .steps-grid,
  .testimonial-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .pub-footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .jobs-page {
    grid-template-columns: 1fr
  }

  .filter-panel {
    position: static
  }

  .auth-left {
    display: none
  }

  .auth-wrapper {
    grid-template-columns: 1fr
  }
}

@media(max-width:768px) {

  .hero-grid,
  .testimonial-grid,
  .blog-grid,
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr
  }

  .hero h1 {
    font-size: 2rem
  }

  .section-title {
    font-size: 1.75rem
  }

  .pub-nav-links {
    display: none;
    position: fixed;
    inset: 64px 0 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 0;
    border-top: 1px solid var(--border)
  }

  .pub-nav-links.open {
    display: flex
  }

  .pub-nav-link {
    padding: .875rem 0;
    font-size: 1rem;
    width: 100%;
    border-bottom: 1px solid var(--border)
  }

  .pub-nav-hamburger {
    display: block
  }

  .hero-float-card {
    display: none
  }

  .stats-bar-inner {
    gap: 2rem
  }

  .jobs-grid {
    grid-template-columns: 1fr
  }

  .pub-footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .cta-banner h2 {
    font-size: 1.75rem
  }
}

/* ── Timeline & Profile Entries ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 2px;
  background: #cbd5e1;
}
.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding-bottom: .25rem;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  top: 5px;
  left: -2rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 2px rgba(21,101,192,.15);
  z-index: 2;
}
.timeline-date {
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 600;
  margin-bottom: .2rem;
}
.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: .2rem;
}
.timeline-sub {
  font-size: 0.88rem;
  color: var(--text-2);
}