@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary-bg: #FFFFFF;
  --sidebar-bg: #FFFFFF;
  --card-bg: #EFF2F7;
  --text-dark: #1A1C20;
  --text-primary: #1e1e1e;
  --text-secondary: #5C5F66;
  --brand-blue: #08529F;
  /* Approximation of the logo/check color */
  --highlight-blue: #0ea5e9;
  --nav-text: #6B7280;
  --nav-text-active: #0ea5e9;
  --shadow-sidebar: 0 8px 30px rgba(0, 0, 0, 0.08);
  --border-radius-card: 12px;
  --border-radius-sidebar: 16px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Albert Sans', sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
}

.layout-container {
  display: flex;
  gap: 40px;
  width: 100%;
  max-width: 1400px;
}

/* Sidebar Styles */
.sidebar {
  width: 260px;
  background-color: var(--sidebar-bg);
  border-radius: var(--border-radius-sidebar);
  padding: 30px;
  box-shadow: var(--shadow-sidebar);
  height: fit-content;
  flex-shrink: 0;
  position: sticky;
  top: 40px;
}

.logo-area {
  margin-bottom: 24px;
  text-align: center;
}

.brand-logo {
  max-width: 100%;
  height: auto;
  max-height: 50px;
  /* Reasonable limit for sidebar logo */
  display: block;
  margin: 0 auto;
}

.sidebar hr {
  border: 0;
  height: 1px;
  background: #e5e7eb;
  margin-bottom: 24px;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-item {
  font-size: 0.85rem;
  color: #9CA3AF;
  cursor: pointer;
  padding: 8px 0;
  font-weight: 500;
  transition: color 0.2s;
  display: block;
  text-decoration: none;
}

.nav-item:hover {
  color: var(--text-dark);
}

.nav-item.active {
  color: #08529F;
  /* Lighter blue for active state */
  font-weight: 600;
}

/* Main Content Styles */
.main-content {
  flex: 1;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  /* Space between major sections */
}

.content-section {
  scroll-margin-top: 40px;
  margin-bottom: 80px;
  /* Space between sections */
  padding-bottom: 60px;
  border-bottom: 1px solid #E5E7EB;
  /* Subtle divider */
}

.content-section:last-child {
  border-bottom: none;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 20px;
}


.card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 24px;
}


.responsive-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #f1f1f1;
  display: block;
}

/* Main Footer */
.main-footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #E5E7EB;
  text-align: center;
  font-size: 0.85rem;
  color: #9CA3AF;
}

.main-footer a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 500;
}

.main-footer a:hover {
  text-decoration: underline;
}

/* Admin Journey Specific Styles - REFACTORED */
.section-subtitle {
  font-size: 0.95rem;
  color: #1e1e1e;
  margin-bottom: 40px;
}

.journey-container {
  padding: 20px 0;
}

.journey-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 16px;
}

/* Horizontal Line for Desktop */
.journey-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  /* Center of 64px node */
  left: 32px;
  right: 32px;
  height: 8px;
  background-color: #F8F9FB;
  /* The track */
  border-radius: 4px;
  z-index: 1;
}

.journey-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.step-marker {
  margin-bottom: 24px;
  background-color: #fff;
  /* Mask line behind node */
  padding: 0 4px;
}

.node-circle {
  width: 64px;
  height: 64px;
  background-color: #F4F7FB;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: #2563EB;
}

.node-circle svg {
  width: 24px;
  height: 24px;
  stroke: #1e40af;
}

.step-content {
  width: 100%;
}

.step-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  height: 100%;
  /* Equal height cards */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111;
}

.step-card p {
  font-size: 0.85rem;
  color: #4B5563;
  line-height: 1.4;
}

.journey-footer {
  margin-top: 30px;
  font-style: italic;
  font-weight: 600;
  font-size: 0.9rem;
  color: #000;
}

/* Original Card Styles */
.card-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #111;
}

.card-text {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.5;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #374151;
}

.check-icon {
  color: #08529F;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}


/* Icon Resizing Logic */
/* Desktop Default */
.blue-check {
  width: 20px;
  height: 20px;
  color: #08529F;
}

/* Responsive Design */
@media (max-width: 1024px) {
  html {
    scroll-padding-top: 180px;
    /* Offset for sticky header + spacing */
  }

  body {
    padding: 20px;
  }

  .layout-container {
    flex-direction: column;
    gap: 24px;
  }

  /* Sidebar becomes a top bar */
  .sidebar {
    width: 100%;
    position: sticky;
    top: 20px;
    z-index: 100;
    padding: 20px;
  }

  .sidebar hr {
    display: none;
  }

  .logo-area {
    margin-bottom: 12px;
    text-align: center;
    /* Center text align */
    display: flex;
    justify-content: center;
    /* Center flex items */
    align-items: center;
  }

  .brand-logo {
    margin: 0;
    height: 40px;
  }

  .nav-menu {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Momentum scrolling */
    scroll-behavior: smooth;
    gap: 12px;
    padding-bottom: 8px;
    /* For scrollbar */
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-item {
    white-space: nowrap;
    background-color: transparent;
    /* Cleaner look */
    border: 1px solid #E5E7EB;
    /* Subtle definition */
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #4B5563;
  }

  .nav-item.active {
    background-color: #E0F2FE;
    border-color: #E0F2FE;
    color: #08529F;
  }

  .main-content {
    padding-top: 0;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px;
  }

  /* Smaller check icons for mobile proportionality */
  .blue-check {
    width: 16px;
    /* Decrease size */
    height: 16px;
  }

  /* Vertical Admin Journey for Mobile */
  .journey-steps {
    flex-direction: column;
    gap: 0;
  }

  /* Remove horizontal line */
  .journey-steps::before {
    display: none;
  }

  /* Add vertical line */
  .journey-steps::after {
    content: '';
    position: absolute;
    top: 32px;
    bottom: 32px;
    left: 32px;
    width: 4px;
    background-color: #F8F9FB;
    z-index: 1;
  }

  .journey-step {
    flex-direction: row;
    /* Icon left, card right */
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .step-marker {
    margin-bottom: 0;
    z-index: 2;
    /* On top of vertical line */
    padding: 10px 0;
    /* Align circle with top of card roughly */
  }

  .node-circle {
    background-color: #fff;
    /* Clean background on mobile */
    border: 2px solid #F4F7FB;
  }

  .step-card {
    text-align: left;
    /* Align text left for readabilty */
    align-items: flex-start;
    width: 100%;
  }
}